Jump to content

budimir

Members
  • Posts

    522
  • Joined

  • Last visited

Everything posted by budimir

  1. 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. You can download WAMP (www.wamp-server.com) and install it. After that type in your Internet browser: localhost and you will get all the info about current install. Good thing about new WAMP server 2 is that you can install any version of Apache, PHP and MySQL and use any of these versions just by clicking on them. Try it, it's working fine for me.
  3. Hey there, You can use: header ("Location:your_location.php"); But, be carefull. You can't have any output before header otherwise you'll end up with an error.
  4. Sorry, I ment echo '<td>.$row["OrderNo"].</td>'
  5. Try this: echo "<td>.$row["OrderNo"].</td>"
  6. Thanks a lot Barand. Looking at this, I got an Idea how to do it through php, without outputing to PDF. Regards
  7. 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 />.
  8. 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.
  9. 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.
  10. 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.
  11. I'm sorry for this!!!! Use "<br />" without quatation marks to go to next line.
  12. Hi there, I belive you could try using <br /> for going to next row. As that is the only problem I can see that you are having. Good luck....
  13. I'm not good with CSS. :-[
  14. 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.