table = "projects"; $node->select = "*"; if(isset($_GET['id']) && $_GET['id']!='') { $node->where = "where id='".$_GET['id']."'"; } else { $node->where = "where 1 order by id desc"; } $row_sel = $mysql->select_assoc($node); ?> Premier Consultants International
table = "projects"; $node->select = "*"; $resprojects=$mysql->select($node); $totalprojects=$mysql->total($node); if($totalprojects>0) { while($rowprojects=$mysql->fetch_assoc($resprojects)) { $images = new sqlNode(); $images->table = "projectsimages"; $images->select = "*"; $images->where = "where projectid = '".$rowprojects['id']."'"; $recordimages = $mysql->total($images); $rowimages=$mysql->select_assoc($images); ?>
Img