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

Can't figure out the operator like BETWEEN, coma seperated value etc in advance query builder

Thread began 4/20/2020 8:48 am by Rokon | Last modified 4/20/2020 5:44 pm by Rokon | 198 views | 11 replies


Originally Said By: Ray Borduin
  That probably can't be done with the builder. Some complex queries still have to be written by hand.  

Dear Ray

Please give me an example of a query as like below;

$mainHadith = new WA_MySQLi_RS("mainHadith",$hadithbd,10);
$mainHadith->setQuery("SELECT hadithmain.HadithID, hadithmain.CheckStatus, hadithmain.BookID, hadithmain.chapterID, hadithmain.SectionID, hadithmain.HadithNo, hadithmain.ArabicHadith, hadithmain.ArabicHadithNew, hadithmain.BanglaHadith, hadithmain.EnglishHadith, hadithmain.HadithNote, hadithmain.HadithActive, hadithmain.HadithStatus, hadithbook.totalHadith, hadithbook.BookNameBD, hadithchapter.ChapterBG, hadithchapter.ChapterAR, hadithchapter.ChapterEN, hadithexplanation.explanation, hadithsource.SourceNameBD, hadithsource.SourceNameEN, hadithstatus.StatusBG, rabihadith.rabiBangla, rabihadith.rabiEnglish, hadithsection.SectionBD, hadithsection.SectionEN FROM hadithmain LEFT OUTER JOIN hadithbook ON hadithmain.BookID = hadithbook.BookID LEFT OUTER JOIN hadithchapter ON hadithmain.chapterID = hadithchapter.chapID LEFT OUTER JOIN hadithexplanation ON hadithmain.HadithID = hadithexplanation.hadithID LEFT OUTER JOIN hadithsource ON hadithmain.SourceID = hadithsource.SourceID LEFT OUTER JOIN hadithstatus ON hadithmain.HadithStatus = hadithstatus.StatusID LEFT OUTER JOIN rabihadith ON hadithmain.RabiID = rabihadith.rabiID LEFT OUTER JOIN hadithsection ON hadithmain.SectionID = hadithsection.SectionID WHERE hadithmain.HadithActive = 1 AND hadithmain.HadithNo = ? HAVING hadithmain.BookID = ? ORDER BY hadithmain.HadithNo ASC");
$mainHadith->bindParam("i", "".(isset($_GET['hadith'])?$_GET['hadith']:"") ."", "-1"); //WAQB_Param1
$mainHadith->bindParam("i", "".(isset($_GET['book'])?$_GET['book']:"") ."", "-1"); //WAQB_Param2

Here I need to filter the hadithmain.HadithNo by passing a GET value called $mainHadith->bindParam("i", "".(isset($_GET['hadith'])?$_GET['hadith']:"") ."", "-1"); //WAQB_Param1

I need to send search query like index.php?hadith=1,5,10 etc

And in another search I need to get result of in between value from the same filed of hadithmain.HadithNo

Thanks in advance

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





Ease of use


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