1 2 3 4 5 6 7 8 9 10 11 12
| mysql_select_db($database_PowerCMSConnection, $PowerCMSConnection);
$query_page_link = "SELECT *, CONCAT(ContentPageName,'?',UPPER(SUBSTRING(ContentPageName,1,1)),LOWER(SUBSTRING(ContentPageName,2,4)),'=',ContentPageSetOrder) as linkurl FROM pcms2_contents WHERE ContentRefID = 'content'";
$page_link = mysql_query($query_page_link, $PowerCMSConnection) or die(mysql_error());
$row_page_link = mysql_fetch_assoc($page_link);
$totalRows_page_link = mysql_num_rows($page_link);
$query_page_link = "SELECT *, CONCAT(ContentPageName,'?',UPPER(SUBSTRING(ContentPageName,1,1)),LOWER(SUBSTRING(ContentPageName,2)),'=',ContentPageSetOrder) as linkurl FROM pcms2_contents WHERE ContentRefID = 'content'";
$page_link = mysql_query($query_page_link, $PowerCMSConnection) or die(mysql_error());
$row_page_link = mysql_fetch_assoc($page_link);
$totalRows_page_link = mysql_num_rows($page_link);$colname_content = "-1";
if (isset($_GET['ContentID'])) {
$colname_content = (get_magic_quotes_gpc()) ? $_GET['ContentID'] : addslashes($_GET['ContentID']);
} |
Partager