close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Custom Code conversion from mySQL to mySQLI

Thread began 12/26/2021 2:45 pm by jo271221 | Last modified 12/27/2021 9:24 am by Ray Borduin | 307 views | 5 replies |

jo271221

Custom Code conversion from mySQL to mySQLI

strtolower(str_replace(' ', '-', trim

Complete code in private message

Sign in to reply to this post

Ray BorduinWebAssist

$row_SecurityAssisttbldirectorylistings['businessname']

becomes:
$SecurityAssisttbldirectorylistings->getColumnVal('businessname');

and so on for each recordset column reference.

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

jo271221

I must be missing something, I tried
SecurityAssisttbldirectorylistings->getColumnVal('businessname'); - color coding implied I needed the $, so I added it

$SecurityAssisttbldirectorylistings->getColumnVal('businessname');, unexpected ; error

Sign in to reply to this post

Ray BorduinWebAssist

This assumes your recordset is named: SecurityAssisttbldirectorylistings... also the semicolon should be removed whrever you have it... it should only be at the very end:

trim($SecurityAssisttbldirectorylistings('businessname');))

should be:
trim($SecurityAssisttbldirectorylistings('businessname')))

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

jo271221

I am still not getting in, I have pasted my failed attempt in the private message. Can you please clarify the very end and possibly copy my code and adjust and paste? Or I am happy to set up an appointment. I have several issues to go over.

One of the additional questions I have is regarding my include file. So this file we are working on is my navigation that has the member log in, log out, based on session variable. It is included on every page of my website. It is an acceptable practice to include the recordset as well as css style links on this include file.

I also have a 'server domain' code that I would like to have on this file.

So one include file for the navigation menu with my
Menu Links including log in, log out... based on session variable
Related recordset
Server domain code so links work from any directory
Style sheets so that each 'section' of the website can have unique colors.

Thank you

Sign in to reply to this post

Ray BorduinWebAssist

You are missing the: ->getColumnVal portion in several places. I think it should be:

<a href="<?php echo $serverDomain.'/hotpage/home/'.strtolower(str_replace(' ', '-', trim($SecurityAssisttbldirectorylistings->getColumnVal('businessname'))) . '.' . strtolower(str_replace(' ', '-', trim($SecurityAssisttbldirectorylistings->getColumnVal('firstname'))) . '.' . strtolower(str_replace(' ', '-', trim($SecurityAssisttbldirectorylistings->getColumnVal('lastname'))) . '.' .($SecurityAssisttbldirectorylistings->getColumnVal("id")); ?>"><img src="<?php echo($SecurityAssisttbldirectorylistings->getColumnVal("logo_img")); ?>"></a>

Go ahead and give me a call if you want to set up an appointment to go over some other things today.

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