Hello everyone, I have an array that holds some HTML code in each item, I shuffle this array and then output item[0] so that it is a random item chosen each page view. But, when it's outputted, it is commented out! The code I have isn't commented so I don't know why this is happening. It seems PHP is changing my <A HREF> to <!--ref and my <IMG SRC> to <!--src. Can somone help?
Here is the PHP code I'm using: /*********************************/ /* THIS PUTS THE HTML CODE IN $banLoad */ /********************************/ $banLoan = array(); $banLoan[0] = "<a href=\"http://www.qksrv.net/click-984570-53060\" target=\"_blank\" > <img src=\"http://www.qksrv.net/image-984570-53060\" width=\"88\" height=\"31\" alt=\"LoanApp.com - apply once to 4 lenders!\" border=\"0\"><br>Have lenders bid on your loan!</a>"; $banLoan[1] = "<a href=\"http://www.qksrv.net/click-984570-1142650\" target=\"_blank\" > <img src=\"http://www.qksrv.net/image-984570-1142650\" width=\"88\" height=\"31\" alt=\"Click here!\" border=\"0\"><br>Looking for a loan?</a>"; /****************************/ /* THIS ECHOS A RANDOM $banLoan */ /***************************/ shuffle($banLoan); echo $banLoan[0]; And here is it's output: <!--ref="http://www.qksrv.net/click-984570-53060" target="_blank" !-- src="http://www.qksrv.net/image-984570-53060" width="88" height="31" alt="LoanApp.com - apply once to 4 lenders!" border="-- br Have lenders bid on your loan! --> Can someone please explain what is causing this to comment out, and how I can fix it? Thanks in advance... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]