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 the scope of php in the future if any other language is developed then may be php is loss ???
How can we encrypt the password using php?
How to create a table using php?
Which MySQL function would you use to select a database?
When to use single quotes, double quotes, and backticks?
What is array function in javascript?
What is difference between array_merge and array_combine in php?
Differentiate between require and include?
What is the difference between echo, print and printf()?
What is helper function?
What is advanced php programming?
Write a program to display table of a number using php?
Do you know what is use of count() function in php?
Is php a low level language?
What is csrf mvc?