Re: Appending url to file name...
| From: | Jas | Date: | Mon, 08 Apr 2002 16:24:30 +0000 |
| Subject: | Re: Appending url to file name... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92079@lists.php.net to get a copy of this message | ||
Actually, I tried it a different way and I got the results I needed... this
is what I did,
$file_var = "http://www.bignickel.net/full_ad/";
$db_name = "db_name";
$table_name = "table_name";
$connection = @mysql_connect("localhost", "user_name", "password") or
die
("Could not connect to database. Please try again later.");
$db = @mysql_select_db("$db_name",$connection) or die ("Could not select
database table. Please try again later.");
$sql = "UPDATE $table_name SET ad01_t=\"$file_var$files\""; //this gave me
the results, as you can see I just created a new variable with the path in
it
print $sql;
$result = @mysql_query($sql, $connection) or die ("Could not execute query.
Please try again later.");
?>