fayeff Posted July 30, 2005 Share Posted July 30, 2005 here is the code 692 <?php 693 $next_id = 1; 694 $attributes = tep_db_query($attributes); 695 while ($attributes_values = tep_db_fetch_array($attributes)) { 696 $products_name_only = tep_get_products_name($attributes_values ['products_id']); 697 $options_name = tep_options_name($a ; </td> 699<?php Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2005 Share Posted July 30, 2005 here is the code 692 <?php 693 $next_id = 1; 694 $attributes = tep_db_query($attributes); 695 while ($attributes_values = tep_db_fetch_array($attributes)) { 696 $products_name_only = tep_get_products_name($attributes_values ['products_id']); 697 $options_name = tep_options_name($a ; </td> 699<?php <{POST_SNAPBACK}> Well you've got a PHP start tag on 692 <?php you've then got another one on 699, so where is your end PHP tag ?> (although if the php code is continuing through from 692 to whereever then you dont need the other start tag) also line 697 697 $options_name = tep_options_name($a ; </td> not sure what your intention is with that code but you cant just put html elements in php code ($nbsp; and </td>). You either need to come out of PHP <?php code type stuff?>blah blah HTML stuff <?php code type stuff ?> or you need to use phps print/echo function to output HTML to the browser, or you need to pass to a function enclosed with quotes. Link to comment Share on other sites More sharing options...
fayeff Posted August 6, 2005 Author Share Posted August 6, 2005 Well you've got a PHP start tag on 692 <?php you've then got another one on 699, so where is your end PHP tag ?> (although if the php code is continuing through from 692 to whereever then you dont need the other start tag) also line 697 697 $options_name = tep_options_name($a ; </td> not sure what your intention is with that code but you cant just put html elements in php code ($nbsp; and </td>). You either need to come out of PHP <?php code type stuff?>blah blah HTML stuff <?php code type stuff ?> or you need to use phps print/echo function to output HTML to the browser, or you need to pass to a function enclosed with quotes. <{POST_SNAPBACK}> Sorry Mike, I konw nothing about PHP code, and I did no change to this code before, now I still don't know what to do. :( I tried make line 697 like this 697 $options_name = tep_options_name($a)?> ; </td> but still not working,came out another error Parse error: parse error, unexpected T_ELSE in /home/favorart/public_html/admin/products_attributes.php on line 700 here is line 700 } else { this is the only problem left so far, can any one just show me what is the code in your product_attribute.php,maybe I can just copy your code to mine? Link to comment Share on other sites More sharing options...
fayeff Posted August 6, 2005 Author Share Posted August 6, 2005 up Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.