php signature

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 634
php signature
«  »Last edited
sup everyone how can we create a signature like thijns code
i have tried this but gives me errors when i solve thos errors then the image displays but with no text or kills etc..

Code: [Select]
<?php
$servername 
"localhost";
$username "root";
$password "root1";
$db "vcmpdb";

// Create connection
$conn = new mysqli($servername$username$password$db);
// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);
}
//echo "connection successfull";

//$acc = "SELECT Name, IP, Level, Kills, Deaths, Cash, Bank, Joins, nogoto, WonLms, RandSpawn FROM Account";




if ( isset( $_REQUEST['nick'] ) )
{
$im  imagecreatefrompng("Signature_Background.png") or die("Cannot Create new GD image");
$stats  imagecolorallocate($im255208240);
$nick  imagecolorallocate($im25543178);
$font imageloadfont"Font.gdf" );
$sql  'SELECT * FROM Account WHERE Name = \''.addslashes$_REQUEST['nick'] ).'\'';


header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

foreach ($db->query($sql) as $row)
{
imagestring($im$font10037$_REQUEST['nick'], $nick) or die("Cannot place Text");
imagestring($im$font38010$row['Kills'], $stats) or die("Cannot place Text");
imagestring($im$font38035$row['Deaths'], $stats) or die("Cannot place Text");
imagestring($im$font38060, ( ( ( $row$row['Kills'] ] > ) && ( $row$Fields['Deaths'] ] > ) ) ? round($row$Fields['Kills'] ] / $row$Fields['Deaths'] ],2) : ), $stats ) or die("Cannot place Text");
}

}
?>
if someone wants to check the url so try here which is the output http://wno-host.ddns.net:90/sign/sign.php?nick=MEGAMIND  @EK.IceFlake   @Doom_Kill3R and heres the input query http://wno-host.ddns.net:90/sign/
Re: php signature
« Reply #2,  »
*bump* or atleast someone fix me up that php code

Namir

  • Newbie
  • Posts: 11
Re: php signature
« Reply #4,  »

Resolved someone can lock dis topic .

!

  • Sr. Member
  • Don't feel shy while zooming on h*r...
  • Posts: 369
Re: php signature
« Reply #5,  »
Is it necessary to lock this topic?

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 634
Re: php signature
« Reply #6,  »
Quote from ! on July 24th, 01:54 PM
Is it necessary to lock this topic?
nope as it is solved so its solved maybe someone may need help from this topic so he can ask it right here

so no need to lock