|
Тема |
Re: ne trygva link kym DB chrez PHP?id=x [re: croesus] |
|
Автор |
vlad (непознат
) |
|
Публикувано | 05.07.08 00:47 |
|
|
Blagodarq , croesus
izglejda s tova shte stane
samo che zasega poluchavam takava greshka:
Warning: Cannot modify header information - headers already sent by (output started at /home/www/mysite.com/service/phpmysql/config.php:2) in /home/www/mysite.com/service/phpmysql/action.php on line 10
a tova e moqt action.php
<?php
include 'config.php';
include 'opendb.php';
$result=mysql_query("select * from links where LinkID = '$_GET[LinkID]'");
$result_row = mysql_fetch_array ($result);
header('Location:' . $result_row["LinkURL"]);
mysql_query($sql);
include 'closedb.php';
?>
a tova e moqt config.php
<?php
//PHP Configuration
$dbhost = 'db.myhosting.com';
$dbuser = 'myname';
$dbpass = 'password;
$dbname = 'mydbname';
?>
Tova tuk podseshta li kakvo trqbva da se opravi?
Thanks
|
| |
|
|
|