Re: [PHP-DB] WHILE

2009-07-19 Thread Yves Sucaet
Why don't you use mysql_fetch_assoc() instead? You can address your fields directly, as in: while($row_FOTOS=mysql_fetch_assoc($result)) { echo "height='384' />"; echo "height='384' />"; } Alternatively, you can specify which fields you want in your SQL statement: $sql = "SEL

[PHP-DB] WHILE

2009-07-19 Thread Emiliano Boragina
Hello everyone… First, I thank you all for the help on the past week. I could do the finder... thank you very much. Now... I must print images from the product. But the data about the product is in a table and the pictures are in other table. The picture table has 12 columns, the first tw

[PHP-DB] 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. Any 'id' greater then '1' will populate the _SESSION variables. $q = "SELECT * FROM emplo

Re: [PHP-DB] while - if - problem

2003-06-06 Thread Earl
Hey thanks Mike that surly made a difference. Earl ' - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Earl'" <[EMAIL PROTECTED]>; "PHP-DB" <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 6:13 AM

RE: [PHP-DB] while - if - problem

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Earl [mailto:[EMAIL PROTECTED] > Sent: 04 June 2003 22:04 > To: PHP-DB > > FYI > this was beginning to bug me out... so I decided to try the > trim function > and walla... it worked. > > Thanks for ya'll assistance. I was going to say this even before yo

[PHP-DB] while - if - problem

2003-06-05 Thread Earl
FYI this was beginning to bug me out... so I decided to try the trim function and walla... it worked. Thanks for ya'll assistance. --- $eventQuery=ifx_query('select * from event' .' where e_date >= today '

Re: [PHP-DB] while - if problem

2003-06-05 Thread Miles Thompson
'3'; $s_lt='ML'; $t_lt='TM'; } else $r_away['sport']='4'; $r_home['sport']='4'; $s_lt='ML'; $t_lt='TM'; $r_away['rotation']=$cols['out_id']; $r_home['rotation

Re: [PHP-DB] while - if problem

2003-06-05 Thread Earl
y['sport']='3'; $r_home['sport']='3'; $s_lt='ML'; $t_lt='TM'; } else $r_away['sport']='4'; $r_home['sport']='4'; $s_lt='ML'; $t_lt='TM'; $r_away['rotation']=$cols['out_id']; $r_home['rota

Re: [PHP-DB] while - if problem

2003-06-05 Thread Becoming Digital
;sport']='2'; $s_lt='PS'; $t_lt='TP'; } elseif ($cols['s_acro']=='B') { $r_away['sport']='3'; $r_home['sport']='3'; $s_lt='ML'; $t_lt='TM'; } else $r_a

[PHP-DB] while - if problem

2003-06-05 Thread Earl
Hey guys, I've got a problem with this piece of code it is skipping the contents of the if and elseif statements and only printing the else values, even though the if or one of the elseif statements might be true. what could possibly be the problem?? --

[PHP-DB] while loop help

2003-02-15 Thread Peter Gumbrell
I would appreciate some help with the following code. I have presented a user with a table of session workshops for a conference. There is a select list called "rank", and the value is the workshop letter and number with the user's ranking, e.g. "B12-1 B12-2, B12-3" for each workshop. The following

Re: [PHP-DB] While + Function

2003-01-23 Thread 1LT John W. Holmes
if(category = 'bla') Maybe you shouldn't be using a constant if it's going to be changing each time the page loads. ---John Holmes... - Original Message - From: "Shachar Tal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 23

Re: [PHP-DB] While + Function

2003-01-23 Thread Matthias St.
-- Original Message - > From: "Jason Wong" <[EMAIL PROTECTED]> > Newsgroups: php.db > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 23, 2003 11:54 AM > Subject: Re: [PHP-DB] While + Function > > >> On Thursday 23 January 2003 06:04, S

Re: [PHP-DB] While + Function

2003-01-23 Thread Shachar Tal
en, I want to check what it is, like if constant(category) = "bla" { } whats the syntax for checking the value of it? thanks - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.db To: <[EMAIL PROTECTED]> Sent: Thursday, January 2

Re: [PHP-DB] While + Function

2003-01-23 Thread Jason Wong
On Thursday 23 January 2003 06:04, Shahar Tal wrote: > Hello all! > > I got one page, with this code: > > echo insert_results(); > ?> > > Which grabs the data I send from another page, on that function. > Here is the important part of the function while code: > > while ($row = mysql_fetch_array($r

[PHP-DB] While + Function

2003-01-22 Thread Shahar Tal
Hello all! I got one page, with this code: Which grabs the data I send from another page, on that function. Here is the important part of the function while code: while ($row = mysql_fetch_array($result)){ function insert_results () { extract($row); echo "bla"; } } Ok, this

RE: [PHP-DB] while...if statements???

2001-12-18 Thread Leotta, Natalie (NCI/IMS)
TECTED]; > [EMAIL PROTECTED] > Subject: [PHP-DB] while...if statements??? > > Does anyone know why this isn't working?? What I am trying to do is > display > photos from a database based on each month. This part works fine when I > set > it to the current

[PHP-DB] while...if statements???

2001-12-18 Thread Jay Fitzgerald
Does anyone know why this isn't working?? What I am trying to do is display photos from a database based on each month. This part works fine when I set it to the current month of December (today) as that is when I uploaded the photos. However, when I manually set the date to a month that has n

RE: [PHP-DB] while loop driving me crazy

2001-02-21 Thread Miles Thompson
Richard, What can one say? Too late? Too long looking at it? Reading too quickly? or in the immortal wordsof Charlie Brow " AUUGH!" Thanks a million and love your signature. Miles Thompson At 03:30 PM 2/21/01 +, [EMAIL PROTECTED] wrote: > while( $row = mysql_fetch_array( $result ) )

RE: [PHP-DB] while loop driving me crazy

2001-02-21 Thread Chris Andrew
Remove the semi-colon after your while() statement. > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED]] > Sent: 21 February 2001 15:01 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] while loop driving me crazy > > > I've used a similar str

RE: [PHP-DB] while loop driving me crazy

2001-02-21 Thread Allsebrook_Richard/askr
BDY.RTF -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DB] while loop driving me crazy

2001-02-21 Thread Miles Thompson
I've used a similar structure hundreds of times, but the following isn't working: $result = mysql_query($sql, $db); if( !$result ) { echo "No result code in SQL send. "; } if( mysql_num_rows( $result ) >= 1 ) { echo "Rows fetched: ", mysql_num_rows( $result ), ""; while( $row = m