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 |
Is php free to use?
Can we use get instead of post?
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?
How can you "tell" MySQL server to cache a query?
Whether One-line comment begin with pound sing(#) in php?
I am working in VFP with no knowledge of web programming.I want to learn web database programmin. Can I choose PHP and MYSQL for that?
What is mysqli_fetch_array?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
What is include in php?
Which php framework is best for security?
Why did you choose this particular career path?
What is the role of the .htaccess file in php?