Acmlm's Board - I2 Archive - Programming - PHP Variables
User | Post |
Dragato
Posts: 24/25 |
I think you want something along the lines of:
$name=mysql_query("SELECT id, name, post FROM test WHERE post!='' ORDER BY id DESC LIMIT 0,10");
while($info=mysql_fetch_array($name)){
echo" $info[name], $info[post]"; }
Try that, although I could be missing something |
Exadis
Posts: 14/32 |
Im trying to select two fields in my database, extract them, and display the two seprete feilds side by side on the webpage. I seem to be running into ALOT of parse errors when I do it, can anyone tell me what im doing wrong, i've been at this for some time now. $name=mysql_query("SELECT id, name, post FROM test WHERE upost!='' ORDER BY id DESC LIMIT 0,10");
while($info=mysql_fetch_array($name)) $display.=" ".$info[name]:",info[post].""; print " $display ";
Any insight on the problem would be very apreciated. ![](images/smilies/smile.gif)
Edit: By the way, that BR is not there in the script. O_o |
|