<?php checkauthentication(); $sql = xhead("type='css'"); $count = mysql_num_rows($sql); if ($count != 0) { while ($xhead = mysql_fetch_object($sql)) { ?> <link href="<?php echo $xhead->src; ?> " rel="stylesheet" type="text/css" /><?php } } $sql = "SELECT * FROM xhead WHERE type = 'js'"; $sql = xhead("type='js'"); $count = mysql_num_rows($sql); if ($count != 0) { while ($xhead = mysql_fetch_object($sql)) { ?> <script language="javascript" src="<?php echo $xhead->src; ?> "></script><?php } }
function xhead_list() { return xhead("", "type,src"); }
<?php include "includes.php"; checkauthentication(); $ohead = xhead("src", "type = 'css'"); $nhead = mysql_num_rows($ohead); if ($nhead > 0) { while ($xhead = mysql_fetch_array($ohead)) { ?> <link href="<?php echo $xhead['src']; ?> " rel="stylesheet" type="text/css" /><?php } } $ohead = xhead("src", "type = 'js'"); $nhead = mysql_num_rows($ohead); if ($nhead > 0) { while ($xhead = mysql_fetch_array($ohead)) { ?> <script language="javascript" src="<?php echo $xhead['src']; ?> "></script><?php } }