Ämne: SQL-problem
Visa ett inlägg
Oläst 2007-09-16, 17:46 #12
Althalos Althalos är inte uppkopplad
Medlem
 
Reg.datum: Jan 2006
Inlägg: 282
Althalos Althalos är inte uppkopplad
Medlem
 
Reg.datum: Jan 2006
Inlägg: 282
Förlåt, jag fattade inte att det var jag skulle göra. Tack vare tipset lyckades jag lösa en del grejer. Fast problem kvarstår fortfarande:

Kod:
INSERT INTO boat (name, boat_type_id, length_overall, length_hull, length_water, width, depth, depth_min, deplacement, engine, rig, lys, hull_id, hull_construction, rig_height, rudder_id, stern_id, other, fuel_tank, water_tank, bunks_min, bunks_max, cabin_height, interior, constructor_id) VALUES ('Testing 34', '1', '9.75', '10', NULL, NULL, NULL, NULL, NULL, NULL, '5', NULL, '4', NULL, NULL, '2', '4', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in g:\home\sailguide.com\wwwroot\search\add\del.php on line 80
Out of range value adjusted for column 'boat_id' at row 1
Out of range value adjusted for column 'boat_id' at row 1
Out of range value adjusted for column 'boat_id' at row 1
Out of range value adjusted for column 'boat_id' at row 1
Out of range value adjusted for column 'boat_id' at row 1
Out of range value adjusted for column 'boat_id' at row 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2'', ''5'')' at line 1
Båten har blivit tillagd. Gå tillbaks
Vad betyder out of range t. ex. Not valid mysql result beror på att båten inte riktigt lades till i databasen, vilket gör att kod längre ner inte kan hämta något därifrån.
Althalos är inte uppkopplad   Svara med citatSvara med citat