My name is Alyx and I will be helping you make a website. 1st of all let's make a file in your file manager called "database.php". After you name it copy this into your file.
<?php
mysq_connect("Host","username","password") or die(mysq_error());
echo"Connect";
mysq_select_db("database_name") or die (mysql_error());
echo"Connect";
?>
That will help you save time than posting it in every file when you can just include it. That is also a good place to put you whole site's CSS.
CSS will be discussed in my blogs. Further CSS info will be found there and good CSS samples will be found here.
I hope I can help you make the site you've always wanted.
Hello If you want some good codes stay tuned to this thread. I am going to post good codes that could make you look like a coding master. If you want to see my in progress site check out http://dsiarea.comlu.com it isn't done but I will help people before I finish. First I want to tell you a good way for a way to keep guests from posting stuff on your site.
(i dont use < and > on my code tutorials so you needa add them yourself sorry)
This is very simple! No database connection othher than login!
if($_COOKIE["user"] == "") {
echo 'Please login to post/view this page!';
}
Then that will keep guests outta your stuff, also if you want you must have something to hide it I use < script > cuz when you use that it erases everything.
I made my commands by exactly doing that, but my chatroom is very complicated. I believed that I could do it, so if you believe you can look forward to it!