Jump to content

Unable to Insert Values into database


surajkandukuri

Recommended Posts

Hi,

 

  I have a sql UPDATE query

 

$update_query="update employee_positionheld SET `Position held 2`='$tempjobname' and `Start Date 2`='$startdate' where `EmployeeNumber`='$employeenumber'"; echo($update_query); echo("<br>"); mysql_query($update_query) or die("updation failed");

 

 

update_query prints :- update employee_positionheld SET `Position held 2`='Process Tech 1' and `Start Date2`='2009-11-05' where `EmployeeNumber`='34550'

 

    WHICH IS CORRECT as per my variables

 

BUT in the database

  Position held 2=0 and Start Date 2=0

 

I do not know what is happening here, please suggest me ... 

 

Link to comment
https://forums.phpfreaks.com/topic/180492-unable-to-insert-values-into-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.