TimeStamp Column Problem...


Posted on 16th Feb 2014 07:03 pm by admin

I'm mad at my self and thinking I'm a little retarded. It just be some one mistake I'm missing here. I coded my self a forum, when you reply to a topic, the topic's TimeStamp column is supposed to be updated to the current timestamp. However I attempted and failed.

I put the timestamp column on "ON UPDATE CURRENT TIMESTAMP", I set the column to NULL but seems to be at the same value. The column isn't null. I don't know if I should or shouldn't do that. I'm a complete newbie at MySql(~1Month).

Code: $sql = mysql_query("UPDATE `threads` SET `last_post_user_id` = '$id', `time` = 'NULL'; WHERE `id` = '$forum_id'");

Thanks

No comments posted yet

Your Answer:

Login to answer
65 Like 22 Dislike
Previous forums Next forums
Other forums

Pspell with my own dictionary
Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new

need help about
i store the value of my select statement result to an array and stored it to a variable named $fname

Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment

Upload simple problem
Really confused!! I run once and it worked, but when i tried today...it didn't work

Which par

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

ME54/ME54N Conditional check for Release of PR
Hi Gurus,

My requirement is to put a check on the release of the PR with respect to the c

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

selectbox+database connection retrive problem
Code: [Select]
<tr>
<th align="left" scope="c

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

How do I replace any number of character occurences with one occurrence?
How do I replace any number of character occurences with one occurrence?

Let's say I have:

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash