Simple "while" loop problem...
Posted: Tue Feb 05, 2008 3:50 pm
I have this code...
echo $row[$i]."<br>"; show me only the alumno_photo column, how i can get alumno_name and alumno_lastname, column?...
Code: Select all
<?php
$link=mysql_connect("localhost","db_test","test");
mysql_select_db("table_test",$link);
$sql="SELECT alumno_name, alumno_lastname, alumno_photo FROM Quinto_A_T1_N1";
$result=mysql_query($sql);
$i=0;
while ($row=mysql_fetch_array($result))
{
echo $row[$i]."<br>";
}