Originally, this simple array and a foreach statement works perfect, but I need to change from a php array to getting the information out of the database:
$serversArray = array(
"domainname1.com",
"domainname2.com:port",
"domainname3.org",
"000.000.000.000:port");
foreach($serversArray as $server)
.
ID IP Port
1 domainname1.com
2 domainname2.com 12345
3 domainname3.org
4 000.000.000.000 54321
What I need to figure out is how to get the IP and Port columns formatted into ip:port (with the colon in between), and then make the foreach statement recognize each one so it can process it with some other script, just like how it works already with the array. (I have also tried using sprintf in the foreach, but that broke the page.)
foreachloop.