Welcome Guest, Not a member yet? Register   Sign In
[FOUND!] add and edit data but without validation
#1

[eluser]maria clara[/eluser]
theprodigy - 06 January 2010 12:46 AM

if you’ve found a solution, please post it, so that others may benefit from it as well, or maybe someone can modify your solution to include validation.

here it is:

i put this script in the function to create data in the CONTROLLER:
switch($postConfig['action']){
case $crudConfig['create']:
$sql = 'insert into '.$crudTableName.'(';
$sql .= implode(',',$crudColumns);
$sql .= ')VALUES(';
$sql .= implode(',',$crudColumnValues);
$sql .= ')';
mysql_query( $sql );
break;

with this i can now add data from my jqgrid but it doesn’t have a validation.
hope someone can modify this with validation..

hope this can help others..

regards,
maria smile




Theme © iAndrew 2016 - Forum software by © MyBB