""){ $seox = str_replace(" & "," and ",$seox); $seox = str_replace(" ","-",trim($_REQUEST["fname"])); $stmt = $pdodb->prepare("SELECT ID FROM toplevelcats WHERE seox=:seox AND langis=:langis LIMIT 1"); $stmt->bindParam(':langis', $showlang); $stmt->bindParam(':seox', $seox); $stmt->execute(); if($stmt->rowCount() == 0){ $stmt1 = $pdodb->prepare("INSERT INTO toplevelcats (catis,seox,langis) VALUES (:catis,:seox,:langis)"); $stmt1->bindParam(':catis', ucwords($_REQUEST["fname"])); $stmt1->bindParam(':langis', $showlang); $stmt1->bindParam(':seox', $seox); $stmt1->execute(); } header('Location: /view/'.$seox); } $dt = "Create a Forum"; include("meta.php"); ?>

Create a Forum

0){ ?> Name your top level forum (health, sports etc.)
Forum Name:



Just Created:
prepare("SELECT seox,catis,lastpost FROM toplevelcats WHERE langis=:langis ORDER BY ID desc LIMIT 5"); $stmt->bindParam(':langis', $showlang); $stmt->execute(); while($i2=$stmt->fetch()){ $count++; echo '
'.$i2["catis"].' '; echo '
'; } ?>