Hey, I've really been thinking about this lately.
Is there any way to put Arrays into MySQL, for example:
PHP Code:
$array[0] = "yes"; $array[1] = "no";
$sql = '`field` = '.$array.'';
Currently I've never got it to work (If anything i get the word 'Array' back, but no values). So I end up using explodes, for example.
PHP Code:
$array = "yes|/|no";
$sql = '`field` = '.$array.'';
// do SQL, and receive it back as say...$hobbit.
$hobbit = explode($hobbit, "|/|");
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
|