It worked the data came through you are great.
This is the page that displayed.
Some problems I fooled aroung with it but could not get it to go in the right format.
Your Item Status is Listed Below
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/houseof/public_html/db_search.php on line 13
000095 9.12 0.00 0.88 10.00 TRUE TRUE TRUE 2002-12-02
The code that produced this is:
<?php
/ Connecting, selecting database /
$link = mysql_connect("localhost", "houseof", "*****")
or die("Could not connect");
print "Your Item Status is Listed Below";
mysql_select_db("houseof_orders") or die("Could not select database");
/* Performing SQL query */
$query = "SELECT * FROM status where reference = '" . $_POST['db_search'] ."'";
$result = mysql_query($query) or die("Query failed");
while ($a_row = mysql_fetch_array($query)) {
print "reference: " . $a_row["reference"] . "<br>\n";
print "end_bid: " . $a_row["end_bid"] . "<br>\n";
print "s_h: " . $a_row["s_h"] . "<br>\n";
print "salestaxin: " . $a_row["salestaxin"] . "<br>\n";
print "total: " . $a_row["total"] . "<br>\n";
print "confirmation: " . $a_row["confirmation"] . "<br>\n";
print "pay: " . $a_row["pay"] . "<br>\n";
print "shipped: " . $a_row["shipped"] . "<br>\n";
print "ship_date: " . $a_row["ship_date"] . "<br>\n";
}
/* Printing results in HTML */
print "<table>
";
if (mysql_num_rows($result) == 0) {
echo "Please check your reference and try again, or try back later.";
exit;
}
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
print " <tr bgcolor='black'>
";
foreach ($line as $col_value) {
print " <td><font color='white'><b>$col_value</td>
";
}
print " </font></tr>
";
}
print "</table>
";
/* Free resultset */
mysql_free_result($result);
/* Closing connection */
mysql_close($link);
?>
Any suggestions would be great.
I noticed that you are in WA state.
Me too in Kirkland.
Thanks