DeveloperSide.NET Forums
July 24, 2019, 01:35:29 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Apache/MySQL servers not passing variables to next page?!  (Read 8885 times)
0 Members and 1 Guest are viewing this topic.
LinuxRules
Member
*
Posts: 2


View Profile
« on: October 29, 2004, 08:06:47 AM »

Built the complete suite of programs as per the tutorial - everything working fine except for one thing - when you click on a link in a page that takes you to another page with results of an SQL query passed, the query string does not seem to arrive at the other page - any ideas?

example:
file1:
<a href="goto_next_page.php?showitem='12345'">Go to next page and pass '12345' to it</a>

file goto_next_page.php:
.
.
connect to mysql sever and database... (connects fine)
.
.
$sql_string = "SELECT * FROM sometable WHERE SomeTableVar = $showitem;";

Result displayed on next page:
Couldn't execute query - SELECT * FROM sometable WHERE SomeTableVar = ;


My variable named $showitem not passed it seems?!
Strange thing, this exact same code works on a Windows ME and XP box/setup without any problems!

Any ideas?
Thanx.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: October 29, 2004, 10:18:15 AM »

Maybe something related to the problem (register_globals, _GET[]) under...
http://forums.devside.net/viewtopic.php?t=506
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
LinuxRules
Member
*
Posts: 2


View Profile
« Reply #2 on: October 30, 2004, 09:11:11 PM »

Thanks Admin

Made the change to the .CONF file, rebooted the Apache and MySQL servers and that solved the problem - Thanks again.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!