Guest Posted December 22, 2005 Share Posted December 22, 2005 I am trying to access the customers in the admin panel and keep gettingthis error : Parse error: parse error, unexpected T_DOUBLE_ARROW in /content/DesignerPlus/m/o/mobifone.co.uk/web/catalog/admin/customers.php on line 194 Link to comment Share on other sites More sharing options...
kgt Posted December 22, 2005 Share Posted December 22, 2005 Post your code from admin/customers.php. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2005 Share Posted December 23, 2005 Normally, this means you have a semicolon where a comma should be in an sql data array. Be sure that the rows in these arrays end in commas except the last one which should end with a semicolon. Hope this helps. Link to comment Share on other sites More sharing options...
Guest Posted December 24, 2005 Share Posted December 24, 2005 Normally, this means you have a semicolon where a comma should be in an sql data array. Be sure that the rows in these arrays end in commas except the last one which should end with a semicolon. Hope this helps. $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $customers_email_address, 'customers_telephone' => $customers_telephone, 'customers_fax' => $customers_fax, 'customers_newsletter' => $customers_newsletter, 'member_flag' => $member_flag); //Begin Separate Price per Customer 'customers_group_id' => $customers_group_id, 'customers_group_name' => $customers_group_name); //End Separate Price per Customer Link to comment Share on other sites More sharing options...
kgt Posted December 24, 2005 Share Posted December 24, 2005 $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $customers_email_address, 'customers_telephone' => $customers_telephone, 'customers_fax' => $customers_fax, 'customers_newsletter' => $customers_newsletter, 'member_flag' => $member_flag); /// <----- RIGHT HERE //Begin Separate Price per Customer 'customers_group_id' => $customers_group_id, 'customers_group_name' => $customers_group_name); //End Separate Price per Customer Should be: 'member_flag' => $member_flag, Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
overkill Posted January 15, 2006 Share Posted January 15, 2006 hey KGT, I have the same problem, but I have checked for the comma as opposed to the semi-colon but everything should be where it is....here is a few lines from my code that is giving me trouble. it says this: Parse error: parse error, unexpected T_DOUBLE_ARROW in /var/www/html/catalog/admin/customers.php on line 193 HERE IS THE CODE: $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $customers_email_address, 'customers_telephone' => $customers_telephone, 'customers_fax' => $customers_fax, 'customers_newsletter' => $customers_newsletter); // BOF Separate Pricing per Customer 'customers_group_id' => $customers_group_id, <--line 193 'customers_group_ra' => $customers_group_ra, 'customers_payment_allowed' => $customers_payment_allowed, 'customers_shipment_allowed' => $customers_shipment_allowed); // EOF Separate Pricing per Customer Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2006 Share Posted January 15, 2006 hey KGT, I have the same problem, but I have checked for the comma as opposed to the semi-colon but everything should be where it is....here is a few lines from my code that is giving me trouble. it says this: Parse error: parse error, unexpected T_DOUBLE_ARROW in /var/www/html/catalog/admin/customers.php on line 193 HERE IS THE CODE: $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $customers_email_address, 'customers_telephone' => $customers_telephone, 'customers_fax' => $customers_fax, 'customers_newsletter' => $customers_newsletter); // BOF Separate Pricing per Customer 'customers_group_id' => $customers_group_id, <--line 193 'customers_group_ra' => $customers_group_ra, 'customers_payment_allowed' => $customers_payment_allowed, 'customers_shipment_allowed' => $customers_shipment_allowed); // EOF Separate Pricing per Customer Change line 191 from 'customers_newsletter' => $customers_newsletter); To 'customers_newsletter' => $customers_newsletter, Link to comment Share on other sites More sharing options...
overkill Posted January 15, 2006 Share Posted January 15, 2006 hey leisuret, SO CLOSE... This is the error now that I am getting in when I click the Customers in the Admin Panel... Any ideas? // BOF customer_sort_admin_v1 adapted for Separate Pricing Per Customer ?> if (strlen($customers['customers_lastname']) > 15 ) { print ("".substr($customers['customers_lastname'], 0, 15)." "); } else { echo $customers['customers_lastname']; } ?>// BOF customer_sort_admin_v1 adapted for Separate Pricing Per Customer ?> if (strlen($customers['customers_lastname']) > 15 ) { print ("".substr($customers['customers_lastname'], 0, 15)." "); } else { echo $customers['customers_lastname']; } ?> I would give you the few lines of code if I knew where it came from, I just check customers.php and it was't in there!!! Link to comment Share on other sites More sharing options...
kgt Posted January 16, 2006 Share Posted January 16, 2006 PHP code needs to be ENCLOSED within <?php and ?> tags. Any "code" outside of those tags is considered plain text and will be printed to the screen as is. That's your problem: // BOF customer_sort_admin_v1 adapted for Separate Pricing Per Customer ?> if Here you have a closing PHP tag, which means the "if..." part will be considered plain text. This code is coming from somewhere. If you can't find it in customers.php, then there might be an include file. If you can't figure it out, post the entire file. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
overkill Posted January 16, 2006 Share Posted January 16, 2006 Hey KGT, I ended up deleting the section of the code and it now works fine. I then realized at the point of hitting the delete key that there was no <?php starting code. I really don't think it matters to much though as now I am not getting that error plus everything on that page is now organized and I also this that it might have been a duplicate code somewhere in customers.php Thanks for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.