Jump to content

kevincon

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kevincon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I fixed it, There was a variable error in my "foreach".
  2. http://server.kevincon.com/ClanNV/blog/view.php?blog=2# I made the content into an array, the fields that need to match right now are c_id_1 and c_id_2
  3. For some reason this doesn't work. It doesn't show up as an image, except when i save it to the desktop it shows the image... <?php require("config.php"); if(isset($_GET['p'])) { $Id = $_GET['p']; $Id = mysql_real_escape_string($Id); $steam = mysql_query("SELECT * FROM users WHERE ID='$Id'") or die ("Error in query".mysql_error()); if (mysql_num_rows($steam) > 0) { while($row = mysql_fetch_array($steam)) { $username = $row["username"]; $money = $row["money"]; } } $text = $username." Money: ".$money." ClanNV.com"; $my_img = imagecreate( 450, 25 ); $background = imagecolorallocate( $my_img, 0, 0, 0 ); $text_colour = imagecolorallocate( $my_img, 255, 255, 255 ); imagestring( $my_img, 3, 100, 8, $text ,$text_colour ); imagesetthickness ( $my_img, 5 ); header( "Content-type: image/jpeg" ); imagejpeg( $my_img ); imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); }else{ $my_img = imagecreate( 450, 25 ); $background = imagecolorallocate( $my_img, 0, 0, 0 ); $text_colour = imagecolorallocate( $my_img, 255, 255, 255 ); imagestring( $my_img, 3, 200, 8, "No user defined",$text_colour ); imagesetthickness ( $my_img, 5 ); header( "Content-type: image/jpeg" ); imagejpeg( $my_img ); imagecolordeallocate( $text_color ); imagecolordeallocate( $background ); imagedestroy( $my_img ); } ?> Help? Also how can i write text over a jpeg I can't seem to get it... I used imagecreatefromjpeg.
  4. I'm using the query SELECT * FROM blog_comments WHERE c_id_1='$b_is_1' My problem is... $b_id_1 contains a set of numbers that are the exact same as the numbers on multiple rows in blog_comments, on the field c_id_1. When i use echo "<div>".$row["username"]."</div>"; It should show me every row with that i'm calling, but it only shows me one row. I want to be able to get info from multiple rows that share the same info on the field i'm calling. How can I do this?
×
×
  • 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.