[PHP] Re: Simple Problem

2005-04-12 Thread Skrol29
That's a SQL problem, nothing to do with PHP. You've forgotten a JOIN clause. - Skrol29 www.tinybutstrong.com - PartyPosters a écrit : I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the

[PHP] Re: Simple Problem

2005-04-12 Thread Labunski
I'm not sure, but I just know that if you need to select the information from two tables (and not just from one), you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html ) Hope this helps, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Re: Simple Problem

2005-04-12 Thread Labunski
I'm not sure, but I just know that if you need to select the information from two tables (and not just from one), you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html ) Hope this helps, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 18:32:50 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Tuesday 14 September 2004 18:06, Logan Moore wrote: > > Ok I think I figured out my own problem. The speechmarks in the Form break > > up the speech marks in the echo statement so I originally changed the echo > > statem

Re: [PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Jason Wong
On Tuesday 14 September 2004 18:06, Logan Moore wrote: > Ok I think I figured out my own problem. The speechmarks in the Form break > up the speech marks in the echo statement so I originally changed the echo > statements speechmark to a ' which worked but was informed that this was > considered ba

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Niklas Lampén
First of all, I'd use something like this: -- CODE -- . Foo -- END -- But the actual error is in the echo. You're having quotation marks inside it. You need to do it my way, or write the form like echo "..."; ?> Niklas Logan Moore wrote: I am currently coding a cms. So f

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
Ok I think I figured out my own problem. The speechmarks in the Form break up the speech marks in the echo statement so I originally changed the echo statements speechmark to a ' which worked but was informed that this was considered bad syntax and that maybe I should add a \ in front of all speech

[PHP] Re: simple problem

2002-09-04 Thread nicos
Sorry I hadn't read well, yes use if(!($i %3)) echo "lala"; -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hi, > > On every loop, just put the text you want to add to a varia

[PHP] Re: simple problem

2002-09-04 Thread nicos
Hi, On every loop, just put the text you want to add to a variable. like if($i == 0) echo "first print"; elseif($i == 1) echo "second"; elseif($i == 2) echo "third"; etc... -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Cirkit Braker" <[EMAIL PR

[PHP] Re: simple problem

2002-09-04 Thread Philip Hallstrom
add the following: if( $i % 3 == 0 ) { print("something else"); } You might need to vary the zero in that equation to get it to print at the "right time" by which I mean, the above will print "something else" on the first iteration of the below loop. -philip On Wed, 4 Sep 2002, Cirkit