Code: Select all
mysql_connect($host, $user, $pass) or die (mysql_error());
$query=mysql_query("SELECT * FROM `sometable`");
I'm verry new to php and mysql and I've tried a couple of times without success... could someone just give me a veeerrryy simple script that just shows me that I've connected to my database?
just a simple script that connects to the database and prints some content or whatever. and I need it all. from <html> to </html>
Users browsing this forum: CucciCRZ and 1 guest