Query string
Posted: Mon Jul 26, 2010 4:37 am
Hi,
For something so simple I cannot get it to work.
I have a page e.g. http://www.blah.com/send?invoice=12345
On this page I'm trying to grab the invoice id to use in a query. The code looks like:
But I'm getting the following error:
Fatal error: Function name must be a string
Any ideas on this? I'm relatively new to PHP so it's probably something easy.
For something so simple I cannot get it to work.
I have a page e.g. http://www.blah.com/send?invoice=12345
On this page I'm trying to grab the invoice id to use in a query. The code looks like:
Code: Select all
<?php
$invoice = $_GET('invoice');
echo $invoice;
?>
Fatal error: Function name must be a string
Any ideas on this? I'm relatively new to PHP so it's probably something easy.