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
Is strcmp case sensitive?
What is Mcrypt used for?
What distinguishes php from something like client side java script?
How many types of array are there in php?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
What is the use of htmlentities in php?
What is the difference between characters 23 and x23?
What is the use of extract function in php?
Define soundex()?
What is instantiation?
Is numeric in php?
What is implode() in php?
Describe the security vulnerability of PHP?
How to return a value back to the function caller?
Is php secure?