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 is reference variable php?
What is final class and final method in php?
How to retrieve the original query string?
What is the output of the following php code?
What php framework does wordpress use?
What is encapsulation in php with example?
How we can declare variable in php?
How can I prevent sql-injection in php?
How to terminate the execution of a script in PHP?
How to check your php installation?
What are the two main string operators?
What is a php web application?
what is CURL?
Is php free to use?
How can we enable error reporting in php?