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
How to set a value in session? How to remove data from a session?
How can you make a connection with mysql server using php?
Why is php used?
Explain how we can retrieve the data in the result set of mysql using php?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is instantiation?
Is php free to use?
What is rtrim php?
Can we use session in mvc?
How can I make a script that can be bilingual (supports english, german)?
What are the differences between GET and POST methods?
What is cURL in PHP?
What is isset in php form?
Explain me what is x+ mode in fopen() used for?
Explain NULL?