Forum Moderators: coopster

Message Too Old, No Replies

Search code showing on page

search code is visible

         

JSoaper

8:08 am on Apr 17, 2009 (gmt 0)

10+ Year Member



I have the search code showing on my page and I am trying to hide it. Several attmepts have resulted in failure. Any help appreciarted greatly

Section of code shown below:

echo '<th bgcolor="#C0C0C0" style="text-align:left;">Email</th>';
echo '<th bgcolor="#C0C0C0" style="text-align:left;">Type</th>';
echo '<th bgcolor="#C0C0C0" style="text-align:left;">Edit</th>';
echo '<th bgcolor="#C0C0C0" style="text-align:left;">Updated</th>';
echo '<th bgcolor="#C0C0C0" style="text-align:left;">User</th>';;
echo '</tr>';

//******* THIS SHOWS*******************
$sql ="select * from `clients` where $method like '%$text%' AND `User` NOT LIKE 'AB' AND `Type` NOT LIKE 'JOE' AND `USER` NOT LIKE 'ME' ";
//***************************************
$query = mysql_query($sql);

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

echo "
<tr>
<td>".$row['id']."</td>
<td>".$row['Account']."</td>
<td>".$row['Client']."</td>
<td>".$row['Email1']."</td>
<td>".$row['Type']."</td>

daveginorge

2:41 pm on Apr 17, 2009 (gmt 0)

10+ Year Member



Apart from having a double ; at the end of
echo '<th bgcolor="#C0C0C0" style="text-align:left;">User</th>';;

If all else fails wrap the code in a div

<div style="display: none;">
echo '<th bgcolor="#C0C0C0" style="text-align:left;">User</th>';
</div>