Ask coding questions

← Back to all posts
How to add DB(PDO or SQLite) to my PHP?
Micos

Hi, I want to add a simple db to my webserver(aka PHP code), I already tried doing it threw PDO, but it doesn't seems to be working. Can someone explain to me how can I add DB into my php plz?

Voters
Micos
Comments
hotnewtop
MaurolepisDreki

Is it not listed in phpinfo? Not familiar with PDO specifically, but I know it was there when I checked mine. And I've been in their default nix environment untill just a few minutes ago.

MrVoo

Not sure if PHP supports it, but if you're making a website use ReplDB

MaurolepisDreki

@MrVoo, isn't ReplDB only available on Replit.com? (I believe it is.) And that being the case, why would anyone want to use it? I can't speak for anyone else, but using a tool only available in the IDE seems like an extraordinarily bad design to me. Not to mention that ReplDB is not a SQL engine.

MrVoo

@MaurolepisDreki If you're going to use Replit like GitHub, just use GitHub :l

MaurolepisDreki

@MrVoo, Replit is very different from GitHub. 1) GitHub is not an IDE. 2) Replit is not a version control system. They are not comparable.

MrVoo

@MaurolepisDreki Wow really? I sure didn't know that