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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Explain what does the function get_magic_quotes_gpc() means?
Difference between mysql_connect and mysql_pconnect in php?
What is the use of array_search() in php?
What is php dependency injection?
What is final class and final method in php?
What is php full form?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
How we get browser details of clients machine?
What is lamp in php?
How many escape sequences are recognized in single-quoted strings?
What do you mean by having php as whitespace insensitive?
What is mvc? Why its been used?