Jump to content

Parvinder

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Parvinder

  1. I made a mysql query in php as given below $Q = "SELECT length, width FROM statxyx WHERE siteid='$siteid'"; $R = mysqli_query($DB,$Q); //start loop //while or foreach while($row = mysqli_fetch_assoc($R)){ echo "['7C6Buh',{$row['length']},{$row['width']}],\r\n"; } The output is like ['7C6Buh',37.4192,-122.0574], ['7C6Buh',34.147,-118.1392], ['7C6Buh',23.7231,90.4086], ['7C6Buh',39.9543,-75.1657], ['7C6Buh',32.7787,-96.8217], ['7C6Buh',37.4192,-122.0574], But i want to have last row without comma. How to do this. Thanks in advance.
  2. I use below code to show png image from external website with variable text string on it. it works fine. But i want to change the text size, make it bold and font family of this text string with centered text. The code is $my_img = imagecreatefrompng("http://example.com/images/widget.png"); $text_colour = imagecolorallocate( $my_img, 255, 255, 255 ); imagestring( $my_img, 5, 80, 14, "$count_user", $text_colour ); $angle = 90.0; $rotated = imagerotate($my_img, $angle, 0); header( "Content-type: image/png" ); imagepng( $rotated ); imagecolordeallocate( $text_color ); imagedestroy( $rotated ); Kindly help. Thanks in advance.
×
×
  • 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.