Return to Snippet

Revision: 7903
at August 20, 2008 12:22 by LondonWeb


Initial Code
include("conx.php");

//----depois o RS
$Tabela = "clientes";

$SQL = "SELECT * FROM $Tabela ORDER BY Nome ASC";
$rs = mysql_query("$SQL");

//-----> Depois o Loop

 <? while ($x = mysql_fetch_assoc($rs)){  ?>
    <? echo $x['campo1'] ?>
<? } ?>

Initial URL


Initial Description
Simplified form to extract data through MySQL

Initial Title
dataList - Listar dados

Initial Tags
mysql, data, list

Initial Language
PHP