Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7884563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:50:01+00:00 2026-06-03T04:50:01+00:00

Ok so I don’t understand whats going on. To my knowledge the code is

  • 0

Ok so I don’t understand whats going on. To my knowledge the code is right but its throwing an SQL Syntax error which is odd because I use this same code all over my sites. I was hoping someone could look over it let me know if there are any errors that they see. Thank you.

The error:
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 ‘WHERE id=954001’ at line 1

The Code:

<?php session_start(); //!!!!Nothing Can Go Before Me!!!!
require_once('***********');
$id = $_SESSION['id'];

//INFO UPDATE//
$her_name = $_POST['her_name'];
$her_pic_url = $_POST['her_pic_url'];
$his_name = $_POST['his_name'];
$his_pic_url = $_POST['his_pic_url'];
$event_date = $_POST['event_date'];
$time = $_POST['time'];
$event_address = $_POST['event_address'];
$email = $_POST['email'];
$her_about = $_POST['her_about'];
$her_fb = $_POST['her_fb'];
$her_twit = $_POST['her_twit'];
$him_about = $_POST['him_about'];
$him_fb = $_POST['him_fb'];
$him_twit = $_POST['him_twit'];
$userpic_1 = $_POST['userpic_1'];
$usercap_1 = $_POST['usercap_1'];
$userpic_2 = $_POST['userpic_2'];
$usercap_2 = $_POST['usercap_2'];
$userpic_3 = $_POST['userpic_3'];
$usercap_3 = $_POST['usercap_3'];
$userpic_4 = $_POST['userpic_4'];
$usercap_4 = $_POST['usercap_4'];
$userpic_5 = $_POST['userpic_5'];
$usercap_5 = $_POST['usercap_5'];
$userpic_6 = $_POST['userpic_6'];
$usercap_6 = $_POST['usercap_6'];
$userpic_7 = $_POST['userpic_7'];
$usercap_7 = $_POST['usercap_7'];
$userpic_8 = $_POST['userpic_8'];
$usercap_8 = $_POST['usercap_8'];
$userpic_9 = $_POST['userpic_9'];
$usercap_9 = $_POST['usercap_9'];
$userpic_10 = $_POST['userpic_10'];
$usercap_10 = $_POST['usercap_10'];
$userpic_11 = $_POST['userpic_11'];
$usercap_11 = $_POST['usercap_11'];
$userpic_12 = $_POST['userpic_12'];
$usercap_12 = $_POST['usercap_12'];
$userpic_13 = $_POST['userpic_13'];
$usercap_13 = $_POST['usercap_13'];
$userpic_14 = $_POST['userpic_14'];
$usercap_14 = $_POST['usercap_14'];
$userpic_15 = $_POST['userpic_15'];
$usercap_15 = $_POST['usercap_15'];
$userpic_16 = $_POST['userpic_16'];
$usercap_16 = $_POST['usercap_16'];
$userpic_17 = $_POST['userpic_17'];
$usercap_17 = $_POST['usercap_17'];
$userpic_18 = $_POST['userpic_18'];
$usercap_18 = $_POST['usercap_18'];
$userpic_19 = $_POST['userpic_19'];
$usercap_19 = $_POST['usercap_19'];
$userpic_20 = $_POST['userpic_20'];
$usercap_20 = $_POST['usercap_20'];
$userpic_21 = $_POST['userpic_21'];
$usercap_21 = $_POST['usercap_21'];
$userpic_22 = $_POST['userpic_22'];
$usercap_22 = $_POST['usercap_22'];
$userpic_23 = $_POST['userpic_23'];
$usercap_23 = $_POST['usercap_23'];
$userpic_24 = $_POST['userpic_24'];
$usercap_24 = $_POST['usercap_24'];
$userpic_25 = $_POST['userpic_25'];
$usercap_25 = $_POST['usercap_25'];

