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
What are the advantages of using php?
What is an anti csrf token?
What does nan stand for computer science?
Explain what are psrs?
What does the php error 'parse error in php - unexpected t_variable at line x' means?
Please explain is it possible to use com component in php?
Is php faster than javascript?
How do I run a php file?
How to pad an array with the same value multiple times?
How can you propagate a session id?
How do I see how many pages per session in google analytics?
How to concatenate two strings together in php?
What is php sequence?
Where are cookies stored php?
What is the best way to avoid email sent through php getting into the spam folder?