ajetrumpet
10-23-2009, 07:53 PM
hello all,
I have about 100 line blocks of code that look like this:elseif (substr($array[$i], 0, strpos($array[$i], ",")) == "12.71.118.66") {
echo '<td style="cursor:pointer; text-align:center; color:#0000FF">
<center><strong><u><a onclick=MM_openBrWindow
("http://www.hhsd.org/","","toolbar=yes,location=yes,
status=yes,menubar=yes,scrollbars=yes,resizable=yes,
width=2000,height=2000")>http://www.hhsd.org/</center></strong></u></a></td>'; }i have an array of concatenated fields imported into DW from Access, and I'm making a bunch of tables from each one.
the tables list visits to my website. the above code is checking for the part of the strings that's the visitor's name and matching the IP address to it, and then writing a hyperlink above the table's beginning. I have about 115 of these if statements. is there anyway I can consolidate these things?
I have about 100 line blocks of code that look like this:elseif (substr($array[$i], 0, strpos($array[$i], ",")) == "12.71.118.66") {
echo '<td style="cursor:pointer; text-align:center; color:#0000FF">
<center><strong><u><a onclick=MM_openBrWindow
("http://www.hhsd.org/","","toolbar=yes,location=yes,
status=yes,menubar=yes,scrollbars=yes,resizable=yes,
width=2000,height=2000")>http://www.hhsd.org/</center></strong></u></a></td>'; }i have an array of concatenated fields imported into DW from Access, and I'm making a bunch of tables from each one.
the tables list visits to my website. the above code is checking for the part of the strings that's the visitor's name and matching the IP address to it, and then writing a hyperlink above the table's beginning. I have about 115 of these if statements. is there anyway I can consolidate these things?