Okay, so this is a little hard to explain but I have something like this:
$yourScripts = 777,1337, -- My variable
$yourData = mysqli_query($db,"SELECT * FROM scriptlog WHERE FIND_IN_SET('$yourScripts', scriptid)") -- My query
My scriptlog table looks like this:
scriptid | other stuff
-----------------------
1337 | xxxxxxx
456 | xxxxxxx
777 | xxxxxxx
How can I get my query to return the rows that have the correct scriptid? Currently it returns nothing.
I have also tried this but it also returns nothing:
$yourData = mysqli_query($db,"SELECT * FROM scriptlog WHERE scriptid LIKE '%{$yourScripts}%'")