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);