PHP problem

From: Date: Fri, 18 Dec 2009 14:22:12 +0000
Subject: PHP problem
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6783@lists.php.net to get a copy of this message
Hi, I'm having problems running my PHP. I am pretty new to PHP so please forgive me. First I created a small echo statement within my HTML, this loads fine, showing all my HTML and PH. Then I tried to connect to my mysql database and if it could not connect, then bring up an error message, and if it connected to say connected. This was fine and connected. I could even edit the database with a few queries. When I try to select data from the database or even a simple echo statement below my connection code the screen goes blank. Can you help???? Here is an example of my script <?php mysql_connect("localhost", "******", "********") or die(mysql_error()); echo "Connected to MySQL<br />"; mysql_select_db("reelantiqueangling") or die(mysql_error()); echo "welcome"; ?> Regards, Tim

« previous php.webmaster (#6783) next »