Hello, Here's the problem:
PHP & MySQL syntax problem.
7
Hello,
Here's the problem:
$_POST['location'] is being sent from a previous page.
Here's my code:
When I load the page, nothing shows up. If I change it to:
It seems to work just fine.
To test it, I was using:
.... nothing.
I'm still VERY NEW to php, but cannot figure it out.
Any advice is greatly appreciated.
Cheers,
Andy.
Here's the problem:
$_POST['location'] is being sent from a previous page.
Here's my code:
Code:
$query = ('SELECT * FROM curr_vacs WHERE job_location = "$_POST['location']"'); Code:
$query = ('SELECT * FROM curr_vacs WHERE job_location = "ATOWN"'); To test it, I was using:
Code:
$location="ATOWN";
$query = ('SELECT * FROM curr_vacs WHERE job_location = "$_POST['location']"'); I'm still VERY NEW to php, but cannot figure it out.
Any advice is greatly appreciated.
Cheers,
Andy.
- Earnie Boyd
- [ 1 ] Thanks
- newbim
- [1] reply
- Nochek
- Wack0
- [1] reply
- Earnie Boyd
- [1] reply
- SteveJohnson
- jassmee Banned
Next Topics on Trending Feed
-
7