Links not working in the whole page!

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
dada44
Forum Newbie
Posts: 3
Joined: Wed Mar 01, 2006 1:55 pm

Links not working in the whole page!

Post by dada44 »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Dear people, 

I need your help! 

I’ve got this page that was working good and suddenly none of the links are working anymore (neither the images nor the buttons or text).  
It doesn’t seem to be the JavaScript, as I’ve tested it without variables and it was fine. Now I’ve run out of ideas .. Anyone can give me a clue??? 

Thanks very much in advance! 

Here’s one of the links: 

THE QUERIES

Code: Select all

$stmt0 = "
                SELECT ptgr
                FROM class_a
                WHERE a_id='$a_idM'
                AND s_class_id='$s_class_id'
        ";
        $results0 = mysql_query($stmt0);

Code: Select all

$query = "
			SELECT * FROM s, s_class
			WHERE s_class.t_class_id = '$t_class_id'
			AND s_class.srm".$submission."cd = 'Y'
			AND s.s_id = s_class.s_id
			ORDER BY lname, fname
		";
THE FUNCTION

Code: Select all

function doitnow(a_id){

var chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';

var rN='';while(rN.length < 20){ rN+=chars.charAt(Math.round(Math.random() * (chars.length)))};

opennow = "submitonce.php3?rN="+rN+"&t_class_id=<? echo "$t_class_id";?>&a_id="+a_id;

	if (window[windownumW])		{		

			    if (!window[windownumW].closed)				{

				window[windownumW].focus();

				window[windownumW]=open(opennow, windownumW,"scrollbars, status, width=500,height=270");

				}else{

				window[windownumW]=open(opennow, windownumW,"scrollbars, status, width=500,height=270");				}

		}else{window[windownumW]=open(opennow, windownumW,"scrollbars, status, width=500,height=270");

	}

};

THE LINK

Code: Select all

	 <A HREF='javascript:doitnow($a_idM)'><IMG SRC='../images/submit.gif' ALT='Submit all at once' BORDER=0></A>

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Post Reply