<?php
mysql_connect("localhost","User","password") or die(mysql_error());
mysql_select_db("table1") or die(mysql_error());
?>
<br>
<table width="84%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" bgcolor="#bedaff"><div align="center" class="style5">
<div align="center">Useful statistics</div>
</div></td>
</tr>
<tr>
<td width="25%" bgcolor="#bedaff"><div align="center"><span class="style1">Number of subscriptions</span></div></td>
<td width="25%" bgcolor="#bedaff"><div align="center"><span class="style1">Number of Querys</span></div></td>
<td width="25%" bgcolor="#bedaff"><div align="center"></div></td>
<td width="25%" bgcolor="#bedaff"><div align="center"></div></td>
</tr>
<tr>
<td bgcolor="#E5EEFF<?php SELECT_COUNT("ID") AS "num_rows" FROM "catA"
?>
</td>
<td bgcolor="#E5EEFF"> </td>
<td bgcolor="#E5EEFF"> </td>
<td bgcolor="#E5EEFF"> </td>
</tr>
</table>
I have put my php login for my Mysql above the table as I want to request figures from different parts of the DB not all from catA,
I want some of the blank table spaces to have information from catB or catC3 for example.
I just get errors at the minute. Obviously I have mashed the table up etc... Any ideas? on how I can select info from various parts of the DB, or do I need to connect individually each time I want something new? having said that I can't even get the one query above to work...
An example of above would be great
Steve