QUOTE(Sickness @ Oct 22 2007, 11:43 PM)

There is my script <code><?php
//----------------------------------------------------------------
//
// Search page with key word or just word
//
// search.php
//
//----------------------------------------------------------------
$mysql_host = 'localhost'; // enter your host name
$mysql_user = 'login'; // enter your login
$mysql_password = 'password'; // enter your password
$mysql_base = 'database name'; // enter your database name
//You sign in the database
$db = mysql_connect($mysql_host,$mysql_user,$mysql_password) or die ("connexion error");
//you select your database
mysql_select_db($mysql_base,$db) or die ("connexion error
base");
//search request
$req = mysql_query("SELECT * from your_table where mots_cles LIKE '%$_POST[searchword]%' Order by url Asc ") or die ("request error ".mysql_error());
//we count the result
$res= mysql_num_rows($req);
//we show the number of result
print ' There are '.$res.' for '.$searchword.' results <br>';
//----------------------------------------------------------------------
//We show the information by alphabetical order
while( $result = mysql_fetch_array($req))
{
print '<strong>'.$result['name'].'</strong><br / >';
print $result['description'].'<br />';
print'<a href="'.$result['url'].'">'.$rsult['url'].'</a><br / >';
print '-----------------------------------------------------------------'; // it's just a separation line
}//end of the while function
//we close the mysql connection
mysql_close();
?></code>
QUOTE(MrTouz @ Oct 23 2007, 09:34 PM)

np like i said... im french so i can read and write it

oops btw im not sure what to edit, well some spot i dont really understand, can you please enlight what i have to edit ? thanks....
soz for being so nooby... i really really suck at php... even tho im geting a bit better at reading... i still get confused sometimes :/
All the text in red are to edit,
just a question/juste une question MrTouz d'où tu vient de france québec etc..../from where are you french quebec etc....