• 0

PHP script stopping my page loading correctly on server


Question

I have this PHP code below worked fine locally but after I uplaod my site it sucks

pls help check and revert

 

<?php
require ("connect.php"); 

$sql = "SELECT distinct events FROM  events  ORDER BY events"  or die(mysql_error());
$result= mysql_query($sql)or die(mysql_error());
$count=mysql_num_rows($result);
// If result matched, table row must be greater than 1 row
$sn=1;

    echo "<table border=0 cellpadding=10 align='left'>";
echo "<tr><td align='center'></td><td></td></tr>";

while($row=mysql_fetch_array($result)){

$events= $row['events'];

 echo "<tr valign='top'><a href='events_process.php?events=".$events."'>$events</a></tr
  echo "<hr>";

 $sn++;
}
echo "</table>";

?>

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.