Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Thursday, March 11, 2004, 1:25:47 AM, you wrote: AH> unset($type); AH> $type = $_GET['type']; AH> $link = mysql_connect('localhost', 'user', 'password'); AH> if (!$link) { AH> echo "Couldn't make a connection!"; AH> exit; AH> } AH> $db = mysql_sele

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH> I get this error: mysql_num_rows(): supplied argument is not a valid AH> MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of y