Let´s say i perform a query like this:
$charsnamequery = mysql_query("SELECT * FROM 'bookstable' WHERE 'bookcharactersname' = 'JHON'")
This will give back a resource that i then put in an array and use to print the results like this:
while ( $fullist = mysql_fetch_array( $charsnamequery ))
{ Print "book title: ".$fullist['id_book'] . ", book author:".$fullist['book_author'] . "
.....etc etc etc";
}
So, lets say that now i want to do is: Search on my database for customers who have showed interest in any of those id_book in the past and gather their emails.
I know i am suposed to reformat the array in someway so that i can do a new query like:
$newquery = mysql_query("SELECT 'email' FROM 'customerstable' WHERE 'id_book_interested_in' IN ($value1,$value2,$value3....etc etc etc)"
Hope you can give me a hand with this! Thanks you in advance!
PS: I rather not join the querys even if it were possible for im trying to learn step by step.-