Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $datastructure_uid = 0;
- $startpage = 1;
- while($datastructure_uid == 0 && $search_uid != 0) {
- $findit = mysql_query("SELECT pid, tx_templavoila_ds, tx_templavoila_next_ds FROM pages WHERE uid = $search_uid");
- if(mysql_num_rows($findit)>=1) {
- !$startpage ? $datastructure_uid = mysql_result($findit, 0, 2) : $startpage = 0;
- if($datastructure_uid == 0) $datastructure_uid = mysql_result($findit, 0, 1);
- if($datastructure_uid != 0) {
- $datastructure = mysql_query("SELECT dataprot FROM tx_templavoila_datastructure WHERE uid = $datastructure_uid");
- if(mysql_num_rows($datastructure) >= 1) {
- $dataprod = mysql_result($datastructure, 0, 0);
- $xmlstructure = t3lib_div::xml2array($dataprod);
- return $xmlstructure['ROOT']['dbttvdata'][$search_dbttvfield];
- }
- }
- $search_uid = mysql_result($findit, 0, 0);
- }
- else {
- $search_uid = 0;
- }
- }
- return '';
Advertisement
Add Comment
Please, Sign In to add comment