Raised This Month: $51 Target: $400
 12% 

[PAWNO] The best way of using MYSQL?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nedisor
New Member
Join Date: Jan 2013
Old 01-20-2015 , 17:55   [PAWNO] The best way of using MYSQL?
Reply With Quote #1

Hello guys!

I heard that mysql_tquery is better than mysql_query. I am trying to create a car system, but i am not sure how to use corectly mysql.

I am using now this format:

Code:
	mysql_query(1, "SELECT * FROM `carsconfig` WHERE `set` = 1",true);
	cache_get_data(rows, fields, 1);
	if(rows)
	{
		cache_get_row(0, 3, csavingstring, 1); PCID = strval(csavingstring);
	}
 	form
Can anyone show me how it should look when i am using mysql_tquery?

Can you explain me what is SQL injection and how can I prevent it?

P.S I have BlueG's plugin, version r39-2.

Last edited by nedisor; 01-20-2015 at 17:57.
nedisor is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode