VARPO.NET/BBS

Author Message

<  Yleiset artikkelit  ~  Mysql ja php: yksinkertainen yhden tuloksen kysely

Halegon
Posted: Thu Oct 06, 2005 5:40 pm Reply with quote
Site Admin Joined: 03 Aug 2004 Posts: 40
Pitit laittaa tää taltee ku tuppaan aina unohtamaan sillon ku tätä tarviais

Code:

$query = "SELECT * FROM 'jostain' WHERE * LIMIT 1";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$rivi = mysql_fetch_row($result);

echo ($rivi[0]);


Aika yksinkertanen, mut kätevä jossain tilanteissa Smile
View user's profile Send private message Send e-mail

Display posts from previous:  

All times are GMT + 2 Hours
Page 1 of 1
Post new topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum