matthew61773 Posted August 30, 2006 Share Posted August 30, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/19167-help-with-php-script/ Share on other sites More sharing options...
wildteen88 Posted August 30, 2006 Share Posted August 30, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/19167-help-with-php-script/#findComment-82924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.