473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Notice: Undefined index: fileupload1 in F:\xampp\htdocs\Lists11\admin\banners-edit.ph

Notice: Undefined index: fileupload1 in F:\xampp\htdocs\Lists11\admin\banners-edit.php on line 17
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order='12', short_code='', format='', width='200', height='200',picture1='', lin' at line 1

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     session_start();
  3.     if($email = $_SESSION['email'])
  4.     {
  5.         require("include/connections.php");    
  6.         $id=$_GET['id'];
  7.  
  8. if(isset($_REQUEST['submit']))
  9.     {
  10.         $title=$_REQUEST['title'];
  11.         $location=$_REQUEST['location'];
  12.         $short_code=$_REQUEST['short_code'];
  13.         $order=$_REQUEST['order'];
  14.         $format=$_REQUEST['format'];
  15.         $width=$_REQUEST['width'];
  16.         $height=$_REQUEST['height'];
  17.         $picture1=$_FILES['fileupload1']['name'];
  18.         $link=$_REQUEST['link'];
  19.         $safe_content=$_REQUEST['safe_content'];
  20.         $unsafe_content=$_REQUEST['unsafe_content'];
  21.         $status=$_REQUEST['status'];
  22.  
  23.     $query = mysql_query("UPDATE banners SET title='$title', location='$location', order='$order', short_code='$short_code', format='$format', width='$width', height='$height',picture1='$picture1', link='$link', safe_content='$safe_content', unsafe_content='$unsafe_content', status='$status' WHERE ID='$id'");
  24.     if($query){
  25.         header("Location:banners.php");
  26.     }else{
  27.         echo(mysql_error());
  28.     }
  29.     {if($picture1!="")
  30.         {
  31.         $uploading1=$_FILES['fileupload1']['name'];
  32.         $path1="images_page/".$uploading1;
  33.         copy($_FILES['fileupload1']['tmp_name'],$path1);
  34.         }
  35.         else
  36.         {
  37.             $uploading1    =    'noimage.jpg';
  38.             }
  39.     }
  40.     }
  41.     }
  42. ?>
Sep 15 '14 #1
1 1233
Dormilich
8,658 Expert Mod 8TB
it’s as the error says, there is no $_FILES['fileupload1']
Sep 16 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: jsgoodrich | last post by:
I am looking for some help if anyone can lend a hand. I have a simple php website that displays a table from my mysql database. To prep for my MCSE I moved my home server to Windows 2003...
3
by: number1yan | last post by:
Can anyone help me, i am creating a website and am using a php script that recomends the website to other people. I keep getting the same error and can not work out why. The error is: Notice:...
3
by: sickboy | last post by:
$channels=$_GET; if (empty($channels)) { $channels='blank'; } changechannels($channels); $theatre=$_GET; if (empty($theatre)) { $theatre='splash'; } changetheatre($theatre); $info=$_GET; if...
1
by: francsutherland | last post by:
Notice: Undefined index: send in D:\Domains\workingdata.co.uk\wwwroot\contact_text.php on line 7 Hi, I've started getting this error in the contact page form of my website. The web hosting...
10
by: FutureShock | last post by:
I have since recently turned up my error reporting on a production site to E_ALL to ensure I am using 'best practices' when writing out code. So far it has helped me discipline myself with...
11
by: stealthmode666 | last post by:
New to .php so need script help. I want to know how to stop this being displayed when I click submit. Notice: Undefined index: homeowner in E:\domains\r\...\user\htdocs\...\form.php on line 166 ...
4
by: complearn | last post by:
Do you know why I got these errors for status_bar.php in some webhost, but work perfectly on other webhost? Whats wrong? here are the codes from line 18, our webhost is running php5. ...
3
by: razvanel442 | last post by:
Hi all i am new here! I take a look on forum but i don't found a the answer for my problem ok this is my problem: Line47:$user = $_GET; Line48:$pass = $_GET; Line49:$char = $_GET;
2
by: norwichchris | last post by:
hi, I am having serious trouble with my PHP Postcard script. The error message i get is: Notice: Undefined index: Notice: Undefined variable Basically it does not send out the scripts at...
2
by: nyrzs | last post by:
"Notice: Undefined index: prod_rep in F:\xampp\htdocs\isys\products\process.php on line 153 Notice: Undefined variable: prod_id in F:\xampp\htdocs\isys\products\process.php on line 160 Warning:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.