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 |
Do you know what is the use of the function 'imagetypes()'?
List few sensible functions in PHP?
What is a query give example?
What is the main function of php?
m new to xampp i want to configure file server in xampp... is it possible ??? if so help me....
What are the differences between require and include?
Explain some of the php string functions?
What is the main difference between asp net and php?
How can we calculate the similarity between two strings?
What is ci framework in php?
What are the Merits and De-Merits of CURL library ?
What is a controller in php?