Whats wrong?
Hey, can anyone tell me whats wrong w/ this?DW says its line 7
<?php
if ($sstory==""||$lstory==""||$name=="") {
echo "Fill up all the information";
} else {
$connect== mysql_connect ("localhost","root","");
$db== mysql_select_db ("Agentofnight",$connect);
$sql= SELECT name, short_story, long_story, category, date FROM news;
$mysql_result = mysql_query ($sql,$connect);
$num_rows= mysql_num_rows(mysql_result);
if ($num_rows=="0"){
echo "There is no information."
} else {
while ($row= mysql_fetch_array($mysql_result))
{
$name=$row[name];
$category=$row[category];
$short_story=$row[short_story];
$long_story=$row[long_story];
$date=$row[date];
echo "<table width="100%" height="100%" border="0" align="center">
<tr>
<th height="56" scope="col">$Name</th>
<th scope="col">$category</th>
<th scope="col">$date</th>
</tr>
<tr>
<td colspan="3">$short_story</td>
</tr>
</table>"
?>
|