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.

Switch

Case 1
Array

Case 2
Array

Case 3
Array

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.

Thanks

unset($array[$caseid])

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?

Sponsor our Newsletter | Privacy Policy | Terms of Service