|
Posted by Justin Koivisto on 11/23/05 00:10
Ian Davies wrote:
>
> Parse error: parse error, unexpected T_VAR in
> e:\domains\i\iddsoftware.co.uk\user\htdocs\QuestionDB\Questions.php on line
> 42
>
<snip>
> function Fill_Sub()
> {
>
> <?PHP
This is in the wrong spot...
> var mainselect = document.FormName.MainCategory;
> var subselect = document.FormName.SubCategory;
>
> if( mainselect.options[mainselect.selectedIndex].value != 0 ) {
>
> subselect.length = 0;
> }
This is where the "<?php" should be...
> $Query = "SELECT SubjectNo, SubjectDesc, StatusID FROM Subjects WHERE
> StatusID = 1 ORDER BY SubjectDesc ASC";
> $Result = mysql_query($Query, $conn );
<snip>
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|