FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Link the result of my database





hcaracol
Hi,
I create my database and when i make my search it's appear the result of course but i want to have a link to another database, how i can do this??,

Thanks
jmraker
If you want your program searching a 2nd database you'll have to be able to connect to it.

If you're going to add a link to search for "search term" on google, or yahoo, you'll need to use the search engine and see how they embed the search term in the search result page

for google it would be http://www.google.com/search?q=search+term

so
<?php

echo '<a href="http://www.google.com/search?q=' . htmlentities($searchTerm) . '">Search for ' . $searchTerm . ' on google</a>';

?>
Related topics
whats the error?
whats wrong?
date_format 'datetime' not working. why? [solved]
mysql wont delete [solved]
[help]BASE DE DATOS SENCILLA?
Frihost PHP Account
Vraag over PHP
script backup database
Get links from a database
Database connection class!
Build an online dictionary by PHP/MySQL
Implementing your database access in PHP as a layer.
ebsite Promotion Secret: How To Explode Your Website Sales
Programming links, info, and tutorials
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.