$insert = "UPDATE ******* SET her_name = '$_POST[her_name]', her_pic_url = '$_POST[her_pic_url]', his_name = '$_POST[his_name]', his_pic_url = '$_POST[his_pic_url]', event_date = '$_POST[event_date]', time = '$_POST[time]', event_address = '$_POST[event_address]', email = '$_POST[email]', her_about = '$_POST[her_about]', her_fb = '$_POST[her_fb]', her_twit = '$_POST[her_twit]', him_about = '$_POST[him_about]', him_fb = '$_POST[him_fb]', him_twit = '$_POST[him_twit]', userpic_1 = '$_POST[userpic_1]', usercap_1 = '$_POST[usercap_1]', userpic_2 = '$_POST[userpic_2]', usercap_2 = '$_POST[usercap_2]', userpic_3 = '$_POST[userpic_3]', usercap_3 = '$_POST[usercap_3]', userpic_4 = '$_POST[userpic_4]', usercap_4 = '$_POST[usercap_4]', userpic_5 = '$_POST[userpic_5]', usercap_5 = '$_POST[usercap_5]', userpic_6 = '$_POST[userpic_6]', usercap_6 = '$_POST[usercap_6]', userpic_7 = '$_POST[userpic_7]', usercap_7 = '$_POST[usercap_7]', userpic_8 = '$_POST[userpic_8]', usercap_8 = '$_POST[usercap_8]', userpic_9 = '$_POST[userpic_9]', usercap_9 = '$_POST[usercap_9]', userpic_10 = '$_POST[userpic_10]', usercap_10 = '$_POST[usercap_10]', userpic_11 = '$_POST[userpic_11]', usercap_11 = '$_POST[usercap_11]', userpic_12 = '$_POST[userpic_12]', usercap_12 = '$_POST[usercap_12]', userpic_13 = '$_POST[userpic_13]', usercap_13 = '$_POST[usercap_13]', userpic_14 = '$_POST[userpic_14]', usercap_14 = '$_POST[usercap_14]', userpic_15 = '$_POST[userpic_15]', usercap_15 = '$_POST[usercap_15]', userpic_16 = '$_POST[userpic_16]', usercap_16 = '$_POST[usercap_16]', userpic_17 = '$_POST[userpic_17]', usercap_17 = '$_POST[usercap_17]', userpic_18 = '$_POST[userpic_18]', usercap_18 = '$_POST[usercap_18]', userpic_19 = '$_POST[userpic_19]', usercap_19 = '$_POST[usercap_19]', userpic_20 = '$_POST[userpic_20]', usercap_20 = '$_POST[usercap_20]', userpic_21 = '$_POST[userpic_21]', usercap_21 = '$_POST[usercap_21]', userpic_22 = '$_POST[userpic_22]', usercap_22 = '$_POST[usercap_22]', userpic_23 = '$_POST[userpic_23]', usercap_23 = '$_POST[usercap_23]', userpic_24 = '$_POST[userpic_24]', usercap_24 = '$_POST[usercap_24]', userpic_25 = '$_POST[userpic_25]', usercap_25 = '$_POST[usercap_25]', WHERE id=$id";

$result=mysql_query($insert) or die(mysql_error());

if ($result) {
header("location:**********");
}

else {
echo "Whoops! There seems to have been an error! Please try again! If the problem persists please contact Modern Event Productions to update your event!<a href='***************'>Click here to go back to the Vendor System and try again.</a>";
} ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:50:02+00:00Added an answer on June 3, 2026 at 4:50 am

    ,WHERE id=$id

    It is telling you the SQL statement is incorrect and the problem is the WHERE clause of the statement.

    get rid of the ,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know whats exactly going on, but it's definitely killing my time for nothing.
Don't know if I worded the question right, but basically what I want to
Don't be frightened, its a very basic code. Just wanted to check with you
Don't know if this is the right place to ask this, but I will
Don't ask why, but is there any way to suppress a failed linking error?
Don't know what to do with this error. How to add data in SQL
Don't need to do this right now but thinking about the future... What would
don't know better title for this, but here's my code. I have class user
Don't know how to frase this but I found this code wich works as
Don't be scared of the extensive code. The problem is general. I just provided

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.