close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Lost in record filter

Thread began 4/27/2020 4:15 pm by Rokon | Last modified 4/29/2020 3:02 pm by Ray Borduin | 438 views | 4 replies |

Rokon

Lost in record filter

Hello

I am lost in a data filter situation and can't figure it out how to do it. Pls help me.

My situation is like as below;

I have a table where the data is like

suraid ---- aya
1 ---- 1
1 ---- 2
1 ---- 3
2 ---- 1
2 ---- 2
2 ---- 3

I need to query the result like 1:2,2:3 which means the first digit 1 should match with suraid and the second digit 2 should match with aya from the same row and so on and the with a coma separate it will look for next query value match in same way

My live url is new.hadithbd.com/quran/filter/index.php?id=1:2,2:3

Sign in to reply to this post

Ray BorduinWebAssist

You would have to hand code this. You would use the explode() function to break up the string into an array around the comma, then write a loop to go through that array and then use explode again to break up the strings on the colon.

Then you could loop on those values and build the appropriate WHERE clause to find the results.

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

Rokon

Originally Said By: Ray Borduin
  You would have to hand code this. You would use the explode() function to break up the string into an array around the comma, then write a loop to go through that array and then use explode again to break up the strings on the colon.

Then you could loop on those values and build the appropriate WHERE clause to find the results.  



Noted, seems it's not easy task for me :(

Sign in to reply to this post

Ray BorduinWebAssist

I've gone ahead and got this working for you. In the future I'd need you to purchase a premier support ticket for custom coding help like this.

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

Rokon

Originally Said By: Ray Borduin
  I've gone ahead and got this working for you. In the future I'd need you to purchase a premier support ticket for custom coding help like this.  



Really appreciate your support Ray. For sure I will. Thanks a lot. :)

Sign in to reply to this post

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