homers Posted October 25, 2009 Report Share Posted October 25, 2009 Notice: Undefined variable: lietotajs in C:\xampp\xampp\htdocs\user.php on line 14 14linija: echo $lietotajs; $lietotajs: $selekt5 = mysql_fetch_row(mysql_query("SELECT niks FROM lietotaaji WHERE id=$id")); $lietotajs = $selekt5[0]; Quote Link to comment Share on other sites More sharing options...
waplet Posted October 25, 2009 Report Share Posted October 25, 2009 a tur tiešām ir tas lietotājs? Quote Link to comment Share on other sites More sharing options...
homers Posted October 25, 2009 Author Report Share Posted October 25, 2009 Jā, ir Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 25, 2009 Report Share Posted October 25, 2009 Full source noderētu vairāk. Quote Link to comment Share on other sites More sharing options...
Val Posted October 25, 2009 Report Share Posted October 25, 2009 parādi pirmās 14 rindas no user.php Quote Link to comment Share on other sites More sharing options...
homers Posted October 25, 2009 Author Report Share Posted October 25, 2009 (edited) <?php if(isset($_GET['uzaicinat'])){ echo "<div class=mazaisramis>Uzaicinājums nosūtīts, gaidi atbildi!</div><br>"; echo "<meta http-equiv=refresh content='1;url=?p=user&id=".$_GET['id']."'>"; $idad = $_GET['id']; $selekt5 = mysql_fetch_row(mysql_query("SELECT niks FROM lietotaaji WHERE id=$id")); $lietotajs = $selekt5[0]; mysql_query("INSERT INTO draugi(lietotajs) VALUES($lietotajs)"); }else{ echo ""; } echo $lietotajs; Edited October 25, 2009 by homers Quote Link to comment Share on other sites More sharing options...
waplet Posted October 25, 2009 Report Share Posted October 25, 2009 lietotajs paradās tiaki tad kad padots get Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 25, 2009 Report Share Posted October 25, 2009 Un tev ir $_GET["uzaicinat"]? Quote Link to comment Share on other sites More sharing options...
homers Posted October 25, 2009 Author Report Share Posted October 25, 2009 (edited) Nu tās paradas kad links ir http://web.lv/?p=users&id=1&uzaicinat Edited October 25, 2009 by homers Quote Link to comment Share on other sites More sharing options...
waplet Posted October 25, 2009 Report Share Posted October 25, 2009 Pateikt, vai pats sapratīsi kur kļuda? $idad = $_GET['id']; $selekt5 = mysql_fetch_row(mysql_query("SELECT niks FROM lietotaaji WHERE id=$id")); $lietotajs = $selekt5[0]; Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 25, 2009 Report Share Posted October 25, 2009 $idad = $_GET['id']; $selekt5 = mysql_fetch_row(mysql_query("SELECT niks FROM lietotaaji WHERE id=$id")); Quote Link to comment Share on other sites More sharing options...
homers Posted October 25, 2009 Author Report Share Posted October 25, 2009 Nomainiju, nekas neizmainījas. Quote Link to comment Share on other sites More sharing options...
waplet Posted October 25, 2009 Report Share Posted October 25, 2009 :lol: Quote Link to comment Share on other sites More sharing options...
homers Posted October 25, 2009 Author Report Share Posted October 25, 2009 Kas lol Quote Link to comment Share on other sites More sharing options...
waplet Posted October 25, 2009 Report Share Posted October 25, 2009 para kā izskatās viss tavs kods, pēc mahinācijām.. 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.