Jump to content
php.lv forumi

MySQL datu nolasiishana


Klokjis

Recommended Posts

Probleeminja... it kaa $_SESSION['g523s'] veertiiba ir 'VERTIBA'.

echo $_SESSION['g523s']; // atteelojas arii taa VERTIBA

Bet nolasot no MySQL attieciigos datus aile1, aile2, aile3 ir tukshas. ja uname='$x' vietaa ieliek uname='VERTIBA', tad viss normaali. aile 1, 2 un 3 ir ar saviem datiem, kaa vajag. a Porke vinjsh pie -> uname='$x' <- neatteelo datus kaa vajag?

 

<?

$x = $_SESSION['g523s'];

$query = "SELECT * FROM $table WHERE uname='$x' ";
$result = mysql_query($query);		
$row = mysql_fetch_array($result);

echo $row['aile1'];
echo "<br>";
echo $row['aile2'];
echo "<br>";
echo $row['aile3'];
echo "<br>";

?>

Link to comment
Share on other sites

×
×
  • Create New...