Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 10:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MYSQL problem in php

Discussion on MYSQL problem in php within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
(=R.a.d.n.a.y=)'s Avatar
 
elite*gold: 11
Join Date: Feb 2009
Posts: 410
Received Thanks: 58
MYSQL problem in php

Hallo,
ich hab folgenedes problem ich hab den fehler :
PHP Code:
Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\xampplite\htdocs\kontaktliste.php on line 22 
Ich weiß net was da falsch ist der quellcode in php ist:
PHP Code:
while ( $datesatz mysql_fetch_array($ergMYSQL_ASSOC) )
{
    
print_r ($datesatz);

Hoffe es hat jemand schnell ne lösung
(=R.a.d.n.a.y=) is offline  
Old 04/08/2011, 14:37   #2
 
black0utCpp's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 381
Received Thanks: 210


Haste vielleicht falsche Datenbank ausgewählt?
black0utCpp is offline  
Old 04/08/2011, 14:48   #3
 
(=R.a.d.n.a.y=)'s Avatar
 
elite*gold: 11
Join Date: Feb 2009
Posts: 410
Received Thanks: 58
danke hat was falsch geschrieben im sql befehl
(=R.a.d.n.a.y=) is offline  
Old 04/08/2011, 18:55   #4
 
hen!'s Avatar
 
elite*gold: 125
Join Date: Apr 2008
Posts: 1,217
Received Thanks: 1,304
Wenn du solche Fehler bekommst ist es am sinnvollsten als 1. die Syntax vom Query zu checken (diesen hättest du hier posten müssen).

Wenn du daraus kein Problem ableiten kannst dann solltest du in der Query-Zeile ein "or die(mysql_error())" einfügen, sprich:
PHP Code:
$myQuery mysql_query("SELECT * FROM X") or die(mysql_error()); 
Dann bekommst du den MySQL-Fehler. Welcher dich häufig noch ein Stückchen schlauer macht : )
hen! is offline  
Reply


Similar Threads Similar Threads
MySQL Problem
03/17/2011 - Flyff Private Server - 9 Replies
Peace. Ich wolte mir mal wieder nen Server machen, doch habe massive Probleme bei der MySQL installation. Beim 4. Schritt von Configuration Wizzard (Apply Secruity Settings) kriege ich immer die Fehler Meldung, dass man über den Port 3306 nicht connecten kann. Ich hab 3306 in der Firewall freigegeben, die Firewall ausgemacht, Bulllguard abgestellt, 3306 im Router frei, kriege aber immerwieder diese Meldung. Irgendwelche Ideen? Mfg, Brotfisch.
MYSQL Problem
10/14/2010 - Metin2 Private Server - 7 Replies
Hi Leutz Ich habe gestern versucht mein MySQL PW zu ändern und es ist gescheitert nun habe ich keinen zugriff mehr auf mysql via navicat ich habe es mit diesem befehl probiert: /usr/local/bin/mysqladmin -u root password NEUES_PW ich dachte mir das es so evtl. geht^^ doch nun habe ich keinen zugriff mehr
[help]mysql problem
06/13/2009 - CO2 Private Server - 2 Replies
everytime i try to set up mysql when i come to the configs it wont start the server after i have finished the configs anyone know wats going on
MySQL Problem
05/02/2009 - Cabal Private Server - 0 Replies
Hello, i started to make a server. So on Centos Side i already finished. But now i have Problems with Mysql. I have installed all DBs on Microsoft Mysql Server 2005. I have make an Account, and give him all Permissions. But now i want to make a Homepage and have edited the config. In the Config i have write my Lan IP adress and the User of Mysql and the Password, but everytime there stand, that unable to connect to mysql. I want to make HP with Cabaltoolz 3. Hallo, ich habe angefangen einen...
[Help]Mysql problem
01/30/2009 - CO2 Private Server - 3 Replies
hey all my brother was trying to get the binaries on on my pc and now whenever i try to log into my localhost connection (with navicat) it gives an error : Host 'localhost' is not allowed to connect to this Mysql. anyone knows how to solve this tnx already



All times are GMT +1. The time now is 10:04.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.