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 / guest
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 ? | 15 Yes | 5 No |
Post New Answer View All Answers
What is php pathinfo?
What is $_session in php?
Which of the data type is compound datatype supported by PHP?
How to convert strings in hex format?
how to track no of users logged in?
How can we display the output directly to the browser?
in PHP for pdf which library used?
What is the best php version for wordpress?
How do you measure variables?
Name some of the popular frameworks in php.
How long should a session last?
What software is required for php?
What are the 5 types of data?
Can we extend final class in php?
Is php faster than python?