hi!
how do i fetch a single post from a database?
the query has only one match since the id in the database is unique...
<?
$picid = $_POST['picid'];
$sql = "SELECT url FROM pictures WHERE picid = '$picid'";
and then what??????
?>
i've tried the following but it does'nt seem to work:
<?
$result = mysql_query($sql,$database_link);
$rows = mysql_num_rows($result);
for ($i = 0; $i < $rows; $i++){
$url = mysql_result($result,$i,"url");
echo "$url";
}
?>
thank you
/blebba