Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
simple php/mysql question
Old 01-04-2006, 11:28 PM simple php/mysql question
Village Idiot's Avatar
Webmaster Talker

Posts: 535
Trades: 0
$sqlpass = mysql_result($loginresult,1,"user_pass");

it gets

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/theev2/public_html/nrc/login.php
__________________
I have the heart of a child, I keep it in a jar on my desk.
Village Idiot is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-05-2006, 03:43 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
That means the query you made to get $loginresult failed for some reason. Add a die() call to the query:
PHP Code:
$loginresult mysql_query("whatever the query is") or die(mysql_error()); 
That will print the MySQL error as well as the PHP error, so you can see what went wrong.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to simple php/mysql question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18630 seconds with 12 queries