[PHP-DB] Re: mysql_fetch_array

2003-02-25 Thread J.Veenhuijsen
Maybe on the 14th record the while statement is false. Try do...while ??? Jochem F.Collineau wrote: Hi, Here is my code: ? require(util.php); $sql= new MySQL_class; $sql-Setup(user,user,localhost); $sql-connexion(materiel); $sql-Query(select nom from personne); $cpt=0;

[PHP-DB] Re: mysql_fetch_array() question

2002-11-04 Thread Graeme McLaren
Hi everyone, I think I've got the problem sorted, I'll soon let y'all know if it doesn't work ! Cheers, Graeme :) On Mon, 2002-11-04 at 21:47, Graeme McLaren wrote: Hi, Anyone know how I can use two mysql_fetch_array() functions similar to the code below? I've tried a few different ways but

[PHP-DB] Re: mysql_fetch_array pointer

2002-06-05 Thread Jason Morehouse
mysql_data_seek($result_cat,0); http://www.php.net/manual/en/function.mysql-data-seek.php On Tue, 29 Aug 2000 22:55:11 +1200, Jeffrey Barendse wrote: I like to use a script like this: $result_cat = mysql_query(select cat_naam from categorie order by cat_naam); while($row =

[PHP-DB] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Web user
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]

RE: [PHP-DB] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Jason Wong
-Original Message- From: Web user [mailto:[EMAIL PROTECTED]] Sent: 30 September 2001 22:15 To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: mysql_fetch_array() doesn't work [snip] It only works when the $arr['user_id'] is out of the quotes. echo trtda href=\profile.php?id=.$arr['user_id

[PHP-DB] Re: mysql_fetch_array() doesn't work

2001-09-25 Thread Steve Brett
there doesn't look to be any problem with the code you've shown. it would be helpful, however, if you included the full error including the line and the lines surrounding this point as the error probably lies in previous code. Steve Web User [EMAIL PROTECTED] wrote in message

RE: [PHP-DB] Re: mysql_fetch_array() doesn't work

2001-09-25 Thread Rick Emery
I agree with Steve. Also, print value of $num; is it 0? Is $res valid; is it NULL? We need far more details than what you think we need. -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 6:34 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re

[PHP-DB] Re: mysql_fetch_array

2001-07-30 Thread Jonathan Hilgeman
try just changing mysql_fetch_array to mysql_fetch_assoc Bryan [EMAIL PROTECTED] wrote in message 006801c1192c$649f6e30$272478cc@bryanspc">news:006801c1192c$649f6e30$272478cc@bryanspc... mysql_fetch_array places 2 records for each one returned (example) Array ( [0] = 56

[PHP-DB] Re: mysql_fetch_array problem

2001-07-09 Thread Philip Olson
What's your code look like, something like this? $result = mysql_query(SELECT name FROM tablename); while ($row = mysql_fetch_array($result)) { print Name : . $row['name'] . br\n; } The above is the most standard way at least. Share your appropriate snippet of code, could be a few