patrickbailey1 Posted June 27, 2004 Posted June 27, 2004 I get this error: Warning: sprintf(): Too few arguments in /hsphere/local/home/havenbiz/havenelectronics.com/catalog/includes/functions/general.php on line after editing english.php. Here's what i added: define('TEXT_GREETING_GUEST', '<p> </p> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td align="center" valign="top" width="33%"> <img name="images/1.jpg" width="100" height="100"></td> <td align="center" valign="top" width="33%"> <img name="images/2.jpg" width="100" height="100"></td> <td align="center" valign="top" width="33%"> <img name="images/3.jpg" width="100" height="100"></td> </tr> <tr> <td align="center" valign="top" colspan="1"><strong><font color="red">S</font>tyle</strong></td> <td align="center" valign="top" colspan="1"><strong><font color="red">F</font>unction</strong></td> <td align="center" valign="top" colspan="1"><strong><font color="red">C</font>larity</strong></td> </tr> </table> '); Any ideas? Patrick Patrick Bailey www.DisplayHaven.com
♥ecartz Posted June 27, 2004 Posted June 27, 2004 I would try changing all the % to %% Hth, Matt Always back up before making changes.
patrickbailey1 Posted June 27, 2004 Author Posted June 27, 2004 Thanks man! Why does that work? Patrick Bailey www.DisplayHaven.com
♥ecartz Posted June 27, 2004 Posted June 27, 2004 sprintf('Look, %s is %s word.', 'name', 'the') prints out Look, name is the wordA % is a special character in an sprintf format string. To output a normal % you put in %%. I'm not sure what a %" is, but it made it look for something to put there. Hth, Matt Always back up before making changes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.