Upload projektu webmasterskiego
git-svn-id: https://svn.pioder.pl/sg-svn@6 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8
This commit is contained in:
20
robocze/ask.php
Normal file
20
robocze/ask.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
$i=intval($_GET['name'])+1;
|
||||
require('init.php');
|
||||
$result = mysql_query('SELECT * FROM photos WHERE id='.$i);
|
||||
$row = mysql_fetch_assoc($result);
|
||||
|
||||
if(!row) die('Error');
|
||||
|
||||
header('Content-Type: text/xml');
|
||||
echo '<?xml version="1.0" encoding="utf-8"?>';
|
||||
?>
|
||||
|
||||
<data>
|
||||
<name><?=$row['id']?>: <?=basename($row['photo_name'])?></name>
|
||||
<desc xmlns="http://www.w3.org/1999/xhtml"><p><?=$row['description']?></p></desc>
|
||||
<src><?=$row['photo_name']?></src>
|
||||
<author><?=$row['author']?></author>
|
||||
<?if($i==$count){?><last /><? } ?>
|
||||
<?if($i==0){?><first /><? } ?>
|
||||
</data>
|
||||
Reference in New Issue
Block a user