Warning: Wrong parameter count for mysql_result() in /home/h

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oskare100
Forum Commoner
Posts: 80
Joined: Sun Oct 29, 2006 5:47 am

Warning: Wrong parameter count for mysql_result() in /home/h

Post by oskare100 »

Hello,
When I rund this part of the script:

Code: Select all

$sql13 = "select account_username from paypal_sales where txn_id = '$txn_id'";
$result13 = mysql_query($sql13) or die( mysql_error() );
$del_account_username = mysql_result($result13);
echo "Username: $del_account_username";
I get the error:
Warning: Wrong parameter count for mysql_result() in /home/httpd/vhosts/com/

What does that mean? There is a value for account_username in the table paypal_sales where the txn_id in the database is the same as the $txn_id variable in the script.

Best Regards
Oskar R
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

The manual explains what parameters you need to pass
oskare100
Forum Commoner
Posts: 80
Joined: Sun Oct 29, 2006 5:47 am

Post by oskare100 »

Hello,
OK, got it working now..

Best Regards
Oskar R
Post Reply