A really strange problem which has me baffled

P

Paul

Hi,

I don't know if this problem is with JS, PHP or the the code..

http://www.smmp.salford.ac.uk/staff/music-index.shtml

The page lists and biogs are generated in PHP with a MySQL backend.
There are two sections under the green banner - a small list on the left
and the big list on the right. Same PHP generates the name and links
etc.

If you click on the top name on the left (King, David [Prof]), a JS
window appears with the correct details in. If you just place the mouse
over the link, the URL appears and it points to the right place.

Now, if you go to the biography bit on the right, put the mouse over the
link and it gives the same URL. Click on it and you go somewhere
completely different (different member of staff). However, if you open
the link in a new window, it goes to the right place.

This *only* happens with the person at the top of the biography lists on
the right hand side.

Okay, I know there are a couple of errors on the page (should the
DOCTYPE go before any php i.e.

<DOCTYPE ...>
<?php
..
{
?>
<html>
)

but I can't see a reason why the top person on the list should open to
some random person!

Any advice would be appreciated.

TTFN

Paul
 
P

Paul

Hi,

I know its not the problem you describe, but if I visit that page I get two
errors:

Unterminated string constant (script error)

then

Unable to connect to the database (message box)

and I don't see the links you described.

Dang - mysql server went down. Now up. Instead of music-index.sthml, use
media-index.shtml please.

TTFN

Paul
 
B

Brian Cryer

Paul said:
Hi,



Dang - mysql server went down. Now up. Instead of music-index.sthml, use
media-index.shtml please.

Seems to work as it should - I don't get the behaviour you described in your
original post. I'm clicking (or right click open) on the "King David
(Professor)" link in the right bit of the page and both take me to the same
page. Have I misunderstood your directions?

Just a thought - are you running any scripts on the page that might redirect
a visitor to another page? I only ask because i still get the script error
when opening the pages.
 
J

JDS

I don't know if this problem is with JS, PHP or the the code..

WEll, first of all, are you really using PHP for these pages?

Also, I don't see the problem you are describing. It could be a browser
cache issue, visible only to you. Try

1) a different browser or browsers

2) flushing your browser cache and reloading
 
P

Paul

Hi,
WEll, first of all, are you really using PHP for these pages?

The page calls the php function which generates just about everything
you see.

Thanks for the comments folks - I think I've fixed the problem now :)

TTFN

Paul
 
B

Beauregard T. Shagnasty

Paul said:
Hi,

I don't know if this problem is with JS, PHP or the the code..

http://www.smmp.salford.ac.uk/staff/music-index.shtml

Coupla other recommendations.

1. assign a background-color. I see my ugly default purple.
2. list the people's name by First Last.
(King David, king of what?)
you can still keep the alphabetical list the same:
# David King (Professor)
# Phil Brissenden
# Enrico Caporale
# Marriane Cliff
# Robin Dewhurst
# Dr. Peter Graham
etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top