| Code:
|
$Id: music_list.php,v 2.0 2004/06/14 23:52:23 cfmanager Exp $
|
| Code:
|
// --------------------------------
// Do query now!
// --------------------------------
|
| Code:
|
if ( !isset($soungs_per_page) || ($soungs_per_page == 0))
{
$soungs_per_page = 20;
}
if (isset ($_GET['start']))
{
$start = intval($_GET['start']);
}
elseif (isset ($_POST['start']))
{
$start = intval($_POST['start']);
}
else
{
$start = 0;
}
$limit_sql = ($start == 0) ? $soungs_per_page : $start . ',' . $soungs_per_page;
|
| Code:
|
WHERE s.song_title LIKE '" . str_replace("\'", "''", $search) . "'
|
| Code:
|
WHERE s.song_title LIKE '%" . str_replace("\'", "''", $search) . "%'
|