php signature

Started by MEGAMIND, Jul 11, 2018, 07:12 AM

Previous topic - Next topic

MEGAMIND

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..

<?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/

MEGAMIND


MEGAMIND

*bump* or atleast someone fix me up that php code

MEGAMIND


Namir


Resolved someone can lock dis topic .

!

Is it necessary to lock this topic?

Discord: zeus#5155

MEGAMIND

Quote from: ! on Jul 24, 2018, 12:54 PMIs 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