I was just testing to see if the site was closed or something .........hmmm, ok, nm the link
and I have no idea why, but as I caopy pasted, for all I know I could be lacking a chunk of code:'
first I connect to the database via PHP, then I try this:
$query="SELECT * FROM Scene";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
?>
<table border="0" cellspacing="2" cellpadding="2">
<tr>
<th><font face="Arial, Helvetica, sans-serif">Value1</font></th>
<th><font face="Arial, Helvetica, sans-serif">Value2</font></th>
<th><font face="Arial, Helvetica, sans-serif">Value3</font></th>
<th><font face="Arial, Helvetica, sans-serif">Value4</font></th>
<th><font face="Arial, Helvetica, sans-serif">Value5</font></th>
</tr>
<?php
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"field1");
$f2=mysql_result($result,$i,"field2");
$f3=mysql_result($result,$i,"field3");
$f4=mysql_result($result,$i,"field4");
$f5=mysql_result($result,$i,"field5");
?>
<tr>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f1; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f2; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f3; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f4; ?></font></td>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f5; ?></font></td>
</tr>
<?php
$i++;
}
?>
</body>
</html>
which prints the error messages
Warning: mysql_result() [
function.mysql-result]: field1 not found in MySQL result index 6 in
/home/inf09/astridb/public_html/PHP/database.php on line
102
Warning: mysql_result() [
function.mysql-result]: field2 not found in MySQL result index 6 in
/home/inf09/astridb/public_html/PHP/database.php on line
103
...