Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Add array result to SQL Query?

What's the easiest way to add an array result to a query?

For example, I want to add $bfetch['protectedby1'] to the following query:

aint my sig design skills sick?
PHP Code

<?php 
$con
->prepare("SELECT * FROM accounts WHERE username=?");
$con->bind_param("s", $bfetch['protectedBy1']); 

?
(Feb 15, 2017 01:20 PM)liumbiwe Wrote:  
PHP Code

<?php 
$con
->prepare("SELECT * FROM accounts WHERE username=?");
$con->bind_param("s", $bfetch['protectedBy1']); 

?

Oh shit, yeah, of course. Cheers.
aint my sig design skills sick?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by blackcoder00Aug 30, 2020 10:47 AM 8 222 Aug 30, 2020 10:47 AM
Last Post: newQuery
[PHP] by marcfisherApr 30, 2020 10:51 PM 1 111 Apr 30, 2020 10:51 PM
Last Post: NoSuchAgency
[PHP] by NuminousApr 5, 2020 09:38 AM 2 152 Apr 5, 2020 09:38 AM
Last Post: Yck