Jump to content


  • Posts

  • Joined

  • Last visited

Previous Fields

  • Languages
    HTML, CSS, basic SQL, basic JavaScript, basic PHP

Contact Methods

  • Website URL
  • ICQ

toxic27's Achievements


Newbie (1/7)



  1. Here's my situation:I have just recently implemented an upload form onto my website that allows users to browse and upload their photos to the site. I have taken the uploaded file's name and inserted it into a MySQL database with its own ID and stuff. So far, I have had little to no problems with it. Now I need to display the photos.I don't want to just display them in one large column (I already know how to do that) but rather display them in a HTML table. So I just need to print MySQL data into a table in a certain way. This might make it easier to understand:Column 1 - Column 2 - Column 3 - Column 4data #1 - data #2 - data #3 - data #4data #5 - data #6 - data #7 - data #8data #9 - data #10 - data #11 - data #12...and so on...NOT:Column 1 - Column 2 - Column 3 - Column 4data #1 - data #1 - data #1 - data #1data #2 - data #2 - data #2 - data #2data #3 - data #3 - data #3 - data #3Any help? Any PHP scripts out there that can do this? Thanks.If you need more info, just ask.
  2. Correct me if I'm wrong, because I'm not the best at PHP, but couldn't you just use a user's cookies for that?I don't have very much experience with PHP cookies and all but I think it might be able to work.
  3. Or can someone lead me to a site explaining it? thanks
  4. Alright, thanks, is there anyway you could write it for me? I know it sounds lazy but I literally searched all over Google for more on this and nothing worked.All I need is for 'http://www.kingps3.com/ct/trophy.png?type=b&text=abcdef' to be redirected to this 'http://www.kingps3.com/ct/trophy.php?type=b&text=abcdef'.BTW, justsomeguy, that wouldn't work because the variable changes everytime. It's for a feature that users on my site can use in which they pick what the 'text=' equals so I couldn't just put one statement (like 'Text goes here!') for it.Thanks for helping guys
  5. Alright, is there a way to integrate PHP into the .htaccess file? The PHP file with the "image code" in it has some.. umm.. I forget what it is called. Here's an example:http://www.kingps3.com/ct/trophy.php?type=b&text=Text goes here!Whatever that is. I forgot what it is called haha. Yeah well is there a way to pass that info through the .htaccess file and to the actual .PHP "image code" file?
  6. Well, would there be away to turn that code into a .PNG image?The reason I'm looking to do this is because there is a site's forums I'm trying to make an embed code to and since the file (http://www.kingps3.com/ct/trophy.php?type=b&text=test) ends in .PHP, it doesn't allow it. How would I make it to .PNG or .GIF or whatever?If you need more info, just say.Thanks.
  7. Oh, and one more minor thing. I'm wondering if it's possible to make the image come out as a .GIF or .PNG image instead of a .PHP image. It might help you if you actually check out the feautre thing I made. Would it be possible to make it a .GIF or .PNG image instead?The feature: http://www.kingps3.com/ct/main.php
  8. Nevermind, got it figured out. Had to repeat the function twice in the code; one for the picture and one for the text.Thanks for all the help guys! Couldn't of done it without you!
  9. Alright, cool, it's working now. Only problem is the picture is supposed to have rounded edges with transparent corners and it shows up as a black background. How would I make it transparent?Here's the image: http://www.kingps3.com/ct/trophy.php?type=...t%20descriction
  10. I hate the learning process for PHP so much. lolWell, I downloaded the FreeType and put it on my server along with pulling a font from my computer (not sure if this is needed) and put it on my server.Now I changed the file that's trying to use it to this:<?$text = stripslashes($_GET['text']);header ("Content-type: image/png");$string = $text;$font = 2;$font_type = 'arial.ttf';$width = ImageFontWidth($font)* strlen($string) ;$height = ImageFontHeight($font) ;$im = ImageCreateFrompng("./gold.png");$x=imagesx($im)-$width ;$y=imagesy($im)-$height;$background_color = imagecolorallocate ($im, 255, 255, 255);$text_color = imagecolorallocate ($im, 255, 255, 255);imagettftext($im, $font, 0, $text_color, $font_type, $string);imagepng ($im);?>It still doesn't work. I really don't know what I'm doing wrong so help is appreciated.. again.Here's the link to the file: http://www.kingps3.com/ct/trophy.php?text=This%20is%20text!Oh, and as you can see at the URL, the image is being cancelled for some reason. The path for it is fine though
  11. Yeah, I saw those but was confused. I didn't understand why you need extensions to get fonts for that but not to get fonts for other code (say for instance a <p>'s font).Anyways, what extensions do I need?
  12. hey guys, i have this:<?$text = stripslashes($_GET['text']);header ("Content-type: image/png");$string = $text;$font = 2;$width = ImageFontWidth($font)* strlen($string) ;$height = ImageFontHeight($font) ;$im = ImageCreateFrompng("./gold.png");$x=imagesx($im)-$width ;$y=imagesy($im)-$height;$background_color = imagecolorallocate ($im, 255, 255, 255);$text_color = imagecolorallocate ($im, 255, 255, 255);imagestring ($im, $font, 52, 27, $string, $text_color);imagepng ($im);?>it pretty much just puts text on an image but i need to know how to change the font of the text (to like Arial or something). any help is appreciated!
  13. Ah thank you! I thought about what you said and looked in some of my PHP Include files to notice that one of the <font> tags wasn't closed. So I just closed it and it worked! Thanks!
  14. I'm using CSS on my site to color both my links and paragraph text (<p>). Links are working (have color) but my paragraph text isn't (JUST in Firefox). I really have no idea what I'm doing wrong. If you look at my site (KingPS3.com) in Firefox, the main text is white when it's supposed to be a light gray yet the links are working perfectly (dark gray). But if you look at the main text in Internet Explorer, it's the correct light gray color. Any help?Here's a snippet of my CSS.. p { padding: 10px 10px 10px 20px; display:block; color: #B8B8B8; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold}a { color:#888888; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;} And yes, all the text that's supposed to be light gray is wrapped in paragraph tags.Thanks.
  15. I have a MySQL database plus a user/membership system and I want my forums to use the same users. The user/membership system puts the users and other information on my MySQL database. Is there any forums out there that allow you to use YOUR database usernames on the forums? Thanks.
  • Create New...