When you say it "dies", you should get some sort of an error status message. Make sure you're displaying error messages (E_ALL, maybe), and you should get something more useful.
-b. realm3 web applications [realm3.com] Information architecture, application development. phone: (917) 512-3594 fax: (440) 744-3559 On Wed, Dec 17, 2008 at 7:19 PM, Néstor <rot...@gmail.com> wrote: > I am passing a variable and value using the query method to myreport.php. > > I can see using phpinfo() the query string and the var and the value: > _GET["drange"]AND (proj_adv_date >= DATE_FORMAT(\'2008-12-17\',\'%Y-%m-%d\') > AND proj_adv_date <= DATE_FORMAT(\'2009-12-17\', \'%Y-%m-%d\')) > _SERVER["QUERY_STRING"]show=1&proj_owner=Engineering&drange=AND+%28proj_adv_date+%3E%3D+DATE_FORMAT%28%272008-12-17%27%2C%27%25Y-%25m-%25d%27%29+AND+proj_adv_date+%3C%3D+DATE_FORMAT%28%272009-12-17%27%2C+%27%25Y-%25m-%25d%27%29%29 > _SERVER["REQUEST_URI"]/opps/eco_reports/rep/uco_report.php?show=1&proj_owner=Engineering&drange=AND+%28proj_adv_date+%3E%3D+DATE_FORMAT%28%272008-12-17%27%2C%27%25Y-%25m-%25d%27%29+AND+proj_adv_date+%3C%3D+DATE_FORMAT%28%272009-12-17%27%2C+%27%25Y-%25m-%25d%27%29%29 > > > but when I put the following code in the program dies: > $drange = $_GET['drange']; > > I jjust discovered that if I change the variable to $xdrange the program > does nto stop > $xdrange = $_GET['drange']; > > What???? > > I need the variable to be $drange because it is a date range that I use to > create the query and this program calls itself. > > What could be causing the problem? What should I do to use this variable > $drange? > > Thanks, > > Nestor :-) > > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php