hello i have been doing PHP for about 4 months now i have the basics down like stting up functions and logging into Mysql 3 and basic mysql executions. but the book i am useing does not tell me how to list a database in php in reverse order.
ex. db
ID text
0 hello
1 there
2 people
the script i am useing would print "hello there people"
i want it to print "people there hello"
this is only an example but that is what i would like it to do
can any one help
the code i am useing is as follows
<?php
$conn = mysql_connect("localhost", "username", "password");
mysql_select_db("test",$conn);
$sql = "SELECT * FROM welcome";
$result = mysql_query($sql, $conn) or die(mysql_error());
while ($newArray = mysql_fetch_array($result)) {
$testField = $newArray['welcome'];
echo "$testField <br><br>";
}
?>
thanks Longbow