ai vai o codigo q estou usando (sem setar a $id):
$sql = mysql_query("SELECT * FROM $tablename WHERE id='$id'", $conexion); while ($row = mysql_fetch_object($sql)){ blah blah blah }
setando a $id agora:
if(empty($id)){ $id=1; } $sql = mysql_query("SELECT * FROM $tablename WHERE id='$id'", $conexion); while ($row = mysql_fetch_object($sql)){ blah blah blah }
alguem sabe onde está o erro ai? me ajudem ae por favor
obrigado