digitalmarine 0 Posted February 7, 2005 Share Posted February 7, 2005 Hallo, seit dem Umstieg auf MySQL 4 und PHP5 wollen die Create Files nicht mehr richtig laufen. Sobald ein "auto_increment" in Verbindung mit "DEFAULT '0'" auftaucht geht's nicht weiter; also habe ich die Tabellen von Hand angelegt. Die index wird soweit korrekt angezeigt, aber sobald ich in die Admin-Maske wechsel kommen 2 Fehlermeldungen: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vftp/homeip/htdocs/pcheck/login.inc.php on line 23 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vftp/homeip/htdocs/pcheck/login.inc.php on line 47 Eigentlich typisch für fehlende Tabellen, aber es sind alle 4 da. Natürlich klappt auch das Login nicht. Jemand eine Idee, woran die Fehler liegen könnten? Fehlende Zugriffsrechte bei MySQL oder schlechte PHP Konfiguration? Fehlerhafte Seite PHP Info der Seite Linux (Eisfair) System: Apache 2.0.52 PHP 5.0.3 MySQL 4.1.8-stardard-log Quote Link to post Share on other sites
digitalmarine 0 Posted February 9, 2005 Author Share Posted February 9, 2005 Hat keiner eine Idee oder sehe ich den Wald vor lauter Bäumn nicht? Quote Link to post Share on other sites
Powie 1 Posted February 9, 2005 Share Posted February 9, 2005 das könnte durchaus am mysql 4.1.8 liegen, damit habe ich selbst bisher noch keine tests durchgeführt du könntest mal nach dem query den error ausgeben lassen. weisst du wie das geht ? Quote Link to post Share on other sites
digitalmarine 0 Posted February 9, 2005 Author Share Posted February 9, 2005 Ich hoffe, das ist es, was Du meinst #1067 - Invalid default value for 'id' Quote Link to post Share on other sites
Powie 1 Posted February 9, 2005 Share Posted February 9, 2005 ok das kommt beim anlegen der Tabellen. was passiert in der login.inc.php ? Quote Link to post Share on other sites
digitalmarine 0 Posted February 9, 2005 Author Share Posted February 9, 2005 Wie gesagt, ich habe die Tabelle mit phpmyadmin angelegt, aber ohne "DEFAULT '0". Im Admin-Bereich kommt dann Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vftp/homeip/htdocs/pcheck/login.inc.php on line 23 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vftp/homeip/htdocs/pcheck/login.inc.php on line 47 Du kannst hier auch nochmal die Details von der installierten PHP Version anschauen: PHP Info Quote Link to post Share on other sites
Guest Posted February 12, 2005 Share Posted February 12, 2005 Man muss in pcheck_createdb.php in Zeile 58 "DEFAULT '0'" löschen, dann nochmal pcheck_createdb.php ausführen. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.