header("content-type:text/html;charset=utf-8");
require("mysql_action.php");
if($artid=="")
{
exit;
}
$sql="select artid,artname,artnote,arttotalorder,gallname,artnpic,artemail from artists a,gallery g where g.gallid=a.gallid and artid='".$artid."' and a.pub=1 order by artorder desc";
$sql=mysql_query($sql);
if ( list($artid,$artname,$artnote,$arttotalorder,$gallname,$artnpic,$artemail) = mysql_fetch_row($sql) ){}
$sqlwork="select workid,worktitle,worknote,workorder,workpic,workmedia,worksize,workyear,workprice from works where pub=1 and artid='".$artid."' order by workorder desc limit 0,1";
$sqlwork=mysql_query($sqlwork);
if ( list($workid,$worktitle,$worknote,$workorder,$workpic,$workmedia,$worksize,$workyear,$workprice) = mysql_fetch_row($sqlwork) ){}
?>