$sql = "select * from ".$tblImages." Where cid=1 Order by image_order"; $rs = mysql_query($sql) or die (mysql_error()); $i=0; while( $row = mysql_fetch_array($rs)) { $autoid = $row['id']; //if id become 24 bwlo if condition. $title = $row['title']; $sub_title = $row['sub_title']; $textarea_top = $row['textarea_top']; $textarea_width = $row['textarea_width']; $images = $row['images']; $image_order = $row['image_order']; if($textarea_top !=''){ $_top =' top:'.$textarea_top.'px;'; }else{$_top ='';} if($textarea_width !=''){ $_width =' width:'.$textarea_width.'px;'; }else{$_width ='';} if ($autoid == 24) { echo " <a href="media_publications.php"> </a> ";// this is the page that i need to redirect. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)