Date rows
| From: | Devon | Date: | Wed, 10 Oct 2001 02:52:39 +0000 |
| Subject: | Date rows | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13175@lists.php.net to get a copy of this message | ||
Below is my script were I am trying to print specific rows of a data base by
using date as the ID, I do not recieve any output can someone please help>?
<?php
$host = "192.168.1.203";
$user = "sc";
$password = "sc";
$dbname = "Syd-01";
$tablename = "Port1";
$date = "2001-10-05";
$link = mysql_connect ($host, $user, $password);
$query = mysql_query("SELECT * FROM $tablename WHERE date='$date'");
$result = mysql_db_query($dbname, $query, $link);
while ($Row = mysql_query ($Result)) {
print $row[indata];
print $row[outdata];
}
mysql_close($link);