I am having a strange problem with my select statement. It is return this:
ResultID #2
Basically I have figured out that it is finding the first record but only return values if there is a second record with the same id. I am not sure why it is doing this. Me and all my tech friends are completely stumped on this one. Can someone please help me out.
Here is a copy of the section of code. Tnx.
#!/usr/local/bin/php
<?php
session_start();
session_register("id");
$id=$HTTP_GET_VARS["ids"];
echo $id;
?>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>HipHopG - Card Pickup</title>
<?php
$db = mysql_connect("unixsql4.interland.net", "HipHopG", "Maclure71132");
mysql_select_db("hiphopgcom", $db);
//---> bad code:>
$result = mysql_query("SELECT * FROM send WHERE ids = $id");
echo $result;