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 many types of php frameworks are there?
What language is php written in?
Tell me which programming language does php resemble to?
Explain php parameterized functions.
What is the use of count() function in php?
Which is variable cost?
What is polymorphism in php?
When a conditional statement is ended with an endif?
What is php session and how it works?
What is the delimiter syntax is PHP's default delimiter syntax
Can you explain, when to use if-else if-else over switch statements?
What do you mean range() in php?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What is uri routing?
Explain which cryptographic extension provide generation and verification of digital signatures?