fork download
  1. <?
  2.  
  3. $v1 = $_POST["v1"];
  4. $v2 = $_POST["v2"];
  5. $v3 = $_POST["v3"];
  6. $v4 = $_POST["v4"];
  7.  
  8. $query = "Select t1, t2, t3, t4 From TABLE "
  9.  
  10. $queryCondition = "Where ";
  11. if ($v1 is exist) $queryCondition .= " and t1 = '".v1."' "
  12. if ($v2 is exist) $queryCondition .= " and t2 = '".v2."' "
  13. ...
  14.  
  15. $queryCondition = substring($queryCondition, 첫번째 " and" 없애기);
  16.  
  17. $result = mysql_어쩌고($query.$queryCondition, 뭐시기) or die "쎾쓰";
  18.  
  19. ?>
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '$queryCondition' (T_VARIABLE) in /home/99Q4rA/prog.php on line 10