Hi,
I'm trying to get the number of rows from a specific database table to appear as text in an HTML webpage.
Here's the code I have, but can't figure out what's wrong and why it won't display. I have it in the middle of a form.
Any help would be appreciated.
<html>
<body>
<?php
$connection = mysql_connect(" localhost", "XUSERX", "XPASSX");
mysql_select_db ("XDATABASENAME X", $connection);
$result = mysql_query("SE LECT * FROM xdatabasetablex ;);
{
echo $result. "of 200 needed".;
}
?>
</body>
</html>
I'm trying to get the number of rows from a specific database table to appear as text in an HTML webpage.
Here's the code I have, but can't figure out what's wrong and why it won't display. I have it in the middle of a form.
Any help would be appreciated.
<html>
<body>
<?php
$connection = mysql_connect(" localhost", "XUSERX", "XPASSX");
mysql_select_db ("XDATABASENAME X", $connection);
$result = mysql_query("SE LECT * FROM xdatabasetablex ;);
{
echo $result. "of 200 needed".;
}
?>
</body>
</html>
Comment