Jump to content

budimir

Members
  • Posts

    522
  • Joined

  • Last visited

Posts posted by budimir

  1. THANK YOU FOR RESPONDING SO QUICKLY!

     

    I can tell it is shows all of the pictures now BUT...

     

    The picture is in binary code ???

     

     

    Of course it's in a binary mode. You did nothing to convert it back.

     

    A much better and simplier solution is that you upload all the files somwhere in dir and you store only the name of the picture in db.

  2. my test code is now:

     

    <?php
    
    include('adminconnect.php');
    
    $sql = mysql_query("SELECT OrderNo, Orderdate, Dispatchdate, Custname, Trackno,  Amount, Shippingmet FROM admin WHERE Ordercompleted = 1");
    
    while( $row = mysql_fetch_array($sql) )
    {
    
    echo "<table>";
    echo "<tr>";
    echo "<td>" . $row['OrderNo'] . "</td>";
    echo "<td>" . $row['Custname'] . "</td>";
    echo "</tr>";
    echo "</table>";
    
    
    }
    
    
    ?>
    
    <!-- data start -->
    	<div class="padTop11"><!-- --></div>
    
    	<div class="clr"><!-- --></div>
    	<div class="padTop1">
    		<table width="850" border="0" cellspacing="0" cellpadding="0">
    			<tr align="left">
    				<td width="33"> </td>
    				<td width="82"><a href="javascript:openWindow('popup_detail.html', 'NewWindow', 615, 600)" class="black">1231488425</a></td>
    				<td width="61">05/20/06</td>
    				<td width="61">05/20/06</td>
    
    				<td width="230">. $row['OrderNo'] .</td>
    				<td width="170">. $row['TrackNo'] .</td>
    				<td width="56" align="right">. $row['Amount'] .</td>
    				<td width="21"> </td>
    				<td width="136">test</td>
    			</tr>
    		</table>
    
    	</div>
    	<div class="clr"><!-- --></div>
    	<div class="padTop11"><!-- --></div>
    	<div class="clr"><!-- --></div>
    	<div id="dottedIn"><!-- --></div>
    	<div class="clr"><!-- --></div>
    	<!-- data finish -->
    

     

    My results are:

     

    34556 rob

      1231488425 05/20/06 05/20/06 . $row['OrderNo'] . . $row['TrackNo'] . . $row['Amount'] .   test

     

     

     

    . $row['OrderNo'] . . $row['TrackNo'] . . $row['Amount'] .  are not showing there contents, how do I change this?

     

    Try this:

     

    echo "<td>.$row["OrderNo"].</td>"

  3. YOU ARE MY NEW FAVORITE PERSON IN THE WHOLE WIDE WORLD budimir... THANK-YOU THANK-YOU THANK-YOU THANK-YOU

     

    i don't understand it though.. why does

    <br />

    work and not

    <br>

     

    I'm glad that you made it!!!

     

    The reason that it didn't work for you is explained below.

     

    Difference between HTML and XHTML
    
    In HTML the <br> tag has no end tag.
    
    In XHTML the <br> tag must be properly closed, like this: <br />. 

  4. I'm probably being a stupid newbie here... but if I can't use echo inside a define.. then how is your solution supposed to work since I have to do this text as a define to make the whole spiderweb of files that call files that call other files still function?  This paragraph has to be defined as 'EMAIL_TEXT'

     

    And yeah.. revraz... I noticed that about the break command not showing in there.. sorry about that.. I don't use forums very often if at all.. but i need to start using them.. lol.. this stuff is complicated.  I didn't have anywhere near as much trouble picking up on html and css and AutoLisp by myself... php is like a whole other ball game.

     

    Here you go.

     

    define('EMAIL_TEXT',"\n\nWe’ve dedicated ourselves to improving the functions and features to make your experience even better when you visit. <br /> Now we have:\n\n<li><strong>A brand new look</strong>\n<li><strong>More products than ever before</strong>\n<li><strong>Additional features to make your shopping experience more efficient</strong>\n\n<li><strong>Added resources for photo lovers, including an interactive Forum and a behind the scenes blog</strong>As friends of Memory Lane Designs, we are offering you a special discount to try out our new store.  <br /> <br />We hope you will enjoy your visit and will take advantage of 10% off your purchase as our thanks to you. <br /> <br />And for those of you who have purchased before, we welcome your reviews for the products you have purchased.\n\nFor your convenience, we’ve established your account in the new store. To sign in:\n\nStore User Name: Your email address (where this message was sent)\nPassword:  1234\nForum User Name: Your First Name and last initial (example:  Bob_S)\n\n<li>You can create a unique password and even change your email address by signing in to the store and clicking “My Account.”\n<li>To change your Forum user name, click “Forum” on the left side of the site, sign in to the forum using the same password as your store account, and then click “Profile” to change your information.\n\nTo enjoy the 10% discount, just enter MLDFRIENDS, at checkout now through the end of February.  <strong>Consider giving an inspiring gift to the special people in your life for Valentine’s Day!</strong> A Premium Photo Book with photos of your loved ones or custom designed Photo Art that reminds them of what makes them smile.\n\nWith your account, you can now take part in the <strong>various services</strong> we have to offer you. Including:\n\n<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.\n<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.\n<li><strong>Order History</strong> - View your history of purchases that you have made with us.<br /> <br />\n<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.\n<li><strong>Discussion Forum</strong> – This is a great place to get advice and share ideas on all things Photo." );

     

    Try to copy/paste it in you script and see the reuslt. Afterwards do the changes as you please and that's it.

  5. What I was afraid of with the echo command was whether or not it would work while still using the defines in the PHP?  This file is actually called by an HTML file to send the email when a user creates an account with the store.  Is it possible to do it like this:

     

    define('EMAIL_TEXT', echo"<br><br>We’ve dedicated ourselves to improving the functions .......

     

    OK, I see your problem. Try this:

     

    <?php
    echo "\n\nWe’ve dedicated ourselves to improving the functions and features to make your experience even better when you visit. <br /> This is a new row!!!!!!!!<br /> And another one<br /> Now we have:\n\n<li><strong>A brand new look</strong>\n<li><strong>More products than ever before</strong>\n<li><strong>Additional features to make your shopping experience more efficient</strong>\n\n<li><strong>Added resources for photo lovers, including an interactive Forum and a behind the scenes blog</strong>As friends of Memory Lane Designs, we are offering you a special discount to try out our new store.  We hope you will enjoy your visit and will take advantage of 10% off your purchase as our thanks to you. And for those of you who have purchased before, we welcome your reviews for the products you have purchased.\n\nFor your convenience, we’ve established your account in the new store. To sign in:\n\nStore User Name: Your email address (where this message was sent)\nPassword:  1234\nForum User Name: Your First Name and last initial (example:  Bob_S)\n\n<li>You can create a unique password and even change your email address by signing in to the store and clicking “My Account.”\n<li>To change your Forum user name, click “Forum” on the left side of the site, sign in to the forum using the same password as your store account, and then click “Profile” to change your information.\n\nTo enjoy the 10% discount, just enter MLDFRIENDS, at checkout now through the end of February.  <strong>Consider giving an inspiring gift to the special people in your life for Valentine’s Day!</strong> A Premium Photo Book with photos of your loved ones or custom designed Photo Art that reminds them of what makes them smile.\n\nWith your account, you can now take part in the <strong>various services</strong> we have to offer you. Including:\n\n<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.\n<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.\n<li><strong>Order History</strong> - View your history of purchases that you have made with us.\n<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.\n<li><strong>Discussion Forum</strong> – This is a great place to get advice and share ideas on all things Photo.";
    ?>

     

    Now you should get a point. Try to play with it a litlle. Echo will not work inside define command. But you dont need to use echo, you can use a comannd for a new row in define. Just put it at the end of the line and that's it.

  6. Are you suggesting just using a normal return when typing like

     

    this?

     

    I tried that already.. that's what the other guy suggested and that didn't work at all.  And doesn't solve the fact that I need to control spacing between bits of text contained within three different variable and in three different places in the file.

     

    I'm going to include the rest of the code in that file so you guys can see what I mean about the three different variables.  I didn't include it before since I assumed that if I found something to help with spacing in the main part I could use it in the other parts.

     

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: create_account.php 5745 2007-02-01 00:52:06Z ajeh $
    */
    
    define('NAVBAR_TITLE', 'Create an Account');
    
    define('HEADING_TITLE', 'My Account Information');
    
    define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="%s">login page</a>.');
    
    // greeting salutation
    define('EMAIL_SUBJECT', 'Happy New Year from Memory Lane Designs!');
    define('EMAIL_GREET_MR', "\n\nDear Mr. %s," . "\n\n");
    define('EMAIL_GREET_MS', "\n\nDear Ms. %s," . "\n\n");
    define('EMAIL_GREET_NONE', "\n\nDear %s" . "\n\n");
    
    // First line of the greeting
    define('EMAIL_WELCOME', "\n\nWelcome to the New Memory Lane Designs’ site!<strong>" );
    define('EMAIL_SEPARATOR', '--------------------');
    define('EMAIL_COUPON_INCENTIVE_HEADER', 'Congratulations! To make your next visit to our online shop a more rewarding experience, listed below are details for a Discount Coupon created just for you!' . "\n\n");
    // your Discount Coupon Description will be inserted before this next define
    define('EMAIL_COUPON_REDEEM', 'To use the Discount Coupon, enter the ' . TEXT_GV_REDEEM . ' code during checkout:  <strong>%s</strong>' . "\n\n");
    define('TEXT_COUPON_HELP_DATE', '<p>The coupon is valid between %s and %s</p>');
    
    define('EMAIL_GV_INCENTIVE_HEADER', 'Just for stopping by today, we have sent you a ' . TEXT_GV_NAME . ' for %s!' . "\n");
    define('EMAIL_GV_REDEEM', 'The ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM . ' is: %s ' . "\n\n" . 'You can enter the ' . TEXT_GV_REDEEM . ' during Checkout, after making your selections in the store. ');
    define('EMAIL_GV_LINK', ' Or, you may redeem it now by following this link: ' . "\n");
    // GV link will automatically be included before this line
    
    define('EMAIL_GV_LINK_OTHER','Once you have added the ' . TEXT_GV_NAME . ' to your account, you may use the ' . TEXT_GV_NAME . ' for yourself, or send it to a friend!' . "\n\n");
    
    define('EMAIL_TEXT',"\n\nWe’ve dedicated ourselves to improving the functions and features to make your experience even better when you visit.  Now we have:\n\n<li><strong>A brand new look</strong>\n<li><strong>More products than ever before</strong>\n<li><strong>Additional features to make your shopping experience more efficient</strong>\n\n<li><strong>Added resources for photo lovers, including an interactive Forum and a behind the scenes blog</strong>As friends of Memory Lane Designs, we are offering you a special discount to try out our new store.  We hope you will enjoy your visit and will take advantage of 10% off your purchase as our thanks to you. And for those of you who have purchased before, we welcome your reviews for the products you have purchased.\n\nFor your convenience, we’ve established your account in the new store. To sign in:\n\nStore User Name: Your email address (where this message was sent)\nPassword:  1234\nForum User Name: Your First Name and last initial (example:  Bob_S)\n\n<li>You can create a unique password and even change your email address by signing in to the store and clicking “My Account.”\n<li>To change your Forum user name, click “Forum” on the left side of the site, sign in to the forum using the same password as your store account, and then click “Profile” to change your information.\n\nTo enjoy the 10% discount, just enter MLDFRIENDS, at checkout now through the end of February.  <strong>Consider giving an inspiring gift to the special people in your life for Valentine’s Day!</strong> A Premium Photo Book with photos of your loved ones or custom designed Photo Art that reminds them of what makes them smile.\n\nWith your account, you can now take part in the <strong>various services</strong> we have to offer you. Including:\n\n<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.\n<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.\n<li><strong>Order History</strong> - View your history of purchases that you have made with us.\n<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers.\n<li><strong>Discussion Forum</strong> – This is a great place to get advice and share ideas on all things Photo." );
    define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a>\n\n");define('EMAIL_GV_CLOSURE',"\n\nSincerely," . STORE_OWNER . "\nMemory Lane Designs\nBe Inspired By Your Life\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n800-717-4511 ");
    
    // email disclaimer - this disclaimer is separate from all other email disclaimers
    define('EMAIL_DISCLAIMER_NEW_CUSTOMER', "\n\nThis email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to %s ");
    
    //moved definitions to english.php
    //define('TABLE_HEADING_PRIVACY_CONDITIONS', 'Privacy Statement');
    //define('TEXT_PRIVACY_CONDITIONS_DESCRIPTION', 'Please acknowledge you agree with our privacy statement by ticking the following box. The privacy statement can be read <a href="' . zen_href_link(FILENAME_PRIVACY, '', 'SSL') . '"><span class="pseudolink">here</span></a>.');
    //define('TEXT_PRIVACY_CONDITIONS_CONFIRM', 'I have read and agreed to your privacy statement.');
    //define('TABLE_HEADING_ADDRESS_DETAILS', 'Address Details');
    //define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Contact Details');
    //define('TABLE_HEADING_DATE_OF_BIRTH', 'Verify Your Age');
    //define('TABLE_HEADING_LOGIN_DETAILS', 'Login Details');
    //define('TABLE_HEADING_REFERRAL_DETAILS', 'Were You Referred to Us?');
    ?>
    

     

    I ment that you could just type in the text (with the variables if you need them) and use a html command to go to next row.

     

    <?php
    
    echo "Dear Sir,<br />
    I hope you will understand what I mean with this.<br />
    Let me know if it worked.";
    ?>
    

     

    So the display of the text will look exactly like I've typed it above without the php and html tags.

  7. Hi,

     

    I'm trying to create a php script which would take the data from MySQL database, sort it and print it to labels for envelopes. Now, I'm having trouble with formatting the print and adjusting it for the labels.

     

    Could someone post a code where I could define the size of the paper, how many labels are on the page (rows and columns) and to define the size of the labels?

     

    I now, that somebody will tell me that I need to post more data about the labels, but my problem is that I have two different sizes of labels so I will need to adjust for them.

     

    Thanks.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.