Jump to content
php.lv forumi

mainiigo nodoshana vol.daudz


Ugabuga

Recommended Posts

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

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

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 by Ugabuga
Link to comment
Share on other sites

×
×
  • Create New...