i want to store retrieved data from database into an array
list with limit.And display the data from that array
list.have any answer for this?
Answer Posted / bibhu
First retrieve data from database using following command
$select = mysql_query("SELECT * FROM table limit number") or
die(mysql_error);
then store retrieve data in array using following command
while($row = mysql_fetch_array($select))
{
$rname[] = $row['name'];
}
display values of array
foreach($rname as $val)
{
echo $val;
}
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Why do we use inheritance in php?
Is rent a variable cost?
How to get the length of string?
Which function parses an English textual date or time into Unix timestamp in PHP.
How check submit button is clicked in php?
What is the importance of parser in php?
How to create a table to store files?
Tell me what's the difference between include and require?
What is php namespace?
Which is not a php magic constant?
Explain how to submit form without a submit button.
Is php procedural or oop?
What is form submission?
What is the difference between die () and exit () in php?
What is an example of a variable?