473,322 Members | 1,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

500 CGI error (session variables)

194 100+
Hi Everybody,

I am submitting a form to the paypal and then returning to a url. return to the url is successful means the code is workin properly. but at the return url im having this 500 CGI error and it also not containing any values in the session variables. as im getting records and updating records if the return is successfull from paypal depending upon the session variables.

this is working fine at my server where i hosted it. but at other server its not working and having the problem which i mentioned above. the same code is not working on the other server. the troubleshooting has also done with the hosting company and they said there is problem with the code not with the CGI or any other thing. now im failed to understand that one code is working fine at one server and its not working (no values in the session) on the other. what should i do now? please help me so i can get rid of this problem.

Expand|Select|Wrap|Line Numbers
  1. if ($_REQUEST['action']=='success' && $_REQUEST['someid']<>''){
  2. $order_id=$_REQUEST['someid'];
  3.  
  4. echo "<br />".$transection = "SELECT * FROM ".$GLOBALS['pre_tbl']."tran where id=".$id;
  5.  
  6. $transectionq = mysql_query($transection) or die(mysql_error());
  7. $transrow=mysql_fetch_array($transectionq);
  8. extract($transrow);
  9. $tid=$ticket_id;
  10. $qty=$no_tickets;
  11. //echo "<br />".$userid    = $_SESSION['username']; 
  12. echo "<br />".$user_id = "select * from ".$GLOBALS['pre_tbl']."user where email='$userid'";
  13. $user_id_rs = mysql_query($user_id)or die(mysql_error());
  14. $user_id_rows=mysql_fetch_array($user_id_rs);
  15. $user_id = $user_id_rows['id'];
  16. $first_name = $user_id_rows['first_name'];
  17. $last_name = $user_id_rows['last_name'];
  18. $user_name = $first_name." ".$last_name; 
  19. echo "<br />".$querycheckshoworartist="SELECT e.type,e.event_id,s.eid,s.tid,s.orderid FROM ".$GLOBALS['pre_tbl']."seats s,".$GLOBALS['pre_tbl']."events e where s.tid=$tid and e.event_id=s.eid LIMIT 1";
this is not full code but a part from the code. in the above code the session has nothing if it is displayed. so im not able to execute SQL and get the result. this website is currently hosted at IXwebhosting where it has the problem. while its working fine at my server. please tell me how i can get rid of it. thanking you.
Mar 6 '10 #1
0 1353

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
1
by: Karim M Ladhu | last post by:
I am having a little trouble with this... When trying to log in to my website via ASP, the local IIS host returns a page can not be displayed internal server error and starts complaining about...
4
by: Bryan Tang | last post by:
I built an ASP to search the content in index server. It is ok if search in English. Whenever I search in Chinese, I will got the following error message, CreateRecordset ?u?~ '80004005' ...
2
by: Ross | last post by:
I am trying to pass a datatable from a page to another page in a different frame. The user would see the results of a query in the first frame then could navigate through the second frame to a...
2
by: James Wallace | last post by:
I hope that someone can help me out there with this problem. I get an itermittant problem with our web page that occurs about once every 10 to 15 days where the only way to fix the problem is to...
5
by: dradcnn | last post by:
I built an ASP.NET application.The application was built using ASP initially. Recently we migrated to ASP.NET, but we didn't recode the script using .NET. We just add the aspcompat=true at each...
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
2
by: ras26 | last post by:
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called...
2
by: maansi.creations | last post by:
Service unavailable error comes randomly while accessing our website and gets alright in matter of seconds....Could some one tell the possible reasons for these to happen: i got a earlier...
4
by: Chronictank | last post by:
Hi, as a bit of background (and seeing as it is my first post :)) i am a complete newbie at perl. I literally picked it up a week ago to do this project as it seemed like the best choice for a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.