drophit Posted March 21, 2006 Share Posted March 21, 2006 I am trying to setup a variable and store some code to display but am haveing some probs see code below<CODE>$insert_results = ('<form action="CDDuplicationStepFive.php" method="post" name="form1"> <p class="MainContentBlue">We offer multiple Insert Printing options </p> <p class="MainContent"> <select name="printing" class="MainContentSmallBolder" id="printing">' do { ' <option value="<?php echo $row_all_cds[\'print_id\']?>">' echo $row_all_cds['print_name']' - add ' echo $row_all_cds['print_retail']'</option>'} while ($row_all_cds = mysql_fetch_assoc($all_cds)); $rows = mysql_num_rows($all_cds); if($rows > 0) { mysql_data_seek($all_cds, 0); $row_all_cds = mysql_fetch_assoc($all_cds); }' </select> <a href="#" class="MainContentVerySmall" onClick="MM_openBrWindow(\'../AutoHelp.php?sub=InsertPrinting\',\'HELP\',\'scrollbars=yes,width=375,height=400\')">HELP!</a></p> <p> <input name="Submit" type="submit" class="MainContentVerySmall" value="CONTINUE"> </p> </form> '); }else{ $quote['printing_name'] = "None";$quote['printing_retail'] = ".00";header("Location: CDDuplicationStepFive.php");}</CODE>Getting:Parse error: parse error, unexpected T_DO in /wizard/CDDuplicationStepFourA.php on line 36PLEASE help me!! Link to comment https://forums.phpfreaks.com/topic/5457-php-and-html-in-variable/ Share on other sites More sharing options...
kenrbnsn Posted March 22, 2006 Share Posted March 22, 2006 You're not terminating your statements with a semi-colon. I see lone single quotes in your code. You're attempting to store something in a variable and never using it anywhere. How are you expecting to show what you stored? You don't need parenthesis around strings.Ken Link to comment https://forums.phpfreaks.com/topic/5457-php-and-html-in-variable/#findComment-19512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.