Ugabuga Posted November 8, 2005 Report Share Posted November 8, 2005 Jau labu laicinju rokos te pa forumu, teema cilaata, piemeeru daudz, bet nu eniivei neiet taa shtelle.. kko gan jau ka daru ne taa. Situaacija: tiek padots mainiigais uz failu editone.php '.. <a href="editone.php?ID=' . $rinda['email'] . '"> links </a> ..' tur shams tiek atplestaam rokaam sagaidiits. Taalaak gribeetos, lai no datubaazes nolasa ierakstu, WHERE itams mainiigais. tipa vienkaarshi, bet nestraadaa. if (!empty($_GET['ID'])) $lolwtf = $_GET['ID']; //echo $lolwtf; $sqlkonn = mysql_connect($sqlhost, $sqluser, $sqlpass) or die('Could not connect to MySQL:'. mysql_error()); mysql_select_db($sqldb); $lasit = "SELECT * FROM userlist WHERE email = '$lolwtf' "; $bam = mysql_query($lasit, $sqlkonn); while ($rezult = mysql_fetch_array($bam)) { echo $rezult['name']; echo $rezult['sname']'; echo $rezult['phone']; echo $rezult['email']; } mysql_close($sqlkonn); Kad novaac visu mysql padariishanu un vnk uzraksta echo $lolwtf; tad mainigo izvada. So where is teh f-ing mistake!? Neredzu.. Link to comment Share on other sites More sharing options...
litt Posted November 8, 2005 Report Share Posted November 8, 2005 Uzraksti echo $lasit; un paskaties kāds kverijs izpildās Link to comment Share on other sites More sharing options...
v3rb0 Posted November 8, 2005 Report Share Posted November 8, 2005 'SELECT * FROM userlist WHERE email = "'.$lolwtf.'"' un mysql_fetch_assoc($bam) varbut veel kas, neparbaudiju. Link to comment Share on other sites More sharing options...
Ugabuga Posted November 8, 2005 Author Report Share Posted November 8, 2005 Uzraksti echo $lasit; un paskaties kāds kverijs izpildās echo $lasit; logjiski, ka izvada: SELECT * FROM userlist WHERE email = '$lolwtf' echo $bam; - a@a.aResource id #2 man nezkapee liekas, ka kkas ar mysql kveriju nav.. No response.. 'SELECT * FROM userlist WHERE email = "'.$lolwtf.'"'un mysql_fetch_assoc($bam) varbut veel kas, neparbaudiju. nekas notiek.. vot kaapj uz nerva.. droshi vien akal kkaada tizla neuzmaniibas kljuuda buus.. Link to comment Share on other sites More sharing options...
bubu Posted November 8, 2005 Report Share Posted November 8, 2005 echo $lasit; logjiski, ka izvada: SELECT * FROM userlist WHERE email = '$lolwtf' Nu un tur tā jābūt? Tā $lolwtf vietā nav jābūt tekstam, kas urlī padots? mysql_error() arī mēģināji? Link to comment Share on other sites More sharing options...
Ugabuga Posted November 8, 2005 Author Report Share Posted November 8, 2005 (edited) nekaada errora nav.. izlaboju kveriju, $lasit izvada: SELECT * FROM userlist WHERE email = "bega@asrt.sd" blank.. UPD.. baaaaa.. varu tikai citeet sevi vot kaapj uz nerva.. droshi vien akal kkaada tizla neuzmaniibas kljuuda buus..un pirmajaa postaa, ja taa labi ieskataas, var veel vienu kljuudu pamaniit echo $rezult['sname']'; Taa ir, kad jau seshas stundas kko kodee.. *Banging head against teh table* Dumaa probleema nodzeesta.. paldies visiem, kas ziedoja nervus :) litt, nekas tiek vadiits.. viss tiek lasiits Edited November 8, 2005 by Ugabuga Link to comment Share on other sites More sharing options...
litt Posted November 8, 2005 Report Share Posted November 8, 2005 (edited) Tu pārliecinājies, ka tavā userlist tabulā vispār eksistē tāds e-pasts, kādu ievadiji (šajā gadījumā bega@asrt.sd)? P.S Nevar nolasīt to, kas iepriekš nav ierakstīts Edited November 8, 2005 by litt Link to comment Share on other sites More sharing options...
Recommended Posts