close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dlookup equivalent in php

Thread began 3/07/2022 7:12 am by birdscreen398247 | Last modified 3/08/2022 12:00 pm by Ray Borduin | 289 views | 5 replies |

birdscreen398247

Dlookup equivalent in php

Is there an equivalent of the VBA function DLookup() in php?

Sign in to reply to this post

Ray BorduinWebAssist

Are you trying to get data from an Access database?

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

birdscreen398247

No. Its just that I use dlookup a lot in MSAccess applications on my computer, and was wondering if there was an equivalent command in PHP for use in websites? Any links I could find for that question on Google either didn't answer the question or were gone.

Sign in to reply to this post

Ray BorduinWebAssist

What exactly are you trying to do? I'm not that familiar with Dlookup() but if you describe what you are using it for, then I can probably tell you how to do the same thing in php.

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

birdscreen398247

DLookup finds a single piece of data without having to create a recordset, etc.

For instance:

MVariable = DlookUP("Field you are looking for", "Table", "Criteria")

So you can retrieve this data with a single line of code.

It is a VERY handy function.

In PHP/SQL, it takes 5 lines of code (basically creating a query targeted on one field in one record)

I was just trying to see if there was a similar structure in PHP that did the same thing in one line.

Sign in to reply to this post

Ray BorduinWebAssist

No, you would have to create a recordset. I'm sure you could create a function that does it. I could help with that if you wanted so you could do it in a single line of code.

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