How can I use several SQL SELECT queries as WHERE clauses in php? – Phpmyadmin
$sql = "INSERT into x (y,z,t) VALUES ((SELECT userID FROM users WHERE username ='".$usersql."')," ."'"."(SELECT itemID from items WHERE category ='".$category."')," ."'".$amountdays."')"; Thank you for your time.