SA-MP Forums Archive
[Tutorial] Creating dynamic signatures using PHP and MySQL. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Creating dynamic signatures using PHP and MySQL. (/showthread.php?tid=301435)

Pages: 1 2 3 4


Re: Creating dynamic signatures using PHP and MySQL. - Unknown123 - 06.12.2011

Quote:
Originally Posted by Nodroz
View Post
Are you loading the correct information from your mysql database ?
yes.


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 06.12.2011

Quote:
Originally Posted by Unknown123
View Post
yes.
We fixed on teamviewer. In case there is still something not clear, just pm me.


Re: Creating dynamic signatures using PHP and MySQL. - Unknown123 - 06.12.2011

Quote:
Originally Posted by Nodroz
View Post
We fixed on teamviewer. In case there is still something not clear, just pm me.
yes, thanks. is it possible to do this with SQLite too? or just MySQL?


Re: Creating dynamic signatures using PHP and MySQL. - Djankaa - 06.12.2011

Question : Could i make something like this with SQLite ?


Re: Creating dynamic signatures using PHP and MySQL. - Biesmen - 07.12.2011

Nodroz, could you fix this?
This is an error many users get:
PHP Notice: Undefined variable: i in C:/Users/blabla on line (the line which stores the MYSQL data)
The error is at a line that stores the MYSQL data in a variable
PHP Code:

$Kills
=mysql_result($result,$i,"Kills");
    
$Deaths=mysql_result($result,$i,"Deaths"); 
You have to define "$i".

(I can't do that because I am not really good with PHP)


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 07.12.2011

Guys, sorry, but I don't have time right now to answer your questions. My exams are started and I'm kind of short in time.

I'll take a break sooner or laater, then I'll look at your problems. Sorry for the delay!

Regards,
Nodroz


Re: Creating dynamic signatures using PHP and MySQL. - #marcus. - 07.12.2011

Tutorial is great, helped me alot!

Keep up the good work!


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 09.12.2011

Sorry for the delay, but I have updated my tutorial.

I've implented that if a type in a username that doesn't exist, it'll give an error.


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 10.12.2011

Quote:
Originally Posted by Zonoya
Посмотреть сообщение
too bad i dont know any free forums that can use PHP D:
Hmm, how you mean? The signature provided with the php code is converted to a .png image, which can be used everywhere using the [IMG]mypicture[/IMG] tags.

I'll try to search some information about the .ini system, once I'm experienced enough with that, I will make another tutorial.


Re: Creating dynamic signatures using PHP and MySQL. - Zonoya - 10.12.2011

no i mean sites i can use PHP with lolz i haven't found any yet and WAMP crashes on me D:


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 10.12.2011

There are plenty of free webhosting services which suppport php.


Re: Creating dynamic signatures using PHP and MySQL. - Hiddos - 10.12.2011

I've got a question about some of your code:
PHP код:
mysql_connect($host,$username,$password); // Connection to the database. 
@mysql_select_db($database) or die( "Unable to select database. Be sure the databasename exists and online is."); 
What does the '@' symbol do?


Re: Creating dynamic signatures using PHP and MySQL. - Zonoya - 10.12.2011

can u point me to any Nod


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 10.12.2011

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
I've got a question about some of your code:
PHP код:
mysql_connect($host,$username,$password); // Connection to the database. 
@mysql_select_db($database) or die( "Unable to select database. Be sure the databasename exists and online is."); 
What does the '@' symbol do?
Hello,

The @ doesn't do anythign actually, so it's unnecesarily. Sorry, I guess I was somewhere else with my thoughs.


Re: Creating dynamic signatures using PHP and MySQL. - Zonoya - 10.12.2011

Im still after a site with PHP anyone help me?


Re: Creating dynamic signatures using PHP and MySQL. - Zonoya - 11.12.2011

never mind i found one xD


Re: Creating dynamic signatures using PHP and MySQL. - XFlawless - 11.12.2011

Quote:
Originally Posted by Nodroz
Посмотреть сообщение
Hello,

The @ doesn't do anythign actually, so it's unnecesarily. Sorry, I guess I was somewhere else with my thoughs.
I think you should completely understand PHP, before making tutorials. @ is used to suppress errors given out by that function.


Re: Creating dynamic signatures using PHP and MySQL. - Nodroz - 11.12.2011

Quote:
Originally Posted by XFlawless
Посмотреть сообщение
I think you should completely understand PHP, before making tutorials. @ is used to suppress errors given out by that function.
Well, yeah, I have to admit I'm kind of new to PHP. However, I tried to share my skills to the community.


Re: Creating dynamic signatures using PHP and MySQL. - gamer931215 - 12.12.2011

This is a hard way, but a good way to learn it
The community is now giving you feedback which makes you learn new things again,

btw i never used/knew that "@" supresses errors lol


Re: Creating dynamic signatures using PHP and MySQL. - TheArcher - 12.12.2011

Beatiful, i'm gonna check this out.

Edit: What "@" is used for?