PHP/mySQL seeing double??

Zedric

NTFS Guru
Joined
Jan 12, 2002
Messages
4,006
#1
I think my PHP/mySQL is drunk... It's seeing double. I can't use phpMyAdmin since any SQL request I do (remove data, insert data, edit data) in a form will be doubled when submitted. I also found this problem when I installed phpBB. I added the attachment mod in order to attach files. Then I tried it. I wrote a post and attached a file (somewhat different procedure to this forum). The file showed as two files. I pressed Preview to look at the post. The posted showed the file four times inline. I pressed Submit. The post now had eight (!!) attached files inline. There was however just one post.

It seems the problem occurs when information in a form is submitted and used with the database.

WTF is this? I've tried reinstalling PHP and mySQL using apt-get, but it doesn't help. :confused:

The machine is the server in my sig (Zoidberg):
PHP 4.2.2
mySQL 3.23.56
Apache 2.0.40

Help? :(
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#2
that would be PHP being drunk I think. The MySQL and apache should be OK, dunno how to fix it though, maybe a recompile of PHP?
 

Zedric

NTFS Guru
Joined
Jan 12, 2002
Messages
4,006
#3
The thing is, if I recompile PHP it ends up in the totally wrong place in the file system afaik. Apache did anyway...
 

Zedric

NTFS Guru
Joined
Jan 12, 2002
Messages
4,006
#4
Ok, uninstalled and reinstalled PHP. No difference. A little example from phpMyAdmin here:







Annoying? Yes.
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#5
I cant think of anything else, the only way you could mess with the MySQL if you had to would be to write the SQL yourself then get phpMyAdmin to run it
 

X-Istence

*
Political User
Joined
Dec 5, 2001
Messages
6,498
#6
you have Red hat 8, but yet you are using apt-get? Am i confused here, but Debian has apt-get, RH has rpm's. Just install the RPM's.
 

Zedric

NTFS Guru
Joined
Jan 12, 2002
Messages
4,006
#7
Redhat also has apt-get nowadays. It uses RPM:s instead of Debian packages. Since I need to mess with dependancies and all when I install RPM:s manually I don't want to do that. apt-get handles that by itself.

I tried to install mySQL 4.10 by RPM but it wanted some libs that I had no idea where to find...
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
62,008
Messages
673,469
Members
89,031
Latest member
oso