hi
i've created a control of the name when someone create a ticket,
with this mod only who is registered in ost_client can make a ticket
but doesn't work....
i create a new table in mysql called ost_client with 2 columns id, clientcode
in include\class.ticket.php i add
class Ticket{
var $clientcode;
then
$sql2 = ' SELECT c.clientcode FROM ost_client c ';
if(($res=db_query($sql)) && db_num_rows($res) && $res2=db_query($sql2)):
$row=db_fetch_array($res);
$row2=db_fetch_array($res2);
$this->clientcode=$row2;
then i add
function getclientcode(){
return $this->clientcode;
}
then in include\client\open.inc.php i add
"><?=$name?>
<?php if (!($name==$row2)):
$errors;
endif?>
i think that it's all ok.......but doesn't work :
so if someone can help me i say thank you
sry for my english :