Jump to content


Photo

help with php script


  • Please log in to reply
1 reply to this topic

#1 matthew61773

matthew61773
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 30 August 2006 - 03:31 PM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 August 2006 - 03:35 PM

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
mysql_connect
mysql_select_db




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users