PConnect(CONST_DBHOST,CONST_DBUSER,CONST_DBPASSWORD,CONST_DATABASE) or exit("Connection Failed..."); function clean_title($thetitle) { $title1 = str_replace("\"","",str_replace(":","",str_replace(",","",$thetitle))); $title2 = str_replace("&","",str_replace("!","",str_replace("$","",str_replace("'","",str_replace(".","",$title1))))); $title3 = str_replace(")","",str_replace("(","",str_replace("?","",$title2))); return str_replace(" ","-",$title3); } $url = "http://www.newwaveindustries.com/"; //print_r($_GET); //print_r($_REQUEST); ?> CT Web Design Company Android and iPhone App Development Connecticut
User Login:
Please you enter your user information to login to your personalized New Wave Industries, Inc. control panel.

News

Company > News


execute($strSQL); if(!$rs->EOF) $myData = $rs->fields; else $myData = NULL; if($myData["file"]) $purl = CONST_WEBSITEURL . "data/phpThumb/phpThumb.php?src=../news/" . $myData["file"] ."&w=200&far=0"; //$purl = CONST_WEBSITEURL . "data/news/" . $myData["file"] .""; echo $myData["theday"] . "
"; echo "".$myData["name"]."

"; if($myData["url"]) echo ""; if($myData["file"]) echo ""; if($myData["url"]) echo ""; echo "
"; echo $myData["text1"]; echo "
Click Here to Return

"; echo ' Bookmark and Share '; echo "
"; } else { $strSQL = "SELECT date_format(date,\"%W, %M %D, %Y\") as theday,id,name,text1,file,url,title,shortdesc,active,companyid FROM newwave_news WHERE (companyid='1') AND (active) ORDER BY date DESC"; $rs = $conn->execute($strSQL); if(!$rs->EOF) $myData = $rs->getrows(); else $myData = NULL; if(count($myData)) { echo "
"; foreach($myData as $story) { if($story["file"]) $purl = CONST_WEBSITEURL . "/data/phpThumb/phpThumb.php?src=../news/" . $story["file"] ."&w=150&far=0"; $theurl = $url . "news/".$story["id"]."/".clean_title($story["title"]).".html"; ?>

"; } } ?>