Page 1 of 1

Prepare statement in MySQL doesn't work

Posted: Wed Sep 02, 2009 2:26 pm
by zenon
Hello.

I have MySQL 4.1 and i'm trying to use:

Code: Select all

PREPARE stmt_name FROM 'SELECT * FROM hello WHERE id= ?';
SET @test_parm = 1;
EXECUTE stmt_name USING @test_parm;
DEALLOCATE PREPARE stmt_name;
but unfortunately i get no result.

I want to use this way for MySQL injection.

Any help please?