Home Forums Classifieds GT Store Blogs Today's Posts Search Social Groups


Glock Talk
Welcome To The Glock Talk Forums.

Thread Tools Display Modes
Old 12-11-2005, 09:32   #1
Glock Bob
Snack Attack!!!
Glock Bob's Avatar
Join Date: Aug 2004
Location: Alabama
Posts: 1,076
PHP + Access problem

I'm working on a project for work wherein we can log the IP of the machines we work on (so as to start using static IPs). So far I've created a simple table to log the IPs and a few other bits of info. I can use PHP to view the entire table, however I cannot get it to pull out a specific records via any field. I'm using the following SELECT command:

SELECT * FROM IPinfo WHERE 'IP Address' = '$ipaddy'

The $ipaddy variable is a POST from another form (also PHP). I know it's getting the right variable as I can ECHO it on the body of the page. However, the IP nor any of the other info does not show up. I'd switch to MySQL but we already have Access on the server and I'd like to stick with that. Any suggestions?
In memory of Christopher James Roy, killed in action, November 28, 2005, and Eric Harless, taken by cancer April 29, 2006. We hardly knew you. May you each rest in peace.
Glock Bob is offline   Reply With Quote
Old 12-14-2005, 21:11   #2
David_G17's Avatar
Join Date: Oct 2002
Posts: 7,678
post the code you use to connect to the database.

enclose it in
{left bracket}php{right bracket}
echo "hello world"; // code
{left bracket}/php{right bracket}

so it's like:

PHP Code:
echo "hello world"// code 
i can probably help; i do a ton of PHP stuff at work.

edit to add:
However, the IP nor any of the other info does not show up.
doesn't show up in the database or on the screen?
"One handgun a month is too much."
"If you ask me, 12 handguns/year is too much."
"I'd be OK with one gun a year."
"We need the strong gun regs and enforcement Europe has."
-DU debates America's future 10/23/2005

Last edited by David_G17; 12-14-2005 at 22:16..
David_G17 is offline   Reply With Quote


Thread Tools
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

Forum Jump

All times are GMT -6. The time now is 01:22.

GT Wiki
GT Blogs
Social Groups
GT Store

Users Currently Online: 536
109 Members
427 Guests

Most users ever online: 4,634
Apr 18, 2015 at 3:37