Regis Ok I need another lifeline
| From: | bogusaccount | Date: | Wed, 12 Jul 2000 22:00:18 +0000 |
| Subject: | Regis Ok I need another lifeline | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6301@lists.php.net to get a copy of this message | ||
Thanks guys for answering my earlier plea for help
I am running the following sample php page. I am getting an error
Parse error: parse error in /home/htdocs/test2.php on line 37
<html>
<head>
<title> Example 2 --more details</title>
</head>
<body bgcolor="white">
<?
$dbuser ='root';
$dbhost = 'localhost';
$dbpass = 'biff';
$dbname = 'test2';
$dbtable = 'book';
//-------DATABASE CONNECTION----------//
$mysql_link = mysql_connect($dbhost,$dbuser,$dbpass);
$column = mysql_list_fields($dbname,$dbtable,$mysql_link);
$sql = "SELECT * FROM $dbtable";
$result = mysql_db_query($dbname,$sql);
?>
<table bgcolor="black">
<tr> <td>
<table> <!------------Inside Table------------>
<?
while($value = mysql_fetch_array($result))
{
print "<tr BGCOLOR=YELLOW>".
//This loop goes through the columns and prints
// each values
for($i=0; $i< mysql_num_fields($column); $i++ )
{
print "<td> $value[$i] </td>";
}
print "</tr>";
}
mysql_free_result($result);
mysql_close();
?>
</table><!-------Inside Table---------->
</td></tr>
</table>
</body>
</html>
?>
</body>
</html>
Thank again,
Joel Webb
Webbgroup Network Systems
joel@the-webbgroup.com
http://www.the-webbgroup.com
336-854-2590
____________NetZero Free Internet Access and Email_________
Download Now http://www.netzero.net/download/index.html
Request a CDROM 1-800-333-3633
___________________________________________________________