number of columns with Sever_side processing
number of columns with Sever_side processing
Hi evryone,
Due to the big size of my database I decided to use ServerSide processing with sAjaxSource. I pick up the example page and I re-write it with my sql infos and it works great!
But when I try to add some new rows like this :
[code] $sOutput .= '"'.addslashes($aRow['genre']).'",';[/code]
and this :
[code] else if ( $i == 4 )
return "user";[/code]
I've got an error message "number of column don't mach".
I read that the array aRow must have the same number of columns than the html tables but indeed they have the same number of column !
Due to the big size of my database I decided to use ServerSide processing with sAjaxSource. I pick up the example page and I re-write it with my sql infos and it works great!
But when I try to add some new rows like this :
[code] $sOutput .= '"'.addslashes($aRow['genre']).'",';[/code]
and this :
[code] else if ( $i == 4 )
return "user";[/code]
I've got an error message "number of column don't mach".
I read that the array aRow must have the same number of columns than the html tables but indeed they have the same number of column !
This discussion has been closed.
Replies
First thing to do is ensure that your json return is valid using: http://www.jsonlint.com . If that's fine then the next thing to check is that the number of TH elements (the number of columns) matches the number of array elements sent back in your json. If that doesn't help, then perhaps you could post a link?
Thanks,
Allan
Sorry for the post and thanks allan, it works !