This is the schema: CREATE TABLE IF NOT EXISTS "hall" (Īnd this is the test data: INSERT INTO "hall" ("hall_id","name","phone","address","rent","size","manager_id") VALUES (1,'Gec Community Hall','018xxxxxx','GEC circle',400,'1200',8) $data = įatal error: Uncaught PDOException: SQLSTATE: General error: 25 column index out of range in C.…\edit_hall.php:26 Stack trace: #0 C.…\edit_hall.php(26): PDOStatement->execute(Array) #1 thrown in C.…\edit_hall.php on line 26 I’m not sure how much of the code I need to share… $q = 'UPDATE hall SET name=:name, phone=:phone, address=:address, rent=:rent, size=:size, manager_id=:manager_id WHERE hall_id = :$hall_id' I have a couple of other similar scrips that work fine, but this one comes up with a fatal error. I’m making good progress with my conversion but have run into a problem with one script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |