Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
muči me php nakon upgradea

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 20.12.2006 13:13    Post subject: muči me php nakon upgradea Add user to your forum ignore list Reply with quote

'odjednom' ce sa svojim malim cms-om nemogu ulogirati na admin stranice. ono što se dogodilo sa webom otkad sam zadnji put isprobala je upgrade php-a sa, čini mi se, 5.0... na 5.2 uz to sam se i igrala sa wordpressom ali to je skroz odvojeno od postojećeg cms-a.
any idea?

mysql_connect ($dbhost, $dbusername, $dbuserpass);
if (!mysql_select_db($dbname)) {
echo "Err3: Nemate prava za pristup ovoj stranici!";
exit();
}
$sql="SELECT login_id FROM admins WHERE login_id='".$login_id."' and login_passwd='".$login_passwd."'";
$r = mysql_query($sql);
if(!$r) {
echo "Err1: Nemate prava za pristup ovoj stranici!";
exit();
}
if(mysql_affected_rows()==0){
echo "Err2: Nemate prava za pristup ovoj stranici!";
exit();
} else {
setcookie.....
}


javlja mi Err2. ali login name i pass posoje u bazi i ispravno su uneseni.
login_id i login_passwd varijable su prenesene input-om. ali čini mi se da je baš u tom prijenosu problem

Idea Question

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 20.12.2006 14:16    Post subject: Add user to your forum ignore list Reply with quote

sad sam samo dohvatila varijable sa POST-om i radi. a prije je radilo i bez...

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 20.12.2006 14:44    Post subject: Add user to your forum ignore list Reply with quote

register_globals je po defaultu OFF. vjerojatno je u tome stvar...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 20.12.2006 14:54    Post subject: Add user to your forum ignore list Reply with quote

yep. a po defaultu mora biti i nešto što ne radi nakon svake promjene. inače bi nam bilo dosadno...

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 20.12.2006 15:09    Post subject: Add user to your forum ignore list Reply with quote

hm...po defaultu ne bi trebala koristiti register_globals na on Wink

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 20.12.2006 15:11    Post subject: Add user to your forum ignore list Reply with quote

register_globals je bolje da je iskljucen po defaultu Smile
vise informacija na http://hr.php.net/register_globals

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
jojo



Joined: 27 Jan 2005
Posts: 1591
Location: insula aurea

PostPosted: 20.12.2006 15:49    Post subject: Add user to your forum ignore list Reply with quote

nisam ja to mijenjala, tako je bilo sa starom verzijom. tu sam se tek učila php-a... anyway thx

_________________
deviant / malomorgen / videoholik / cimer fraj
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group