I'm having some difficulty in getting the results to print to the page with the below script.
Any ideas?
Cheers
Stephen
<?
$db_name = "wtmc";
$table_name = "messages";
$connection = @mysql_connect("localhost", "wtmc", "xxxxxxx") or die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database");
$sql = "SELECT subject FROM $messages";
$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");
while ($row = mysql_fetch_array($result)) {
}
?>
Any ideas?
Cheers
Stephen
<?
$db_name = "wtmc";
$table_name = "messages";
$connection = @mysql_connect("localhost", "wtmc", "xxxxxxx") or die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database");
$sql = "SELECT subject FROM $messages";
$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");
while ($row = mysql_fetch_array($result)) {
}
?>