Re: LIKE statement works in pmyAdmin, not in the web page
From: Marian Heddesheimer (200604.8.nolink_at_spamgourmet.com)
Date: 06/22/04
- Previous message: Viper_SB: "Re: New asks for help - File size function."
- In reply to: Matthew Crouch: "LIKE statement works in pmyAdmin, not in the web page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Jun 2004 07:47:14 +0200
On Mon, 21 Jun 2004 23:46:17 GMT, "Matthew Crouch"
<matthew.crouch@spamlessverizon.net> wrote:
>$sql2 = "SELECT * from users WHERE note like '%entry%' ORDER BY registered_date DESC";
>echo $sql2;
>$result2 = mysql_query($sql2);
you should also add the following line:
echo mysql_error();
so you will see if mySQL returns any error on your query.
Regards
Marian
-- Tipps und Tricks zu PHP, Coaching und Projektbetreuung http://www.heddesheimer.de/coaching/
- Previous message: Viper_SB: "Re: New asks for help - File size function."
- In reply to: Matthew Crouch: "LIKE statement works in pmyAdmin, not in the web page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|