Can anyone tell me where I'm going wrong? I have six columns in a MySQL table (all containing data) and I want to be able to display them on a web page.
I've tried the following script but all it returns are errors (
<?php
$dbcnx = mysql_connect("localhost","root",""
$query = mysql_query("select * from line_filters);
$result = mysql_db_query("awi_products","$query"
while($row=mysql_fetch_row($result)){
$akey = $row[0];
$model = $row[1];
$port = $row[2];
$flowm3 = $row[3];
$flowcfm7 = $row[4];
$flowcfm10 = $row[5];
$net = $row[6];
echo "<table><tr><td>$model</td><td>$port</td><td>$flowm3
</td><td>$flowcfm7</td><td>$flowcfm10</td><td>$net</td></tr>
</table>";
};
mysql_free_result($result);
?>
Any ideas? Thankyou
Rach
I've tried the following script but all it returns are errors (
<?php
$dbcnx = mysql_connect("localhost","root",""
$query = mysql_query("select * from line_filters);
$result = mysql_db_query("awi_products","$query"
while($row=mysql_fetch_row($result)){
$akey = $row[0];
$model = $row[1];
$port = $row[2];
$flowm3 = $row[3];
$flowcfm7 = $row[4];
$flowcfm10 = $row[5];
$net = $row[6];
echo "<table><tr><td>$model</td><td>$port</td><td>$flowm3
</td><td>$flowcfm7</td><td>$flowcfm10</td><td>$net</td></tr>
</table>";
};
mysql_free_result($result);
?>
Any ideas? Thankyou
Rach