...

View Full Version : how to echo multiple rows



sunnynosid
02-28-2012, 05:28 PM
I want to retrieve multiple rows(containing same username) from table mysql. But i don't want to use loop. I want to know if mysql_result() or mysql_data_seek() can retrieve multiple rows or not?

mlseim
02-28-2012, 07:10 PM
The result is usually put into an array.
What do you plan on doing with the array?

sunnynosid
02-29-2012, 02:30 AM
I used mysql_result() to retrieve a specific row but then the following error came:

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 1 on MySQL result index 3 in /home/.../public_html/jobs/MyAccount/myaccount.php on line 64

Firstly, I want to retrieve to retrieve all rows containing same username in the table and then i want to select some specific rows among the previously retrieved all rows. Then i want to collect contents from cells in those specific rows and then want to assign variables to these contents. But why is the above error coming. Please tell me where is the problem.

mlseim
02-29-2012, 02:40 AM
I suppose you could show us the script?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum