|
Posted by Colin McKinnon on 09/24/06 15:38
Bryan wrote:
> Hello all,
>
> Can anyone tell me why the following code isn't working?
>
> $dbh = mysql_connect($host,$user,$pass) or die("Couldn't connect...");
> $selected = mysql_select_db($db,$dbh);
> $name = $_GET['name'];
> $state = $_GET['state'];
> $desc = $_GET['desc'];
> $lat = $_GET['lat'];
> $lng = $_GET['lng'];
> $result = mysql_query("INSERT INTO re_cities (name, state, description,
> lat, lng) VALUES ('$name','$state','$desc','$lat','$lng')");
print "error ='" . mysql_error() . "'<br />\n";
C.
Navigation:
[Reply to this message]
|