Jump to content

Inserting trouble


Spectre

Recommended Posts

Hey, I've made a lovely little php slot machine script,

 

now i've made it to also send a news item to a specified ID in game should someone try to edit the bet amounts via the URL to anythign other than my amounts I allow.

 

now I know it works for one id

 

ex:

mysql_query("INSERT INTO usernews (id, user, text, time) values ('','1','<a href=view.php?id=$memberinfo[id]>$memberinfo[username]</a> attempted to deliberately change the bet in slots.php to $gbet','$time')");

 

My problem is, I want the "user" to be more than one id, so i've made an array holding the ids I would like the message to go to, but.... can't just change the above '1' to '$notifyarray' ... I need to know a way to insert multiple rows, so one for each id in $notifyarray.

 

Any help? (sorry, don't usually use much more than simple one row inserts and updates etc so kinda setback by this small dilemma)

 

Link to comment
https://forums.phpfreaks.com/topic/94761-inserting-trouble/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.