473,403 Members | 2,071 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,403 software developers and data experts.

Help in understanding php

Hi i have encountered a strange problem to which i am not able to
figure out!.

I have two separate databases, 1st stores user details, 2nd stores
messages, they are on different ip address and both servers are
synchronized by load balancer. The php script works fine except for
this unique situation where the script is not able to display username
and email address in textboxes, but it does display user number and
associated message.

My question is why is php refusing to display user name and email when
it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!

Are there any bugs in PHP in which this situation can occur or is it
something else?

All your help is appreciated.

Thanks
undbund

Dec 26 '06 #1
5 1224
Message-ID: <11*********************@42g2000cwt.googlegroups.c omfrom
undbund contained the following:
>My question is why is php refusing to display user name and email when
it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!

Are there any bugs in PHP in which this situation can occur or is it
something else?
Leaving aside the question of why you are using two databases, instead
of two tables this sounds like either a coding or html problem.

Either way, unless you have a good reason, I'd consider putting related
data in the same database.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Dec 26 '06 #2
Hey thanks for your reply, what do you thinks could go wrong in terms
of coding or html, as I have mentioned, this is the only bit of data
that is giving problems, the script works flawlessly with 99.99% of the
data in the database. I have examined the data in the databases, they
are just like any other bits of data. No fancy characters, etc!!

Thanks
undbund

Geoff Berrow wrote:
Message-ID: <11*********************@42g2000cwt.googlegroups.c omfrom
undbund contained the following:
My question is why is php refusing to display user name and email when
it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!

Are there any bugs in PHP in which this situation can occur or is it
something else?

Leaving aside the question of why you are using two databases, instead
of two tables this sounds like either a coding or html problem.

Either way, unless you have a good reason, I'd consider putting related
data in the same database.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Dec 26 '06 #3
undbund wrote:
Hey thanks for your reply, what do you thinks could go wrong in terms
of coding or html, as I have mentioned, this is the only bit of data
that is giving problems, the script works flawlessly with 99.99% of the
data in the database. I have examined the data in the databases, they
are just like any other bits of data. No fancy characters, etc!!

Thanks
undbund

Geoff Berrow wrote:
>Message-ID: <11*********************@42g2000cwt.googlegroups.c omfrom
undbund contained the following:
>>My question is why is php refusing to display user name and email when
it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!

Are there any bugs in PHP in which this situation can occur or is it
something else?
Leaving aside the question of why you are using two databases, instead
of two tables this sounds like either a coding or html problem.

Either way, unless you have a good reason, I'd consider putting related
data in the same database.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Well then at this point I would use a debugger to track the problem
down. I use Xdebug and tswebeditor to step thru the code line by line in
problem blocks of code. Not sure if you are using a debugger. You could
look at a free one here: http://tswebeditor.at.tf

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Dec 26 '06 #4
Hey thanks for all your help and contributions. I have found out that
there was a problem with the load balancer, it was not synchronizing
the databases properply.

Thanks for all your help
undbund

IchBin wrote:
undbund wrote:
Hey thanks for your reply, what do you thinks could go wrong in terms
of coding or html, as I have mentioned, this is the only bit of data
that is giving problems, the script works flawlessly with 99.99% of the
data in the database. I have examined the data in the databases, they
are just like any other bits of data. No fancy characters, etc!!

Thanks
undbund

Geoff Berrow wrote:
Message-ID: <11*********************@42g2000cwt.googlegroups.c omfrom
undbund contained the following:

My question is why is php refusing to display user name and email when
it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!

Are there any bugs in PHP in which this situation can occur or is it
something else?
Leaving aside the question of why you are using two databases, instead
of two tables this sounds like either a coding or html problem.

Either way, unless you have a good reason, I'd consider putting related
data in the same database.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

Well then at this point I would use a debugger to track the problem
down. I use Xdebug and tswebeditor to step thru the code line by line in
problem blocks of code. Not sure if you are using a debugger. You could
look at a free one here: http://tswebeditor.at.tf

--
Thanks in Advance... http://ichbin.9999mb.com
IchBin, Pocono Lake, Pa, USA
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Dec 26 '06 #5
>>My question is why is php refusing to display user name and email when
>>it is stored successfully in the database and yet it displays user
number from 1st database and message from 2nd database.

I have tested the script with other username and email and it works
fine! But it doesn't work with this particular user!
Does your code depend on PHP sessions or cookies? You said you've
got two servers on two different IP addresses. Cookies set by one
IP may not be sent back to the other IP, depending on domain and
browser settings. If this is the problem, it's not a PHP bug, it's
a browser security feature.

Or maybe I'm completely off base here. You didn't show any code.

Dec 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: What-a-Tool | last post by:
Dim MyMsg Set MyMsg = server.createObject("Scripting.Dictionary") MyMsg.Add "KeyVal1", "My Message1" MyMsg.Add "KeyVal2", "My Message2" MyMsg.Add "KeyVal3", "My Message3" for i = 1 To...
2
by: Mike | last post by:
Hey guys, need some help understanding some things that maybe someone can explain or clarify it a little better then a text book. Here is my understanding so far: Class - basically a shell for...
1
by: Naren | last post by:
Victor Bazarov <v.Abazarov@comAcast.net> wrote: >Naren wrote: >> MyServer class conatins a list of Mysock class. >> >> class Myserver >> { >> private: >> list<Mysock> L1; >> }; >>
2
by: Chua Wen Ching | last post by:
Hi, Is there any place that i can learn the basics of IL and using ILDASM. I saw the internet but there is not much to see and read. Maybe i didn't search deep enough. I prefer if someone can...
26
by: Bail | last post by:
I will have a exam on the oncoming friday, my professor told us that it will base upon this program. i am having troubles understanding this program, for example what if i want to add all the...
6
by: varkey.mathew | last post by:
Dear all, Bear with me, a poor newbie(atleast in AD).. I have to authenticate a user ID and password for a user as a valid Active Directory user or not. I have created the IsAuthenticated...
6
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to...
5
Reika
by: Reika | last post by:
Hello, I need help understanding some things in programming. I'm taking a high school level programming course, however my teacher is less than helpful in explaining or even understanding the...
4
by: Andrew Taylor | last post by:
Hi, I've been using PHP for a long time, I have designed and developed a number of mid-range systems. I've always used a procedural approach. I fully understand the concept of OO, I know all the...
2
by: Greg Corradini | last post by:
Hello All, A few weeks ago, I wrote two scripts using mx.ODBC on an Access DB. Among other things, both scripts create new tables, perform a query and then populate the tables with data in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.