-
-
-
-
-
-
-
-
-
Photos
<% foreach($_GET as $key => $value) { ${$key} = $value; } include("connect_include.php3"); $query = "SELECT * FROM photos ORDER by ID DESC"; $result = mysql_query($query,$link); $num=mysql_num_rows($result); $rows=$num/5; $rows=ceil($rows); %> "; $name_out[]=$erg3; $id_out[]=$erg2; } if (!$var) { echo ""; %><% $query2 = "SELECT * FROM photos WHERE ID='$var'"; $detail = mysql_query($query2,$link); while($row2=mysql_fetch_array($detail)) { if ($var) { echo ""; echo ""; echo ""; } } %>
"; function table_out($rows,$cols,$width,$border,$cp,$cs,$bgcolor,$color,$arr2,$name_out,$id_out) { reset($arr2); reset($name_out); reset($id_out); $cellwd=100/$cols."%"; echo ""; for ($r=1;$r<=$rows;$r++) { echo ""; for($c=0; $c<$cols; $c++) { $elem=pos($arr2); $el_name=pos($name_out); $el_id=pos($id_out); echo ""; next($arr2); next($name_out); next($id_out); } echo ""; } echo "
$elem
$el_name
"; } $cols = "5"; $width = "500"; $border = "0"; $cp = "1"; $cs = "1"; $bgcolor = ""; $color = "#009148"; $erg2= table_out($rows,$cols,$width,$border,$cp,$cs,$bgcolor,$color,$arr2,$name_out,$id_out); echo $erg2; } ?> <% echo "
$row2[name]
$row2[text]
zurück