silence Well-known member May 9, 2013 #21 mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement
mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement
Akinak Well-known member May 9, 2013 #22 Edit post http://xenforo.com/community/threads/callback-custom-profile-fields.49993/#post-535817
silence Well-known member May 9, 2013 #23 Alright that worked I'm grabbing the stuff using this: but it's returning empty for all of these. Is there a specific way I need to grab em, since my previous attempt didn't work PHP: $username = (isset($data['field_value']) ? $data['field_value'] : null); $userid = (isset($data['user_id']) ? $data['user_id'] : null); $storedtime = (isset($gettime['last_donation_date']) ? $gettime['last_donation_date'] : null); If I do what is listed here: http://xenforo.com/community/threads/mysql-queries-how-to-use-db-in-xenforo-small-notes.5444/ PHP: foreach($data AS $rowName => $results) { print $rowName . " => <pre>"; print_r($results); print "</pre><br />"; } I get my desired output, so how come I can't do what I'm trying to do? EDIT FRIGGIN 2D ARRAY!!!! $username = (isset($data[0]['field_value']) ? $data[0]['field_value'] : null); I think I got it :3
Alright that worked I'm grabbing the stuff using this: but it's returning empty for all of these. Is there a specific way I need to grab em, since my previous attempt didn't work PHP: $username = (isset($data['field_value']) ? $data['field_value'] : null); $userid = (isset($data['user_id']) ? $data['user_id'] : null); $storedtime = (isset($gettime['last_donation_date']) ? $gettime['last_donation_date'] : null); If I do what is listed here: http://xenforo.com/community/threads/mysql-queries-how-to-use-db-in-xenforo-small-notes.5444/ PHP: foreach($data AS $rowName => $results) { print $rowName . " => <pre>"; print_r($results); print "</pre><br />"; } I get my desired output, so how come I can't do what I'm trying to do? EDIT FRIGGIN 2D ARRAY!!!! $username = (isset($data[0]['field_value']) ? $data[0]['field_value'] : null); I think I got it :3