<http://forum.pspad.com/read.php?f=1&i=6854&t=6854>
----------------------------------------------------------------
Nevíte nìkdo jak donutit PSPad aby správnì odsazoval (napø php v html
souborech) ?
Pøíklad, který mluví za vechno:
<?
include("users/users.php");
require("users/config.php");
if (GetDetail($_SESSION['user'],"admin")!=1) {Die("Nejste Admin
!");}
mysql_connect($DBCONFIG['server'], $DBCONFIG['user'],
$DBCONFIG['password']);
mysql_select_db($database);
$query=StripSlashes($query);
$result = mysql_query($query);
?> Results of query
<b>
<? echo($query); ?></b>
<hr>
<?
if ($result == 0):
echo("<B>Error " . mysql_errno() . ": " . mysql_error() .
"</b>");
elseif ($result == 1):
echo("<b>Query executed successfully!</b>");
else:
?>
--
PSPad freeware editor http://www.pspad.com