Thread
:
How do i search from a form to mysql database using php
View Single Post
#
4
(
permalink
)
04-22-04, 11:16 PM
Tim
Newbie Coder
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
It is probably due to using the mysql_fetch_array function
twice. Try changing:
if ($row = mysql_fetch_array($query))
to
if ($row = !$query)
It will accomplish the same thing without the extra function call.
__________________
Tim
Tim
View Public Profile
Visit Tim's homepage!
Find all posts by Tim