I have been trying to get the file that I upload in tom y database for a few hours now.
Here is my query
$this->ad_query = mysql_query("INSERT INTO $this->ad_table (user_id, contact_name, business_email, catagory, business_name, street_address, city, state, zip_code,
phone_number, fax_number, business_logo, logo_location, affiliate_bs_id, date_created, web_site) VALUES (LAST_INSERT_ID(), '$_POST[b_contact]', '$_POST[b_email]',
'$_POST[b_category]', '$_POST[b_name]', '$_POST[b_street]', '$_POST[b_city]', '$_POST[b_state]', '$_POST[b_zip]', '$_POST[b_phone]', '$_POST[b_fax]', '$_POST[userfile]' ,
'Uploads', '1', $date, '$_POST[b_web_site]')");
There is an issue here with the format at $_POST[userfile]
The only way I can get the $_POST['userfile'] to pass to the nest page is to use this
print "$_POST[userfile]";
I have tired to manipulate this query a few times with no luck.
Any thoughts?