Results 1 to 16 of 16
Jan 5, 2005, 03:08 #1
- Join Date
- Jul 2004
- Bedford, UK
- 0 Post(s)
- 0 Thread(s)
$_GET not recognised in SQL statements
I have a couple of SQL statements which I'm struggling with. I'm passing a variable called 'lea' in the url, but when I try and 'get' it using SQL it seems to ignore it.
I know the variable is set as if I print it to the screen it displays correctly.
The first statement is
select * from table where column = '".$_GET['lea']."'
The other statement is an insert
insert into table (site_id, site_name) values ('".$_GET['lea']."','".$_POST['sitename']."')
select * from table where column =