Checks rows etc before broadcasting dataPHP Code:<?php
include( 'database.php' );
if( $mysqlQuery = mysql_query( 'SELECT * FROM `database`' ) )
{
if( mysql_num_rows( $mysqlQuery ) <= 0 )
{
echo( 'No data in table' );
}
else
{
while( $mysqlFetch = mysql_fetch_array( $mysqlQuery ) )
{
echo( 'Blah: ' . $mysqlFetch[ 'blah' ] );
// print_r( $mysqlFetch );
// That will show you whats int he array etc ( field name etc )
}
}
}
else
{
echo( 'Mysql Error' );
}
?>





Reply With Quote
lol.



Fixed now, had to delete the whole database and make a new one with new names, weird :S
