C
|
cgphp 7/20/2012 |
|
S
|
swanside author 7/20/2012 |
Thanks for that, but, it may as well be in Swahili I dont have a clue about any of that!! haha |
C
|
cgphp 7/20/2012 |
|
S
|
swanside author 7/20/2012 |
OK, I have made it a bit simpler, If I can get this to work, I can figure out the rest. -- -- Table structure for table customerjob -- CREATE TABLE IF NOT EXISTS customerjob (CustomerJobId int(11) NOT NULL AUTO_INCREMENT,CustomerName varchar(50) DEFAULT NULL,Date date DEFAULT NULL,JobRequest varchar(50) DEFAULT NULL,PRIMARY KEY ( CustomerJobId )) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
-- -- Table structure for table job -- CREATE TABLE IF NOT EXISTS job (JobNo int(11) NOT NULL AUTO_INCREMENT,CustomerJobId int(11) DEFAULT NULL,CustomerName varchar(50) DEFAULT NULL,CustomerRequestDate date DEFAULT NULL,Date date DEFAULT NULL,JobRequest varchar(50) DEFAULT NULL,Job varchar(50) DEFAULT NULL,JobApproved tinyint(4) DEFAULT NULL,PRIMARY KEY ( JobNo )) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
|
C
|
cgphp 7/20/2012 |
|
S
|
swanside author 7/20/2012 |
|
C
|
cgphp 7/20/2012 |
The $keys array contains the key values of the selected records. You have to build the select query for the CustomerJob table and the insert query for the Job table. |
S
|
swanside author 7/20/2012 |
The $keys array contains the key values of the selected records. You have to build the select query for the CustomerJob table and the insert query for the Job table.
|
C
|
cgphp 7/20/2012 |
There is an alternative approach to get the selected records. Check the example 2 of this page: http://xlinesoft.com/phprunner/docs/inserting_button.htm |
C
|
cgphp 7/20/2012 |
Check the following link if you want to know the correct syntax of the INSERT INTO statement: http://www.w3schools.com/sql/sql_insert.asp |
S
|
swanside author 7/20/2012 |
There is an alternative approach to get the selected records. Check the example 2 of this page: http://xlinesoft.com/phprunner/docs/inserting_button.htm
|
C
|
cgphp 7/20/2012 |
It's only an example to get inspiration. |
S
|
swanside author 7/20/2012 |
It's only an example to get inspiration.
|
C
|
cgphp 7/21/2012 |
In the "Server" section of the custom button, enter the following code: global $conn;
alert(result['selected_records'] + " records have been copied"); |
S
|
swanside author 7/21/2012 |
In the "Server" section of the custom button, enter the following code: global $conn;
alert(result['selected_records'] + " records have been copied");
|