All pastes #765846 Raw Edit

Etwas

public php v1 · immutable
·published 2007-11-08 12:18 UTC
rendered paste body
<html><head></head><body><form method="post"><?php/*******************************************************************//***********************Codercity Board*****************************//**********************www.codercity.net****************************//*************************Thread.php********************************//*******************************************************************//********************* $ Autor: Homie $ ****************************//**************** $ Last edit: 8.11.2007 $ *************************//************* $ Copyright by Codercity.net $ **********************//*******************************************************************/include ('config.php');//Suche Variable$S_BGRF = $_POST['suche'];//Suche Query für die Threads$T_QUERY = "SELECT * FROM `forum_threads` WHERE`tname` LIKE '%".$S_BGRF."%' AND`tinhalt` LIKE '%".$S_BGRF."%' AND`tbeschreibung` LIKE '%".$S_BGRF."%' AND`startername` LIKE '%".$S_BGRF."%'";//Suche Query für die Antworten$A_QUERY = "SELECT * FROM `forum_answers` WHERE`beitrag` LIKE '%".$S_BGRF."%' AND`postthema` LIKE '%".$S_BGRF."%' AND`username` LIKE '%".$S_BGRF."%'";$result = mysql_query($T_QUERY, $A_QUERY) OR die(mysql_error());IF ($_POST['submit']) {while($row = mysql_fetch_object($result)) {    echo "$row->tname, $row->tbeschreibung, $row->startername, $row->postthema, $row->username";}}?><input type="text" name="suche"><br /><input type="submit" name="submit" value"Suche starten"></form></body></html>