Hallo allemaal,
Ik heb een stukje code waar ik niet uit kom helaas, zou iemand mij een tip kunnen geven wat ik verkeerd doe. Volgens mij doe ik iets verkeerd met de "nextrow-functie".
Alvast bedankt. Groet Bram
$db=new Database();
$db->setPath("./");
$db->dbConnect();
$connect = $db->getConnection();
$db2=new Database();
$db2->setPath("./");
$db2->dbConnect();
//hieronder stel ik de basistaal in die uit dezelfde tabel komt als de editable taal
$taalid = 'nl';
if ( isset( $_GET["taalid"] ) ) {
$taalid = $_GET["taalid"];
}
//hieronder stel ik de nieuwe taal in (dezelde tabel)
$taalid2 = 'nl';
if ( isset( $_GET["taalid2"] ) ) {
$taalid2 = $_GET["taalid2"];
}
<head>
</head>
<body>
<?php
$db2->query( "select * from talen where cat_id='index' and tekst_id='indexsubitems' and taal_id='$taalid2' order by volgorde asc" );
do {
$url2 = $db2->getField( "url" );
$db->query( "select * from talen where cat_id='index' and tekst_id='indexsubitems' and taal_id='$taalid' order by volgorde asc" );
$db->firstRow();
$count = 0;
do {
$count ++; //tel 1 bij count op (voor edit mode)
$url = $db->getField( "url" );
?>
echo basistaal<?php echo $url2; ?>
echo nieuwe taal <?php echo $url; ?>
<?php } while ( $db2->nextRow() );
$count ++;
} while ( $db->nextRow() );
?>
</body>
545 views