Thread: My code Problem
View Single Post
  #1  
Old 20th October 2008, 17:12
al_ltoticmat al_ltoticmat is offline
Senior Member
 
Join Date: Oct 2008
Posts: 44
Default My code Problem
I fixed it.
I want to auto pm to users who get this transfer bonus.

but it occurs this.
SQL Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 2008-10-21 17:02:56, 'You receive money from ticc Value K\n', 0)' at line 1


Code:
$msg = sqlesc("You receive money from ".$CURUSER['username']." value ".$money." K");
				@mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $receiver, ". get_date_time() .", $msg, 0)") or sqlerr(__FILE__, __LINE__);

Last edited by al_ltoticmat; 22nd October 2008 at 08:32.
Reply With Quote