Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wow databases

Name: Anonymous 2009-08-03 16:25

why use dbs when I can just store info in text files? is this windows or what

Name: Anonymous 2009-08-03 19:39

Okay, seeing as this thread is worthless and shares the topic with my potential thread, I'll take over from here;

I'm learning PHP and MySQL and I have this:

sqlite> select * from foo;
1|foo|bar
2|baz|quux
3|hma|quux
4|HAX|bar


And this:

   $sqldb = sqlite_open("dbase.db");
   $result = sqlite_query($sqldb, "select * from foo where title = 'bar'");
   $res = sqlite_column($result, "name");
   var_dump($res);


And the result is string(3) "foo" . Why am I not getting some array of the first and fourth record? How do I extract all matching records, not just the first?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List