Jump to content

Search the Community

Showing results for tags 'ajax search'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • WHMCS Beta Program
    • WHMCS 9.1 Beta Discussion
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
    • MarketConnect Partner Product Status Updates
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • News, Announcements & Blogs from WHMCS
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro's Topics
  • WHMCS Services Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Module Support
  • Zomex Club's Topics
  • 0100Dev Club's Topics
  • RactStudio Club's Topics

WHMCS Version

  • V8.13.x Hotfixes
  • V8.12.x Hotfixes
  • V8.11.x Hotfixes

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. May you please advise? I've got tons of notes and tabs, and I feel like I'm really close. If you would like to lend some of your time and wisdom, I would be most grateful. I'm looking to contribute my first community addon to WHMCS. I wish to query the tblknowledgebase table and return title and id into typeahead array that'll then open the echo in new tab / window. Did I say that right? https://i.imgur.com/zu27hyb.png This is where I'm at now: <?php $key=$_GET['key']; $array = array(); $con=mysql_connect("localhost","dbuser","dbpass"); $db=mysql_select_db("dbname",$con); $query=mysql_query("select * from tblknowledgebase where title LIKE '%{$key}%'"); // I just duped above line and replaced title with ID $query=mysql_query("select * from tblknowledgebase where id LIKE '%{$key}%'"); while($row=mysql_fetch_assoc($query)) { $array[] = [u]$row['title'][/u]; // missing the row ID stuff and concenate stuff } echo json_encode($array); ?> https://i.imgur.com/ZKC7D4t.png This is what I desire output of $array[]: <a href="knowledgebase.php?action=displayarticle&id={$kbarticle.id}" target="_blank">$row['title']</a> <a href="knowledgebase.php?action=displayarticle&id=$row['title']" target="_blank">$row['title']</a> Href stuff pulled from file: supportticketsubmit-kbsuggestions.tpl Starting tutorial: https://codeforgeek.com/2014/09/ajax-search-box-php-mysql/ keywords used during research • typeahead mysql fetch "link" + "href" • add href OR link to $array[] = $row[ • json_encode href • php concenate $row[' misc • concenate • mysql = deprecated? • mysqli = new? • http://www.codingcage.com/2016/12/autocomplete-search-with-href-link-php.html • http://www.discussdesk.com/autocomplete-search-in-php-mysql-json-with-navigation.htm • http://bit.ly/2nGCVGf • http://au1.php.net/json_encode • https://datatables.net/forums/discussion/28891/adding-hyperlink-to-each-row • https://github.com/bassjobsen/Bootstrap-3-Typeahead
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated