"Christmas - the time to fix the computers of your loved ones" « Lord Wyrm

schnelle MySQL Hilfe

Xtender 30.12.2001 - 20:17 931 4
Posts

Xtender

*d***is*rator :)
Avatar
Registered: May 2001
Location: judenburg
Posts: 730
$i = "0";

$pda_eintraege = mysql_db_query("$db","SELECT * FROM $pda_einträge WHERE marke='$marke' ORDER by type LIMIT $i,5+$i");

while($pda_outeintraege=mysql_fetch_array($pda_eintraege)){

$i = $i+5;

.....


wieso funzt das nicht?=

HP

Legend
Moneymaker
Registered: Mar 2000
Location: Wien
Posts: 21813
Welche Fehlermeldung erscheint?

Xtender

*d***is*rator :)
Avatar
Registered: May 2001
Location: judenburg
Posts: 730
Warning: Supplied argument is not a valid MySQL result resource in c:\hosted\pda_datenbank\templates\gallery.html on line 14


irgendwas mit den limit stimmt nicht

Xtender

*d***is*rator :)
Avatar
Registered: May 2001
Location: judenburg
Posts: 730
$start = "0";

$stop = $start+5;

$pda_eintraege = mysql_db_query("$db","SELECT * FROM $pda_einträge WHERE marke='$marke' ORDER by type LIMIT $start,$stop");

while($pda_outeintraege=mysql_fetch_array($pda_eintraege)){

$start = $start+5;


ok funzt... fehler gefunden

HP

Legend
Moneymaker
Registered: Mar 2000
Location: Wien
Posts: 21813
Hm, k :)
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz