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 backslash character will match whitespace?
What websites use php?
How many ways to include array elements in double-quoted strings using php?
Explain some of the php array functions?
Is php a mvc?
What are the advantages of stored procedures, triggers, indexes in php?
Is array empty php?
What are default session time and path?
What are the benefits of using php?
Explain what are psrs?
What are traits?
What is htaccess? Why do we use this and where?
Does exist in php?
What are headers in php?
How to swap two variables without using 3rd temp variable.