Kaklz Posted August 24, 2010 Report Share Posted August 24, 2010 validators protams ka nebljaustaas, bet ja njem dziljak tad XML standarta izmanto dubultpedinajs, attieciigi XHTML jadara tapat .. Beidz musināt cilvēkus. Var lietot gan vienas, gan otras pēdiņas. http://www.w3schools.com/Xml/xml_attributes.aspXML Attributes Must be Quoted Attribute values must always be quoted. Either single or double quotes can be used. For a person's sex, the person element can be written like this: <person sex="female"> or like this: <person sex='female'> Quote Link to comment Share on other sites More sharing options...
reGative Posted August 26, 2010 Author Report Share Posted August 26, 2010 Sveiki atkal! Nezkāpēc neizdodas vairs ielogoties. Viss it kā ir pareizi, pat redirects notiek. Bet nezkāpēc vairs neielogojas. Kas par vainu login.php <?php session_start(); ob_start(); include('Blurry_Include/include.php'); $result = mysql_query("SELECT * FROM blurry_settings"); while($row = mysql_fetch_array($result)) { include('languages/'.$row['SiteLang'].'/general.php'); $page = LOGIN; include('styles/'.$row['SiteTheme'].'/header.php'); } echo '<h2>'. LOGIN .'</h2>'; echo "<form action='login.php?reason=login' method='post'>" .NICK ."<br /><input type='text' name='nick' /><br />" .PASSWORD ."<br /><input type='password' name='pass' /><br /> <input type='submit' value='OK!' /><br /> <a href='register.php'>" . REGISTER . "</a> </form>"; if(isSet($_GET['reason']) and $_GET['reason'] == 'logout') { mysql_query('UPDATE blurry_users SET user_online = "N" WHERE id =' . $_SESSION['id']); session_destroy(); header('Location: index.php'); } if(isSet($_GET['reason']) and $_GET['reason'] == 'login') { if(!isSet($_POST['nick']) and !isSet($_POST['pass'])) { $nick = htmlSpecialChars($_POST['nick']); $pass = htmlSpecialChars($_POST['pass']); $nick_validate = 'SELECT * FROM blurry_users WHERE user_nick="' . mysql_real_escape_string($nick) . '"'; $final = mysql_query($nick_validate); $pass_validate = 'SELECT * FROM blurry_users WHERE user_pass="' . mysql_real_escape_string(sha1($pass)) . '"'; $final2 = mysql_query($pass_validate); if(mysql_num_rows($final) != $nick) { echo '<div id="error"><b>'.LOGIN_ERROR.'</b></div>'; } if(mysql_num_rows($final2) != $pass) { echo '<div id="error"><b>'.LOGIN_ERROR.'</b></div>'; }} else { $fetch = mysql_query('SELECT id FROM blurry_users WHERE user_nick = "' . mysql_real_escape_string($_POST['nick'])); while($row = mysql_fetch_array($fetch)) { $id = $row['id']; } $_SESSION['id'] = $id; mysql_query('UPDATE blurry_users SET user_online = "Y" WHERE id = "'.$_SESSION['id']); }header('Location: index.php'); } $result = mysql_query("SELECT * FROM blurry_settings"); while($row = mysql_fetch_array($result)) { include('styles/'.$row['SiteTheme'].'/footer.php'); } ob_flush(); ?> Quote Link to comment Share on other sites More sharing options...
reGative Posted August 28, 2010 Author Report Share Posted August 28, 2010 Vai nevarat man palīdzēt? Tiešām? sorry, bet izskatās, ka šeit vairāk man nav ko darīt! Quote Link to comment Share on other sites More sharing options...
briedis Posted August 28, 2010 Report Share Posted August 28, 2010 Esi debugojis kaut ko, vai tikai konstatēji, ka kaut kas neJiet un uzreiz raksti te? Quote Link to comment Share on other sites More sharing options...
mefisto Posted August 28, 2010 Report Share Posted August 28, 2010 Vai nevarat man palīdzēt? Tiešām? sorry, bet izskatās, ka šeit vairāk man nav ko darīt! Jap, tev tiešām nav ko te darīt. Labāk atrod draugiem.lv domubiedru grupu ... Reku raksts tieši par tādiem kā tu : http://slash7.com/2006/12/22/vampires/ Quote Link to comment Share on other sites More sharing options...
mickys Posted August 28, 2010 Report Share Posted August 28, 2010 Vai nevarat man palīdzēt? Tiešām? sorry, bet izskatās, ka šeit vairāk man nav ko darīt! Tu teici ar domu, ka tagad visi skries tev izpatikt, lai tikai tu nedzēstos? Quote Link to comment Share on other sites More sharing options...
viena tante Posted September 29, 2010 Report Share Posted September 29, 2010 vispār jau mysql_num_rows() atgriež skaitli Quote Link to comment Share on other sites More sharing options...
briedis Posted September 29, 2010 Report Share Posted September 29, 2010 (edited) vispār jau mysql_num_rows() atgriež skaitli Return The number of rows in a result set on success or FALSE on failure. Edited September 29, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
viena tante Posted September 30, 2010 Report Share Posted September 30, 2010 Return The number of rows in a result set on success or FALSE on failure. Jā nu es ļoti neprecīzi pateicu, katrā ziņā ja $nick vietā butu true vai 1 tad viss darbotos un vel izskatās ka eksistējošs lietotājs vai ieiet ar jebkuru jau datubāzē esošu paroli Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.