[php/mysql] geen output

Pagina: 1
Acties:
  • 39 views sinds 30-01-2008

  • Tux
  • Registratie: Augustus 2001
  • Laatst online: 02-09 06:49
PHP:
1
<?$sql = "SELECT * FROM newsqueue";    $result = mysql_query($sql);    echo mysql_num_rows($result);    while($obj = mysql_fetch_object($result))    {        echo "<tr><td><a href=\"?action=news.queue.view&amp;n=$obj->id\">$obj->subject</a></td><td><a href=\"?action=news.queue.trash&amp;n=$obj->id\">Trash</a></td></tr>\n";    }?>

Er treedt een raar probleem op bij deze code. De regel echo mysql_num_rows($result); geeft steeds 0 aan terwijl er 2 moet staan. Met PhpMyAdmin select ie met die query wel mooi die 2 records.

Maar dit ding is er met geen stok aan te krijgen.

Er is een databaseverbinding.

The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.


  • Tux
  • Registratie: Augustus 2001
  • Laatst online: 02-09 06:49
Hang er maar een slotje aan

Domme fout van mij |:(

The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.


Verwijderd

lahma, hij had het al...

  • Tux
  • Registratie: Augustus 2001
  • Laatst online: 02-09 06:49
Foutje zat perongeluk op verkeerde MySQLserver |:(

The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

oka ;)

Doet iets met Cloud (MS/IBM)


  • wasigh
  • Registratie: Januari 2001
  • Niet online

wasigh

wasigh.blogspot.com

Haha! :P
Pagina: 1

Dit topic is gesloten.