+ Reply to Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By wyedamnit
  • 1 Post By Livewire

Thread: Database Query PHP site template

  1. #1
    wyedamnit is offline x10Hosting Member wyedamnit is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    4

    Database Query PHP site template

    I'll be trolling the forums for an answer but I have to post to keep my account active.

    If anyone knows where i can find a PHP website template with database search function, please post links here.

    Thanks!
    dinomirt96 likes this.

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Database Query PHP site template

    I dun have any advise for the template stuff, but I can point out that you don't actually have to post to keep the account active. Just logging in is required; maybe browse a bit. We don't require posting though, thank GOD. Can you imagine the spam? :S
    karimirt47 likes this.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Database Query PHP site template

    Pick a template.. any template...

    and insert the following code where you want the search box to appear.
    Code:
    <script type="text/javascript">
    
    //Enter domain of site to search.
    var domainroot="www.mustite.com"
    
    function Gsitesearch(curobj){
    curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
    }
    
    </script>
    
    <form action="http://www.google.com/search" method="get" 
    onSubmit="Gsitesearch(this)">
    
    <p>Search Site:<br />
    <input name="q" type="hidden" />
    <input name="qfront" type="text" style="width: 200px" /> <input type="submit" value="Search" /></p>
    
    </form>
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  4. #4
    wyedamnit is offline x10Hosting Member wyedamnit is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    4

    Re: Database Query PHP site template

    Thanks for the feedback, especially Cybrax offering code. What I'm trying to do is provide search results for a MySQL database that I will create. I hope someone can offer code to do this.

    Thanks!

  5. #5
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Database Query PHP site template

    Have you tried searching Google for "PHP MySQL full text search" (without the quotes)? The top answer is this little gem from the good folks at Zend. Keep in mind that full-text indexing is "expensive" in terms of both space and time -- it's something that you should do before there's a lot of content to worry about, particularly if you're running in an environment with tight user constraints on resources.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

+ Reply to Thread

Similar Threads

  1. Database, MySQLl, PHP, site template, blog = Oh GOD!
    By luca85 in forum Programming Help
    Replies: 11
    Last Post: 06-10-2011, 09:00 AM
  2. Replies: 0
    Last Post: 11-06-2010, 12:10 PM
  3. Replies: 4
    Last Post: 09-02-2010, 11:02 PM
  4. Replies: 5
    Last Post: 03-21-2010, 06:53 PM
  5. query about database size
    By crackingahed in forum Free Hosting
    Replies: 9
    Last Post: 08-17-2009, 05:02 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers