Hey guys, just got onto coding something and I get this silly mysql error which I've never even heard of.
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/blah/public_html/thing/testing.php on line 4
This is my code.
Now as you can see line 4 is just selecting my database, any clues? +REP.PHP Code:<?php
session_start();
$conn = mysql_connect("localhost", "user", "password");
mysql_select_db("db", "$connect") or die(mysql_error());
?>
Also I've checked my tables to make sure nothing numerical is there, all fine.
Moved by Invent (Forum Moderator) from Design & Development: Please post in the correct forum next time, thanks.





.
Reply With Quote


