php GET function - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-19-2011, 06:20 AM   #1 (permalink)
Junior Member
 
Join Date: Aug 2011
Posts: 1
Question php GET function

Hello,
please can you tell me, why it do not go??

if (isset($_GET["NUMBER"])) {

$NUMBEER=mysql_real_escape_string($_GET['NUMBER']);
$querys=mysql_query("SELECT * FROM __table__ WHERE ID='$NUMBEER'");
($rou = mysql_fetch_array($querys));

And site, where i am is mysite.com/index.php?id=phpfile
this go normaly... but
mysite.com/index.php?id=phpfile&NUMBER=2
it dont go...why??, is it GET function?


THANK YOU FOR HELP..and sorry for bad english
CarrioS is offline  
Sponsored Links
Old 09-05-2011, 09:19 AM   #2 (permalink)
Super Moderator
 
ameerulislam's Avatar
 
Join Date: Dec 2010
Location: Dhaka
Posts: 447
Default Re: php GET function

thread moved, please post in appropriate places.
ameerulislam is offline  
Old 09-05-2011, 10:35 PM   #3 (permalink)
Junior Member
 
Join Date: Sep 2011
Posts: 23
Default Re: php GET function

Hi CarrioS,

What error is being displayed? Put the following two lines before the lines of code you provided and that will turn on error display and errors will be outputted onto the page. The errors are usually pretty explanatory and help to solve issues.

Quote:
ini_set('display_errors','On');
ini_set('error_reporting', E_ALL);
hoodle is offline  
Old 09-16-2011, 03:46 PM   #4 (permalink)
Junior Member
 
Join Date: Sep 2011
Location: Long Islanf, NY, USA
Posts: 33
Default Re: php GET function

With mysite.com/index.php?id=phpfile, $_GET["NUMBER"] isn't set, so none of the code between
if (isset($_GET["NUMBER"])) {
and
}
runs. mysite.com/index.php?id=phpfile&NUMBER=2 sets $_GET["NUMBER"], so the code runs. Why it doesn't do what you want is another question. We have to know what it's doing (error messages) or not doing (displaying something), and we might have to see the rest of the code (the error may be further down).
Rukbat is offline  
Old 09-18-2011, 08:00 AM   #5 (permalink)
Regular User
 
Tharaka Deshan's Avatar
 
Join Date: Jan 2010
Location: Galle, Sri Lanka
Posts: 14
Default Re: php GET function

I cannot see any problem with the GET.
So if any issue happened, the problem should be with the database.

CarrioS, what did you mean by "it dont go..." , wasn't it show you an error message?
Tharaka Deshan is offline  
Old 09-18-2011, 08:36 AM   #6 (permalink)
Super Moderator
 
ameerulislam's Avatar
 
Join Date: Dec 2010
Location: Dhaka
Posts: 447
Default Re: php GET function

Looks like the OP abandoned the thread. I'm closing it for now, ask me to reopen if you return back.
ameerulislam is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 05:00 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting