For example in this PHP code I have: else { $videourl = "https://bill.ccbill.com/jpost/billingCascade.cgi?clientAccnum=939993&clientSubacc=<?=$set["ccbillsub"]?>&cascadeId=<?=$set["ccbillID"]?>"; I know the problem is the extra php commands which are messed up in the url: <?=$set["ccbillsub"]?> <?=$set["ccbillID"]?> How best to display them as I'm getting unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING errors.
This should be better: $videourl = "https://bill.ccbill.com/jpost/billingCascade.cgi?clientAccnum=939993&clientSubacc=" . $set["ccbillsub"] . "&cascadeId=" . $set["ccbillID"]; Code (markup):
You can also use the \ key for your quote marks in strings For example: echo 'Tizag - It\'s Neat!'; Code (markup):
$videourl = "https://bill.ccbill.com/jpost/billingCascade.cgi?clientAccnum=939993&clientSubacc={$set['ccbillsub']}&cascadeId={$set['ccbillID']}"; PHP:
thanks guys, I tried the last one by danx10 as the code looked cleaner - worked great. Anyone of you PHP coders want to tackle the Qype mouseover/php reveal that's been bugging me for weeks!? Via: http://forums.digitalpoint.com/showthread.php?t=2044305