%PDF- %PDF-
Direktori : /var/www/html/buggydubrovnik.com/prodaja/ |
Current File : /var/www/html/buggydubrovnik.com/prodaja/tripmail.php |
<?php $username ="buggydub_app"; $password ="wrap-61"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to mysql"); $selected = mysql_select_db("buggydub_app",$dbh) or die("Could not select exclusivecharterdbk"); mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'"); if (!ini_get('display_errors')) { ini_set('display_errors', 1); } $upit='select kontakt AS KONTAKT from Rezervacija WHERE IDIzlet IN (SELECT IDIzlet FROM Izlet WHERE datum > "1-1-2014" AND datum < "13-5-2014");'; $result = mysql_query($upit); if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; } $i=0;$poruka=""; while($row = mysql_fetch_row($result)) { echo $row; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body style="font-family:Verdana, Geneva, sans-serif; font-size:14px;"> <?php echo $poruka; ?> </body> </html>