[thelist] Fwd: PHP question

Jay Turley jayturley at gmail.com
Mon May 18 19:59:47 CDT 2009


I think you need to make the first line
for ( $j = 1; $j <= 1; $j++ )

you have an equality operator in there instead of an assignment operator

On Mon, May 18, 2009 at 5:46 PM, HP Thniah <heanpeng at gmail.com> wrote:

>  Hi there
>
> Can anybody figure out what is wrong with this? Seems like "$SQL.$j"
> returns
> an error. When I change to $SQL1, it works.
>
> for($j==1; $j<=1;$j++)
> {
> $SQL.$j = "SELECT $questionsqid, $questionsqtext, $optionsopttext,
> $optionsopttype From $table, $table1 WHERE $questionsqid = $optionsqid and
> $questionsqid = 1 Group By $optionsopttext";
> $result1 = mysql_query($SQL1) or die(mysql_error());
> }
>
> Any help is appreciated.
>
> Thanks in advance.
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list