Arrays and Switches


Hello -

I have a switch statement that contain arrays. Depending on the case, the result is a random message from the array.

The query(case) is sent from another server.


Case 1

Case 2

Case 3

And so on.

I would like to be able to add/edit/delete cases or arrays, or messages within the different arrays from the other server. Currently I edit the code manually and reupload the updated script.





That could be made easier with a database…


Yes, probably… still figuring things out with php right now.


Interesting… so i send that format to my php page and it will change? Or do I need to set some code to read that and execute the command?