this is my first Tut
i hope you enjoy it
At first Open Notepad.exe
then write this code ::
CODE
<?php
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("news") or die(mysql_error());
?>
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("news") or die(mysql_error());
?>
And Save it With Connect.php name
With that code you can connect to MySql to manage (add/Delete/Update) Row or .....
and now we talk about that code :
<?php <------------- at first line php is begin ------------- >
mysql_connect("localhost","username","password") or die(mysql_error());
localhost :: where is your sql ! if your sql in your CPanel You must write localhost
Username :: like username
password :: like sql password
mysql_select_db("databasename") or die(mysql_error());
Databasename = Your database name
* if Your domain is asd.com and then you make news database your database name = asd_news
?> <------------- end of php ------------- >
with this script you can just connect to database for read / write / delete / update you must user query
have good time

