I am using code igniter and Grocery CRUD, however when a register has blank spaces in its primary key (ie Phantom Dancer) the view or edit method from grocery crud doesnt load the field values, but if I change that name for Phantom_Dancer everything works good, does anyone know how to fix this?
Asked
Active
Viewed 355 times
0
-
Canonical fix: Use auto-incremented INT as a PK. – Eugen Rieck Mar 07 '14 at 00:19
-
Oh thanks its simple and easy :) – Altrazar Mar 07 '14 at 16:39
-
The names with whitespace for a database table name is not a good practice. – John Skoumbourdis Mar 07 '14 at 20:59