Page is a not externally linkable
StevieMac - 5:48 pm on Sep 1, 2004 (gmt 0)
I have searched up and down on this site for ideas on how to fix this, however I just cant seem to find an answer. I want to take a form and POST to a script and return rows from a sql database. From what I am quering on, it has duplicate entry's however, they are not primary. <html> <form name="wifi" method="POST" action="results.php"> <? $query = mysql_query($sql); When I input something in the textbox and hit submit, I just get a blank screen. I did have an echo as seen in a previous post, and it shows the echo, but nothing else. Please, any help would be appreciated.....
Sorry for such a lame question......
<body>
<p> SSID: <input name="ssid" type="text" id="ssid">
<p><input type="submit" name="submit" value="submit">
</form>
</body>
</html>
$host = "localhost";
$user = "username";
$pass = "password";
$dbname = "database";
$connection = mysql_connect($host,$user,$pass) or die (mysql_errno().": ".mysql_error()."<BR>");
mysql_select_db($dbname);
$sql = "select * from tablename where SSID = " . $_POST['SSID'] . "'";
while ($row = mysql_fetch_array($query)) {
echo "<p>",$row['SSID'],": ",$row['BSSID'];
}
?>