onde está o erro?
$sql = mysql_query("SELECT *, LEFT(lote,8) as resumo FROM tbalunos2007 ORDER BY lote ASC");
while($row = mysql_fetch_array($sql)){
$x = $this->$resumo;
echo "$x <br>"; }
ele nao imprime nada na tela...
Posted 09/02/2007, 10:41
$sql = mysql_query("SELECT *, LEFT(lote,8) as resumo FROM tbalunos2007 ORDER BY lote ASC");
while($row = mysql_fetch_array($sql)){
$x = $this->$resumo;
echo "$x <br>"; }
Posted 09/02/2007, 10:50
SELECT *, LEFT(lote,8) as resumo FROM tbalunos2007 ORDER BY lote ASC
Posted 09/02/2007, 10:59
Posted 09/02/2007, 11:13
Posted 09/02/2007, 11:16
while($row = mysql_fetch_array($sql)){ $x = $row['resumo']; echo "$x <br>"; }
Posted 09/02/2007, 11:27
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)