Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Php4 to Php5 errors

$
0
0
I am moving my website written in php 4 to a server that has php5. Here are the 3 warnings I have received. How do I fix this?
 
Warning: mysql select db(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx /index.php on line 37
 
Line 37 is:
mysql_select_db($conn, "yourmil_content");
-----------------------------------------------------------------------------
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in/home/xxxxxx/index.php on line 247
 
Line 247 is:
$result = mysql_query($sql, $conn);
---------------------------------------------------------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in/home/xxxxx/index.php on line 248
 
Line 248 is:
 $data = mysql_fetch_array($result);
 

Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images