Persia wrote:
> 
> 
> Hello ,in this code i'm going to add a name to my root address from
> database which will be the name of the name of a new folder at the end
> of root address , but i cann't add the result of query there !!
> 
> $sql = "SELECT pr_name FROM $tbl_name WHERE id='$project_id'";
> $sql2 = @MYSQL_QUERY($sql);
> 
> $target = $_SERVER['DOCUMENT_ROOT']."/upload/.$sql2";

$sql2 is the query handle. You need to do the following:

$sql = "SELECT pr_name FROM $tbl_name WHERE id='$project_id'";
$sql2 = @MYSQL_QUERY($sql);
$prname = mysql_result($sql2,0);
$target = $_SERVER['DOCUMENT_ROOT']."/upload/.$prname";

Good Luck,

William Piper

Reply via email to