i am trying to make this code work with no success. Can anyone help me?
$to = $_POST["credits"];
$messaging = $_POST["message"];
$sub = $_POST["subject"];
read) ('select Id from oto_members ORDER BY RAND() Limit $to;', '$messaging', '$sub', no");`
i am trying to insert several instanses using random id's from a query that grabs them randomly limited the the amount of credits used. so if using 50 credits, will grab 50 random id's then insert the message, sub, into the database for each of the grabbed id's...