mysql php output question

Alexej Kubarev

New member
Try this:

$query="SELECT * FROM linklist ORDER BY type, url";

do not use mysql_result as its already depricated in PHP5..

use while($row=mysql_fetch_assoc($result)){
echo($row['type']);
}
 
okej..that can work too :)

while ($row2 = mysql_fetch_array($result2))

Change it to:
while ($row2 = mysql_fetch_assoc($result2))

always use _assoc intead of _array because array fetches stufff that you never need and actually no1 can even know those indexes that array fetches.. so assoc is much better..you will get the same results in the end
 
Back
Top