FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » query with empty resultset (but the same one, used in phpmyadmin, gives results!!)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: query with empty resultset (but the same one, used in phpmyadmin, gives results!!) [message #175353 is a reply to message #175350] Sat, 10 September 2011 12:32 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/10/2011 7:34 AM, SatBoy78 wrote:
> solved!
>
> the problem was $month=09;
>
> correct is $month=9;

When you have problems with a database query, you should echo the query
you are issuing. Then if the problem is not obvious, you should almost
always ask in a database newsgroup.

The solution may end up being in PHP - but PHP knows nothing about SQL
and that's where your diagnosis should start.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HOW TO: Spice up Your Site With Simple PHP
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 05:25:18 GMT 2024

Total time taken to generate the page: 0.05240 seconds