begrijp fouten niet

Status
Niet open voor verdere reacties.

gebruiker35

Gebruiker
Lid geworden
29 mrt 2008
Berichten
434
Nieuw probleem oude opgelost. ik wil dus dat hij controleert of uit ene tabel id en uit andere content_id gelijk zijn. dit werkt nu, alleen hij doet het alleen met het laatst geplaatste bericht. de while gaat dus niet door. wat doe ik fout?

PHP:
 $conn = mysql_connect($dbhost, $dbuser, $dbpass)
  or die ('Error connecting to mysql');

mysql_select_db($dbname);

$sq1 = "SELECT * FROM jos_content_frontpage";
$result67 = mysql_query($sq1);


$SQL66 = "SELECT * FROM jos_content WHERE (state='1' AND checked_out='0' AND sectionid > '0') AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= NOW()) AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= NOW()) ORDER BY created DESC LIMIT 50;";
$result66 = mysql_query($SQL66);



if(mysql_num_rows($result66)>0) {
while($row = mysql_fetch_assoc($result66))
{

if(mysql_num_rows($result67)>0) {
while($rij = mysql_fetch_assoc($result67))
{
if($row['id'] == $rij['content_id']){

?>
<div style="text-algin: left; width: 230px; border: 1px #A4CBFA solid; margin-top: 2px; font-size: 12px; font-family: Arial; ">
<font color="#e41a1a"><b><? echo str_replace("{mosimage}", "", $row['title']); ?></b></font>
<br>
<font color="#000000"><? echo str_replace("{mosimage}", "", $row['introtext']); ?> 

</font>

</div>

<?
//einde row en rij vergelijking
}
// einde while result67
}
//einde if result67 meer dan 0
}
}
}
?>
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan