$qry="select * from nyitokep order by id asc";
$res=db_Exec($qry);
$num=db_Numrows($res);
For ($i=0; $i<$num; $i++)
{
$row=db_Fetch_Array($res, $i);
echo '
';
}
?>
|
$qry="select * from monotom where hol='3' order by prioritas desc";
$res=db_Exec($qry);
$num=db_Numrows($res);
For ($i=0; $i<$num; $i++)
{
$row=db_Fetch_Array($res, $i);
echo ''.$row['cim'].' | ';
echo '
| ';
}
?>
|
|
|
$qry="select * from monotom where hol='2' order by prioritas desc";
$res=db_Exec($qry);
$num=db_Numrows($res);
For ($i=0; $i<$num; $i++)
{
$row=db_Fetch_Array($res, $i);
echo ''.$row['cim'].' | ';
If (($i+1)<$num) {echo '| | ';}
}
?>
|
//If (isset($_POST['id'])) {$id=$_POST['id'];}
//If (isset($_GET['id'])) {$id=$_GET['id'];}
//If (!$id) {$id=1;}
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : 1;
$id = valid($id, 'num');
$qry="select * from monotom where id='$id'";
$res=db_Exec($qry);
$row=db_Fetch_Array($res,0);
If ((($id==7) and (!isset($_POST['yourname']))) or ($id<>7)) {echo (isset($row['szoveg']) ? $row['szoveg'] : '');}
If ($id==7)
{
include('_ajanlatkeres.php');
}
?>
|