First, try just calling the form action like:

<form action="luquery.php?DB=csjoa&TA=associates&SortField=company"
method="POST">
Turning the &amp; into & chars (maybe my mail prog formatted it like this?
...nevertheless..)

Also, try doing:

    $result=mysql_query("select * from $TA where $SortField='%".$search."%'
order by $SortField");

-------
David Balatero
www.icegaming.com
[EMAIL PROTECTED]
-------

Jim Ray wrote:

> I have a simpe query that I can not seem to get to work.
>
> Here is the HTML side:
> <td width="27%" align="center"><form
> action="luquery.php?DB=csjoa&amp;TA=associates&amp;SortField=company"
> method="post"><input type="text" name="search"><br><input
> type="submit"></form></td>
>
> Here is the PHP side:
>
> The fields are being past, but I get 0 in the results?
>
>     $result=mysql_query("select * from $TA where $SortField='$search%' order
> by $SortField");
>
> Am I missing something here?
>
> Thanks for the help.
>
> Jim
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to