0

I need help converting this array to a string

$thingOne = connecting::query('SELECT thing1 FROM accounts WHERE username=:user_name', array(':user_name'=>$user_name));

So I can use it in this statement

$thing= connecting::query('SELECT * FROM accounts WHERE thing1=:thingOne AND username!=: user_name,                 array(':thingOne'=>$thingOne),array(':user_name'=>$ran_dom));

I'm just trying to get all occurrences of thingOne in the accounts table where it's not the same user.

I've already tried using var_export, and json_encode, and they both don't convert it when I print it after using those functions, I still get the raw array data whether using print_r or echo. And when I use implode nothing prints. I am really confused where to go from here.

sticky bit
  • 36,626
  • 12
  • 31
  • 42
Ammanuel
  • 1
  • 3

0 Answers0