Hej, jag vill ha den scripten med database: det kan jag säkert.. but i need you to explain the problem a bit more. I can't get enough of information from your previous contribution to fix a solution to the problem. To make connections to a database, in this case we take MySQL as a exampel, you can use the PHP Data Objects see (http://se2.php.net/manual/en/book.pdo.php) or MySQL-connection object see(http://se2.php.net/manual/en/book.mysql.php). database?
<?
{
echo 'it works for me';
} else {
echo 'error';
}
?>
med database så känns det bättre för att jag behöver ej adda tusentals coder på index.php, och kanske det tar mer tid att ladda eller hur?
tacksam för svarSv: database?
Sv: database?
The php-codes you have on a php-page, and the data that will represent the information you want to show vistitors resides in the database. When you say, link, what exactly are you talking about?
Is it a A-tag? Like <code>A link</code> or what?
Because the code in your question, looks more like a block of code..
like <code>
if($something=='something') {
// do this..
} else {
// do this..
}
</code>
Describe your problem more in detail, so far I can only get this information:
1. ) You want to use a database
2. ) You want to make the link in a database and not on the file. (Well save it in a database-table and then fecth it, when you want to use it.)