Jump to content

Archived

This topic is now archived and is closed to further replies.

matthew61773

help with php script

Recommended Posts

Hi anyone inform what this code means?

$conn = mysql_connect ( "localhost" , "ronverdonk" , "ronnie09" ) or die( mysql_error ());
mysql_select_db ( "vwso" ) or die( mysql_error ());

thanks

Share this post


Link to post
Share on other sites
It connects to mysql and selects the database vwso. If mysql_connect or mysql_select_db fail the or die clause will kick in and display the mysql error.

Click the links below to learn how to use these functions
[url=http://php.net/mysql-connect]mysql_connect[/url]
[url=http://php.net/mysql-select-db]mysql_select_db[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.