Guest Posted June 2, 2003 Posted June 2, 2003 Can someone take a quick look at this and tell me what I'm doing wrong here. I keep getting a parse error, and I guess I've been looking at it too long and am overlooking something. The exact error is: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING The effected line starts at ' ' <td width="93">' . "n" . I've chased this error through several lines, but everytime I think I've found it and made the correction, there is a new error on the next line!! Thanks Ruth inAZ $order = ' <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="93">' . "n" . ' <td class="main" width="485" valign="top"><b>' . TEXT_PRODUCTS_NAME . '</b> ' . $event['product_name']. '<br><b>' . "n" . '</b> </td>' ' <td width="93">' . "n" . ' <td class="main" width="216"><a href="' . tep_href_link(FILENAME_ATTENDEE_LISTING, 'page=' . $HTTP_GET_VARS['page'] . '$order_id=' . $event['orders_id'], 'SSL') . '">' . TEXT_VIEW_ATTENDEES . '</a></td> <td>' ' <td width="68">' . "n" . ' </tr></table>
Daemonj Posted June 2, 2003 Posted June 2, 2003 Try this: $order = ' <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="93">' . "n" . ' <td class="main" width="485" valign="top"><b>' . TEXT_PRODUCTS_NAME . '</b> ' . $event['product_name']. '<br><b>' . "n" . '</b> </td>' . ' <td width="93">' . "n" . ' <td class="main" width="216"><a href="' . tep_href_link(FILENAME_ATTENDEE_LISTING, 'page=' . $HTTP_GET_VARS['page'] . '$order_id=' . $event['orders_id'], 'SSL') . '">' . TEXT_VIEW_ATTENDEES . '</a></td>' . ' <td width="68">' . "n" . ' </tr></table>'; and let me know how it does. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Daemonj Posted June 2, 2003 Posted June 2, 2003 In addition, unless there is some reason to store all of that in a variable, it would be better to do it like: <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="93"> <td class="main" width="485" valign="top"><b><?php echo TEXT_PRODUCTS_NAME . '</b> ' . $event['product_name'] ?></td> <td width="93"> <td class="main" width="216"><a href="<?php echo tep_href_link(FILENAME_ATTENDEE_LISTING, 'page=' . $HTTP_GET_VARS['page'] . '$order_id=' . $event['orders_id'], 'SSL') . '">' . TEXT_VIEW_ATTENDEES ?></a></td> <td width="68"> </tr> </table> "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 2, 2003 Posted June 2, 2003 Jim, I've been just struggling with this, yet this shouldn't be this hard. This page should be simple the next is probably going to be the death of me. All I'm trying to do here is -this page is based on the order history page concept except all I need is the Name of the Product (in my case event) with a link to my next page that will carry that product_id as the variable. The next page I need to create a list of all the customers that attended that same event in a selectable form. I'll try this out and see we do and let you know right away Thanks for your help Ruth
Daemonj Posted June 2, 2003 Posted June 2, 2003 Neither of those should be a problem unless you are unfamiliar with PHP and MySQL. If that is the case, then you should expect to run into some brick walls. If you run into trouble, eMail me at [email protected] and I will assist you. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 2, 2003 Posted June 2, 2003 Tried both ways with no success. It must be something in the way I wrote the first part of the code with query - Here's the whole thing . <?php $events_query_raw = "select o.orders_id, op.orders_id, op.products_name, s.orders_status_name from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_Products . " op on (o.orders_id = op.orders_id) left join " . TABLE_ORDERS_STATUS . " s on (o.orders_status = s.orders_status_id and s.language_id = '" . $languages_id . "') where o.customers_id = '" . $customer_id . "' order by orders_id DESC"; $events_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_ORDER_HISTORY, $events_query_raw, $events_numrows); $events_query = tep_db_query($events_query_raw); $info_box_contents = array(); if (tep_db_num_rows($events_query)) { while ($events = tep_db_fetch_array($events_query)); $order_heading = '<table border="0" width="980" cellspacing="0" cellpadding="2"> <td width="95">' . "n" . ' <tr> <td width="95">' . "n" . ' <td class="main" width="630"><b>' . HEADER_PRODUCT_NAME . '</b> '"n" . '</td> <td width="225"> </tr> <td width="95">' . "n" . '</table>'; $order = ' <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="93">' . "n" . ' <td class="main" width="485" valign="top"><b>' . TEXT_PRODUCTS_NAME . '</b> ' . $event['product_name']. '<br><b>' . "n" . '</b> </td> <td width="93">' . "n" . ' <td class="main" width="216"><a href="' . tep_href_link(FILENAME_ATTENDEE_LISTING, 'page=' . $HTTP_GET_VARS['page'] . '$order_id=' . $event['orders_id'], 'SSL') . '">' . TEXT_VIEW_ATTENDEES . '</a></td>'; ' <td class="main" width="68">' . "n" . ' </tr></table>'; ?> //<!-- body_text_eof //--> //footer // <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Daemonj Posted June 2, 2003 Posted June 2, 2003 Okay, my first question is what are you doing with the order_heading and order variables? You are never echo'ing them or doing anything else unless you use them in your footer.php file but that would be strange. In addition, you have a lot of errors in your code which explains your frustration. Tell me what you are doing with the 2 variables and we can go from there. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted June 2, 2003 Posted June 2, 2003 I just sent you the file via email. That will be easier for both of us. Thanks so much for your help. Ruth in AZ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.