Jump to content

bobinindia

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Everything posted by bobinindia

  1. If i understand you you can set the column name $columnname = $_POST['whatever']; Then the $query
  2. yes you can. I'm with Crayon Violent on that one. There are a few upload progress scripts out there using ajax. This the best i have found so far for anyone looking: http://uber-uploader.sourceforge.net/ I just was looking for something simpler.
  3. I have found this site helpful http://www.tizag.com/phpT/whileloop.php They have a page on each of them.
  4. Does anyone know a good simple upload progress script? Ideally easy to integrate. Ajax must be part of it I assume.
  5. I have them and now i solved it by converting them to .dfont files. Thanks for everyones time
  6. They really don't know their stuff. (My hosting company) I tried a few sites to download the ttf files but i can't find fonts like Verdana, Times New Roman, Comic Sans and Century. The only ones I need actually. Thousands of others are available.
  7. I will call them again to see if I can get a better answer!
  8. I tried that and the two people I spoke to weren't very together!! I'm sure I'll do better in this forum! <?php $bbox = imagettfbbox($size,0,$font,$txt); //$font can be Verdana, Times New Roman, Comic Sans and Century. Very common fonts. ?>
  9. I am talking GD I need to create font previews on the fly as they include the text of the user. If i have an installed font in a folder on the server it is fine. My problem is getting the classic fonts as ttf files or accessing them from my server with the assumption that they are available.
  10. My host says the server has all the classic fonts installed. How do I get one into a variable? What would be the path? eg. $font = 'Verdana'; Any ideas?
  11. I have a javascript function that opens and tries to print a php page. When I hit the 'print draft' button on the first page the window opens correctly and the print dialog box comes with the correct file name in it. When I actually hit the 'print' button in the dialog box the error comes. The page is generated by GD and only has a imagejpeg sent to it. Can that confuse the printer? My error is that 'the page was replaced while you were trying to print'. Is that because php took a second to generate the page or what is going on there?
  12. Yes there was an if statement that wasn't noticed by me. Image size dependent. Thanks Lemmin.
  13. I have checked each time i uploaded the file the content of the imagecode.php. It only changed when the image had no image icon. The images are being uploaded and entered into the database as the images upload id is going up every time i run it regardless of the preview icon. This is an example of what is written in the file. <?php echo 'Image=images/uploaded/280.jpg'; ?> No unusual characters to break the string.
  14. I think you can use a session if I have understood you. You just need to also unset the session if the user deletes 'CLUBMEMBER item'.
  15. So this is the code that writes to a text file: $fp = fopen('imagecode.php', 'w'); $vari = "<?php echo 'Image=".$theimage."'; ?>"; fwrite($fp, "$vari"); fclose($fp); Nothing too unusual there. Permissions are fine as it does write sometimes. $theimage is a file uploaded by a user. Testing on a mac I noticed that if an image in Finder has a preview icon it won't be written to this file. Any other image will. All jpgs. Any idea what that could be?
  16. Any suggestions/recommended tutorials for an upload progress script?
  17. There is no email variable being made. You need a query that selects all items with the same email address and then make at table with the results in it.
  18. $i = 1; while($myrow = mysql_fetch_array($result)) { $itemId = $myrow['itemId']; $price = $myrow['price']; $quantity = $myrow['qty']; $date = $myrow['date']; $mailcontent.$i = "Item Id: ".$itemId."\n" ."Quantity: ".$quantity."\n" ."Date: " .$date."\n" ."Customer email: ".$email."\n" ."Shipping Address: \n" .$shipadd."\n"; $i++; } $mailcontent = $mailcontent1.$mailcontent2.$mailcontent3; //etc mail($to, $subject, $mailcontent,$additional_headers); Something along those lines. No expert myself!!
  19. post the code. it will be quicker
  20. You will need to store the info for the table in a variable which gets a new name each while loop. ie ++1 onto each variable name. Then join them before mailing. each variable hold a row. $variable1.$variable2 etc
  21. sounds like the mail() function is inside your while loop.
  22. My solution was to not use png and use gif. Solved my problem but doesn't solve the actual problem. There appear to be numerous hacks out there for this so I'll shut this down.
  23. Anyone know a fix to render pngs in IE? Transparency doesn't work below IE7.
  24. Solved it. By making the transparent color one of the RGB values - 1 or +1. The eye can't see it. $color = rgb2hex2rgb($colour); $one = $color[0]; $two = $color[1]; $three = $color[2]; if ($three<255){ $replace = $three +1; } else { $replace = $three - 1; } $tcolour = imagecolorallocate($mask,$one,$two,$replace);
  25. you might be looking for Ajax here as I am thinking you want to stay on the same page and have the images change. You can call PHP to send the images.
×
×
  • 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.