close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Syntax Error Data Bridge 234

Thread began 4/09/2019 12:21 pm by john70964 | Last modified 4/10/2019 12:50 pm by Ray Borduin | 494 views | 5 replies |

john70964

Syntax Error Data Bridge 234

Hello Ray
I have updated some pages for DataBridge 234 but am getting some syntax errors
the error message is
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in
C:\xampp\htdocs\boatsforsalenow_mysqli\BoatResults.php on line 6
Would you please have a look at the files attached to see where I am going wrong?
Thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

Line 6 has:

if (isset($_POST["WADbSearch1"])) && ($_POST["WADbSearch1"]) {


it should be:

if (isset($_POST["WADbSearch1"]) && ($_POST["WADbSearch1"])) {
Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Thanks Ray
That cured line 6
On Line 77 this appears $queryString_*** No Recordset Found = "";
This also applies to 88, 91, 201,

Sign in to reply to this post

Ray BorduinWebAssist

That section of code isn't used in MySQLi... you can delete lines 59-92.

On lines 191-201, that appears to be leftover code from mySQL. The MySQLi version is different. I'd just delete the <a> tag around the text and re-apply the server behaviors to add the navigation back.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Hello Ray
I carried out those changes but ran into some more errors.

On the local machine I am getting some errors (images attached) showing,
but the same pages look different on the remote server.

Many thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the MySQLi conversion didn't update all of the references to MySQLi on the page.

Every time you have: <?php echo $row_rsSearch['YourColumnName']; ?>
It should be: <?php echo $rsSearch->getColumnVal('YourColumnName'); ?>

Usually that update is done automatically when you update the recordset, so I'm not sure why it didn't work properly this time.

It also didn't update the first row, last row, total rows text and didn't remove the free_result() reference on the page. These can be updated manually at this point by re-adding them from the MySQLi server behaviors and removing the old code. You can also delete lines 19-53.

You can make those changes manually at this point, or if you have the original version of this page and update the recordset all of these should be updated automatically as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...