J
|
Jane 7/10/2007 |
Jason, $values["status"]="OLD";
|
M
|
morpheus author 7/10/2007 |
Thanks for your help, |
J
|
Jane 7/11/2007 |
Jason, global $conn; $strSQLInsert = "update items set status = 'OLD' where uniqueid = '".$_REQUEST["copyid1"]."'"; db_exec($strSQLInsert,$conn);
global $conn; $str = "select max(ITM) from TableName"; $rs = db_query($str,$conn); $data = db_fetch_numarray($rs); $values["ITM"]= $data[0]+1; |
M
|
morpheus author 7/13/2007 |
I tried the code shown below but the text box "id" is just coming up blank when I open the "add new" page, looks like I'm doing something wrong again <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=19618&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> To increase ITM number when new record is created use Before record added event on the Events tab: [/quote] global $conn; $strSQLInsert = 'INSERT INTO `stockcontrol`.`_iteminc` (`value`, `dummy`) VALUES (NULL, \'bob\');'; db_exec($strSQLInsert,$conn);
|
J
|
Jane 7/16/2007 |
Hi, global $conn,$smarty; $str = "select max(ITM) from TableName"; $rs = db_query($str,$conn); $data = db_fetch_numarray($rs); $smarty->assign("value_ITM",$data[0]+1); |