I am trying to get a users ID from a database within a class, but I have very little to no experience with classes, how could I go about getting the uid from the DB and then
You can use custom database class. Code :
user = "root"; $this->host = "localhost"; $this->pass = ""; $this->db = "db_blog"; } public function connect() { $link = mysql_connect($this->user, $this->host, $this->pass, $this->db); return $link; } } ?>