<?php require_once('config.php'); require_once('include/functions.php'); // Is there a posted query string? if($queryString != '') { $queryString = secure_sql($queryString); // only perform queries if the length of the search string is greather than 2 chara
cters { $query = @mysql_query("SELECT artist, video_title, uniq_id FROM pm_videos WHERE artist LIKE '$queryString%' OR video_title LIKE '%$queryString%' LIMIT 10"); if($query) { { echo '<li onClick="fill(''.$result['artist'].' - '.$result['video_title'].'');"><a href="'.makevideolink($result['uniq_id']).'">'.$result['artist'].' - '.$result['video_title'].'</a></li>'; } } else { } } } ?>
Plik config.php
<?php //-- MySQL information --// $db_name = 'XXX'; // MySQL database name $db_user = 'XXX'; // MySQL username $db_pass = 'XXX'; // MySQL password $db_host = 'XXX'; //-- Email server info --// XXXXXXX XXXXXXX // ========================================================= // //-- MySQL Backup Directory Name --// require_once( ABSPATH.'include/settings.php'); } ?>
I gdy chcem cos wyszukac na stronie wyskakuje mi taki oto blad:
Warning: Cannot modify header information - headers already sent by (output started at /home/nickxxxxx/domains/xxxx.pl/public_html/ajax_search.php:1) in /home/nickxxxxx/domains/xxxx.pl/public_html/config.php on line 27