the-dream
06-03-2007, 06:56 PM
The whiles are not outputing any data and i have the data in my MySQL DB! Please take a look! Oh, and i have error reporting on!
<?php
$dizzle = $_GET['q'];
$connect = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db = @mysql_select_db("sptxbx");
$query = 'SELECT * FROM `news` WHERE * LIKE \'%' . $dizzle . '%\'';
$mksql =@mysql_query($query);
$fet =@mysql_fetch_array($mksql);
?>
<?php
$dizzle1 = $_GET['q'];
$connect1 = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db1 = @mysql_select_db("sptxbx");
$query1 = 'SELECT * FROM `games` WHERE * LIKE \'%' . $dizzle1 . '%\'';
$mksql1 =@mysql_query($query1);
$fet1 =@mysql_fetch_array($mksql1);
?>
<?php
$dizzle2 = $_GET['q'];
$connect2 = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db2 = @mysql_select_db("sptxbx");
$query2 = 'SELECT * FROM `reviews` WHERE * LIKE \'%' . $dizzle2 . '%\'';
$mksql2 =@mysql_query($query2);
$fet2 =@mysql_fetch_array($mksql2);
?>
<div align="center">
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>News Results:</td>
</tr>
<?php while($fet =@mysql_fetch_array($mksql)) { ?>
<tr>
<td><a href="newsitem.php?id=<?php $fet['id']; ?>"><?php echo $fet['title']; ?></a></td>
</tr>
<?php } ?>
</table>
<br />
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Games Results:</td>
</tr>
<?php while($fet1 =@mysql_fetch_array($mksql1)) { ?>
<tr>
<td><a href="viewgame.php?id=<?php $fet1['id']; ?>"><?php echo $fet1['name']; ?></a></td>
</tr>
<?php } ?>
</table>
<br />
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Reviews Results:</td>
</tr>
<?php while($fet2 =@mysql_fetch_array($mksql2)) { ?>
<tr>
<td><a href="viewreview.php?id=<?php $fet2['id']; ?>"><?php echo $fet2['title']; ?></a></td>
</tr>
<?php } ?>
</table>
</div>
<?php
$dizzle = $_GET['q'];
$connect = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db = @mysql_select_db("sptxbx");
$query = 'SELECT * FROM `news` WHERE * LIKE \'%' . $dizzle . '%\'';
$mksql =@mysql_query($query);
$fet =@mysql_fetch_array($mksql);
?>
<?php
$dizzle1 = $_GET['q'];
$connect1 = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db1 = @mysql_select_db("sptxbx");
$query1 = 'SELECT * FROM `games` WHERE * LIKE \'%' . $dizzle1 . '%\'';
$mksql1 =@mysql_query($query1);
$fet1 =@mysql_fetch_array($mksql1);
?>
<?php
$dizzle2 = $_GET['q'];
$connect2 = @mysql_connect("localhost","root","root") or die("Could not connect to database!");
$db2 = @mysql_select_db("sptxbx");
$query2 = 'SELECT * FROM `reviews` WHERE * LIKE \'%' . $dizzle2 . '%\'';
$mksql2 =@mysql_query($query2);
$fet2 =@mysql_fetch_array($mksql2);
?>
<div align="center">
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>News Results:</td>
</tr>
<?php while($fet =@mysql_fetch_array($mksql)) { ?>
<tr>
<td><a href="newsitem.php?id=<?php $fet['id']; ?>"><?php echo $fet['title']; ?></a></td>
</tr>
<?php } ?>
</table>
<br />
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Games Results:</td>
</tr>
<?php while($fet1 =@mysql_fetch_array($mksql1)) { ?>
<tr>
<td><a href="viewgame.php?id=<?php $fet1['id']; ?>"><?php echo $fet1['name']; ?></a></td>
</tr>
<?php } ?>
</table>
<br />
<table width="410" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Reviews Results:</td>
</tr>
<?php while($fet2 =@mysql_fetch_array($mksql2)) { ?>
<tr>
<td><a href="viewreview.php?id=<?php $fet2['id']; ?>"><?php echo $fet2['title']; ?></a></td>
</tr>
<?php } ?>
</table>
</div>