Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Date stamping when data point changes
Old 04-25-2010, 05:40 PM Date stamping when data point changes
Extreme Talker

Posts: 173
Trades: 0
I want to track when certain data points change in a record.

PHP Code:
    $sql_begin=$sql_begin.', edate, flag_edate';
    
$sql_end=$sql_end.', "'.($value->edate).'" ,'.$_SERVER['REQUEST_TIME']; 
Error message

Quote:
Fatal error: Function name must be a string in C:\Program Files\EasyPHP 3.0\www\My Websites\Fat Cat\parse_md4c6.php on line 235
Am I using the correct function here. i also tried getdate() but did not work. I am just trying to return the system date so that I can indicate which bits of record have changed since last reviewed.
dgkindy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-25-2010, 05:52 PM Re: Date stamping when data point changes
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://dev.mysql.com/doc/refman/5.0/en/timestamp.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-25-2010, 06:05 PM Re: Date stamping when data point changes
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
The error isn't in the code you posted. The only time I've seen this error is when someone mistakenly uses parens instead of brackets to index an array. For example:
PHP Code:
$foo('bar');
$_SESSION('x');

//should be

$foo['bar'];
$_SESSION['x']; 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 04-26-2010, 01:12 PM Re: Date stamping when data point changes
Extreme Talker

Posts: 173
Trades: 0
Okay, got it to work

Thanks for your help.

Here is the working bit of code:

PHP Code:
   else{
    
$sql_begin='INSERT INTO tbl_module (project_id, module, module_desc, status, qty';
    
$sql_end='VALUES ( '.$project_id.', "'.
         
$value->part.'", "'.
         
$value->part_desc.'", "'.
         
$value->status.'", '.
         
$value->qty
    if(!empty(
$value->prod)){
     
$sql_begin.=', prod, flag_prod';
     
$sql_end.=', "'.($value->prod).'" , Now()'
dgkindy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Date stamping when data point changes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13369 seconds with 12 queries