What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » MySql Code Help (PHP Database)

MySql Code Help (PHP Database)
Author: Message:
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
O.P. MySql Code Help (PHP Database)
pfft, MySql is evil, satins preferred language.

anyway.

code:
$database = 'rcbb';
$table = 'post';
$usernametable= 'users';
$query="SELECT * FROM `$usernametable` WHERE `username` = '$Username' ";



^^ this code doesnt work.

quote:
Originally posted by PHP Error


Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 23

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 24

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 25


but...

code:
$query="SELECT * FROM `$table` WHERE `id` = '$ThreadID' ";


works in a different script, username and password is pre-varibilised.

if you need more information ill post it.

does anyone know why?

[Image: jeansiger5.jpg]
02-08-2005 06:22 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MySql Code Help (PHP Database) - by Ash_ on 02-08-2005 at 06:22 AM
RE: MySql Code Help (PHP Database) - by -dt- on 02-08-2005 at 06:42 AM
RE: MySql Code Help (PHP Database) - by Ash_ on 02-08-2005 at 07:01 AM
RE: MySql Code Help (PHP Database) - by Eljay on 02-08-2005 at 07:06 AM
RE: MySql Code Help (PHP Database) - by -dt- on 02-08-2005 at 07:08 AM
RE: RE: MySql Code Help (PHP Database) - by Ash_ on 02-08-2005 at 07:40 AM
RE: MySql Code Help (PHP Database) - by fluffy_lobster on 02-08-2005 at 04:33 PM


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