MySQL Forums
Forum List  »  General

Re: search in variable table
Posted by: Felix Geerinckx
Date: April 19, 2005 01:37PM

ahmed tayeb wrote:
$sa="like "."".$month."";
> $query = "select * from ".$year." where month $sa
> and day $sb";
>
> can you tell me how to search with variable table
> name ??!!

When you interpolate variables in query-strings, it's always a good idea to print them when something doesn't work.

What's the value of $query? You don't say what $year contains.

--
felix

Options: ReplyQuote


Subject
Written By
Posted
April 18, 2005 09:49AM
April 19, 2005 08:47AM
Re: search in variable table
April 19, 2005 01:37PM
April 20, 2005 10:38AM
April 23, 2005 06:16AM
April 24, 2005 03:33AM
April 25, 2005 10:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.