close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Possible Bug? Multiple dropdown menus created by DA leave <?php opening in place.

Thread began 7/25/2012 3:58 pm by Andrew Read | Last modified 8/05/2012 10:08 pm by Andrew Read | 1275 views | 10 replies |

Andrew Read

Possible Bug? Multiple dropdown menus created by DA leave <?php opening in place.

First off, let me say that I truly appreciate the quick and timely support from all of the folks at WebAssist and for the quick fixes and updates.

That said, let's move on to this new issue:

Using WADA to create a List and form with two dropdown menus (not dependent!) I receive the following error on the Insert and Update pages:

  Parse error: syntax error, unexpected '<' in ...  



Upon further investigation into the insert page at the specified line I find the following code:

php:
<?php
mysql_free_result
($WADAseason);
<?
php
mysql_free_result
($WADAday);
?>?>l>



In the Update page I find the following code:

php:
<?php
mysql_free_result
($WADAws_hours);
<?
php
mysql_free_result
($WADAseason);
<?
php
mysql_free_result
($WADAday);
?>?>?>l>



Anyway, that should be easy enough to figure out a solution to, just a few extranious parser open and closes left over.

Sign in to reply to this post

Andrew Read

Another bug, noticed before but not reported

I noticed this before but forgot to report it:

php:
<option value="<?php echo $row_WADAseason['SCRUBID']?>"<?php if (!(strcmp($row_WADAseason['SCRUBID'], (isset($_GET["invalid"])?ValidatedField("hourUpd","SCRUB"):"".$row_WADAws_SCRUB2["SCRUB"]."")))) {"selected=\"selected\"";} ?>><?php echo $row_WADAseason['SCRUB3']?></option>



This is missing the echo before the {"selected=\"selected\"";}

php:
<option value="<?php echo $row_WADAseason['SCRUBID']?>"<?php  if (!(strcmp($row_WADAseason['SCRUBID'],  (isset($_GET["invalid"])?ValidatedField("hourUpd","SCRUB"):"".$row_WADAws_SCRUB2["SCRUB"].""))))  {echo "selected=\"selected\"";} ?>><?php echo  $row_WADAseason['SCRUB3']?></option>



It has happened every time I have created a dropdown menu via WADA.

Sign in to reply to this post

Andrew Read

More impact than noticed initally

**NOTE: The code in question is actually being inserted in the middle of the closing html tag:

php:
</script></body>
</h>
<?php
mysql_free_result
($WADAws_equip_fs);<?php
mysql_free_result
($WADAefsStatus);<?php
mysql_free_result
($WADAefsClass);<?php
mysql_free_result
($WADAefsEtype);<?php
mysql_free_result
($WADAefsBrand);
?>
?>
?>
?>
?>tml>
Sign in to reply to this post

Jason ByrnesWebAssist

I am not able to reproduce this issue, I will start an incident so ray can look into it with you.

Sign in to reply to this post

Andrew Read

Also...

I will also add in this bit of info:

I am noticing a #1 in all of my dropdown menu code and I'm not sure what is does or where it is coming from, it is just before the "</select>":

php:
<select class="formMenufield_XLarge" name="fieldLabel" id="fieldLabel" onChange="hideServerError('fieldLabel_ServerError');">
<option value="">Choose one...</option>
<?php
do {  
?>
        <option value="<?php echo $row_WADAtableName['fieldID']?>"<?php if (!(strcmp($row_WADAtableName['fieldID'], (isset($_GET["invalid"])?ValidatedField("equipUpd","fieldLabel"):"".$row_WADAtableName["fieldLabel"]."")))) {echo "selected=\"selected\"";} ?>><?php echo $row_WADAtableName['fieldDesc']?></option>
        <?php
} while ($row_WADAtableNamemysql_fetch_assoc($WADAtableName));
  
$rows mysql_num_rows($WADAtableName);
  if(
$rows 0) {
      
mysql_data_seek($WADAtableName0);
      
$row_WADAtableNamemysql_fetch_assoc($WADAtableName);
  }
?>
#1</select>
<label for="fieldLabel" class="sublabel" >Brand<span class="requiredIndicator">&nbsp;*</span></label>
Sign in to reply to this post

Jason ByrnesWebAssist

please add this to the support incident so that ray can investigate.

Sign in to reply to this post

Andrew Read

OK, so the update is that the issue has been figured out, and the users can implement the fixes that I used above fairly easily... but it will be fixed in the next release. :)

Hope this helps someone else as well.

L8r.

Sign in to reply to this post

david390068Beta Tester

Cure

I am experiencing the same thing. If you wouldn't mind, can you share what was done to resolve this?

Sign in to reply to this post

Andrew Read

It is explained above, to make it more clear:

You will see something like this:

php:
</script></body>
</h>
<?php
mysql_free_result
($WADArecordset1);<?php
mysql_free_result
($WADArecordset2);<?php
mysql_free_result
($WADArecordset3);<?php
mysql_free_result
($WADArecordset4);<?php
mysql_free_result
($WADArecordset5);
?>
?>
?>
?>
?>tml>

Simply fix the closing HTML tag, remove all of the extra PHP parser open commands and everything after the last php parser close tag.

php:
</script></body>
</html>
<?php
mysql_free_result
($WADArecordset1);

mysql_free_result($WADArecordset2);

mysql_free_result($WADArecordset3);

mysql_free_result($WADArecordset4);

mysql_free_result($WADArecordset5);
?>


And remove all of the #1 from any of the option select menu lists:

php:
#1</select>



php:
</select>
Sign in to reply to this post

david390068Beta Tester

Thanks. I knew that part. But I don't want to have to do that on every page for the site I am building. I was hoping a solution was found in the databridge files to fix it from happening in the future.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...