I have problem to connect mysql
i have database created as dbmail
i created table field, id (auto and primary key Id), name and email
then, i used php script to connect...
<?php
$connect = mysql_connect(' localhost', 'root', 'mypassword');
echo $connect;
?>
The reason i do this script, i want to know whether my php is connected or not...
it is supposed appeared like this "Resource id#1" ( I assumed because i refer to a book from SAMS Teach yourself
however, it creates blank page in the browser...
what is wrong? can you tell me....
i have database created as dbmail
i created table field, id (auto and primary key Id), name and email
then, i used php script to connect...
<?php
$connect = mysql_connect(' localhost', 'root', 'mypassword');
echo $connect;
?>
The reason i do this script, i want to know whether my php is connected or not...
it is supposed appeared like this "Resource id#1" ( I assumed because i refer to a book from SAMS Teach yourself
however, it creates blank page in the browser...
what is wrong? can you tell me....
Comment