Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. PHP

PHP

Scheduled Pinned Locked Moved Web Development
phpdatabasemysqlsysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zunisheikh
    wrote on last edited by
    #1

    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 set custid='4',catid='1', proid='2',quantity='14',totalbill='1400', ' at line 1] insert into order set custid='$custid',catid='$catid', proid='$proid',quantity='$quantity',totalbill='$totalbill', deldate='$var_date',orderstatus='$orderstatus kindly explain me this error

    T 1 Reply Last reply
    0
    • Z zunisheikh

      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 set custid='4',catid='1', proid='2',quantity='14',totalbill='1400', ' at line 1] insert into order set custid='$custid',catid='$catid', proid='$proid',quantity='$quantity',totalbill='$totalbill', deldate='$var_date',orderstatus='$orderstatus kindly explain me this error

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Your query is wrong. For your requirement, you should use UPDATE statement but you're using INSERT. And there's a single quote (') missing at end of the query.

      insert into UPDATE order set custid='$custid',catid='$catid',
      proid='$proid',quantity='$quantity',totalbill='$totalbill',
      deldate='$var_date',orderstatus='$orderstatus**'**

      Probably you should learn MySQL very well before doing project works. Here more than couple of ways to learn anything in Internet. Education Needed[^]

      thatraja

      Code converters | Education Needed No thanks, I am all stocked up. - Luc Pattyn When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups