note 103000 added to function.mysql-fetch-row

From: Date: Sat, 19 Mar 2011 09:56:36 +0000
Subject: note 103000 added to function.mysql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-178001@lists.php.net to get a copy of this message
<html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <title>Prueba de tabla PHP</title> </head> <body> <?php if ($link=mysql_connect('localhost','root','')){ echo ("Conectado"); } else { echo("Desconectado"); } if ($db_selected = mysql_select_db ( 'mirador' , $link )){ echo ("Base de datos seleccionada"); } else { echo ("Base de datos no seleccionada"); } if (isset($_GET['ord'])) { $orden = $_GET['ord']; } else { $orden = 1; } $query="Select * From comentarios order by $orden"; echo ($query); $result=mysql_query($query,$link); if (!$result) { die('Invalid query: ' . mysql_error()); } echo("<table border='1'><th><a href='".$_SERVER['PHP_SELF']."?ord=Apellidos'>Apellidos</a></th><th><a href='".$_SERVER['PHP_SELF']."?ord=DNI'>DNI</a></th><th><a href='".$_SERVER['PHP_SELF']."?ord=Nombre'>Nombre</a></th><th><a href='".$_SERVER['PHP_SELF']."?ord=Telefono'>Telefono</a></th>"); while ($fila = mysql_fetch_row($result)) { echo('<tr>'); echo('<td>'); echo($fila[3]); echo('</td>'); echo('<td>'); echo($fila[4]); echo('</td>'); echo('<td>'); echo($fila[5]); echo('</td>'); echo('<td>'); echo($fila[6]); echo('</td>'); echo('</tr>'); } echo('</table>'); mysql_free_result($result); mysql_close($link); ?> </body> </html> ---- Server IP: 130.206.1.5 Probable Submitter: 95.23.205.185 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-row.php Edit -- https://master.php.net/note/edit/103000 Del: integrated -- https://master.php.net/note/delete/103000/integrated Del: useless -- https://master.php.net/note/delete/103000/useless Del: bad code -- https://master.php.net/note/delete/103000/bad+code Del: spam -- https://master.php.net/note/delete/103000/spam Del: non-english -- https://master.php.net/note/delete/103000/non-english Del: in docs -- https://master.php.net/note/delete/103000/in+docs Del: other reasons-- https://master.php.net/note/delete/103000 Reject -- https://master.php.net/note/reject/103000 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178001) next »