Solved

How do i correctly insert timestamp function in php to sql server.

Posted on 2007-11-21
3
3,449 Views
Last Modified: 2013-12-12
I am using this insert statement:
          $qry = ("INSERT INTO TBL_PC (UserUID, NameIndex, NameFlag, FirstName, LastName, Gender, FaceStyle, HairStyle, HairColor, SkinColor, EyeColor, Height, FNCode, Body, MNCode, LNCode, RegDate) VALUES ($userID, 0, 0, '$charFName', '$charLName', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, date()");

how do i correctly insert a timestamp/date function (RegDate)
0
Comment
Question by:justmelat
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
messen1975 earned 175 total points
ID: 20328789
Change date() to GetDate() and give it a try.
0
 
LVL 1

Author Comment

by:justmelat
ID: 20328910
that's it messen1975:

thanks alot.
0
 
LVL 6

Expert Comment

by:messen1975
ID: 20328929
No problem :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now