| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Some MySQL worries | |
|---|---|
| Tweet Topic Started: Jun 4 2005, 05:52 AM (220 Views) | |
| Fire Pheonix (PM) | Jun 4 2005, 05:52 AM Post #1 |
![]()
Too much pressure!
![]() ![]() ![]() ![]() ![]() ![]()
|
I have this script.
Anyhoo that comes up with a 'Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in P:www/karitane/classes/db.php on line 26' error. When I change it too.
It does work. Does anybody know why? Thanks in advance. Kennedy |
![]() |
|
| Dennis | Jun 4 2005, 12:07 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The @ sign just suppresses errors. It still doesn't work, it just doesn't show an error message. On line 13:
Is $qid defined? It's not in this file, it may be defined in another file. ![]() I may be wrong about this, but I think unless you call the connect function in every instance, it is isolated and won't connect. I'd advise putting the connect in a different file, and requiring it. I don't know much about classes, I'm still learning OOP.
In this part, are you calling a $_GET['id'] array? If so, I think that might be the error. Seth or someone else would know better, but I think that's wrong. |
![]() |
|
| Fire Pheonix (PM) | Jun 4 2005, 07:39 PM Post #3 |
![]()
Too much pressure!
![]() ![]() ![]() ![]() ![]() ![]()
|
When i use $this->query( $sql ); It is defining it as the $sql variable. |
![]() |
|
| Fire Pheonix (PM) | Jun 4 2005, 07:42 PM Post #4 |
![]()
Too much pressure!
![]() ![]() ![]() ![]() ![]() ![]()
|
Fixed it ![]()
I had to use return! Thanks. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
12:53 PM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)





12:53 PM Jul 11