What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Whats wrong with this php code?

Pages: (2): « First « 1 [ 2 ] Last »
Whats wrong with this php code?
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Whats wrong with this php code?
quote:
Originally posted by saralk
I can't really help without the error messages, and it's a while since I have used php, but I don't think you can copy an array like that. You would need some sort of counter.
yes you can $Array[] = 'aa'; is just like using Array_push($Array, 'aa');
[Image: dt2.0v2.png]      Happy Birthday, WDZ
01-03-2008 01:37 AM
Profile PM Web Find Quote Report
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: RE: Whats wrong with this php code?
quote:
Originally posted by john-t
$row = mysql_fetch_array($confresult);

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Ok whats wrong  with this.
NOTHING is wrong with this, as it's been said.

The problem is that you are passing an invalid result as $confresult fails because of your invalid SQL statement.
[Image: AndrewsStyle.png]
01-03-2008 12:47 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Whats wrong with this php code?
Best thing to do with the query is run it in PHPMyAdmin in the SQL window. Problems will be shown and you can copy & paste when you get it working.

From my experience it'll be a quote (or back quote [`] error) for the fields...
<Eljay> "Problems encountered: shit blew up" :zippy:
01-03-2008 03:37 PM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Whats wrong with this php code?
but everyone just told him what was wrong!
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
01-03-2008 05:26 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On