Hi, I'm a programmer who is just starting and I have a problem with While, I'm rescuing a data from an SQL table, so all right, in fact if I do a print_r before the While rescues me without any problem, but when going through the while it does not show me any data.
this is my code:
$result = mysql_query($sSQL, $conexion) or die(mysql_error());
if($row = mysql_fetch_assoc($result)){
$tipo = trim($row["tipo"]);
if ($tipo == "MT")
{
while ($row = mysql_fetch_assoc($result))
{
print_r($row);
Nor does it show me an error in that line of code ... does anyone know what my error may be?