Posts by Guilherme Alves • 107 points
6 posts
-
0
votes3
answers524
viewsQ: Count without using rowCount from PDO
I’m new to PHP PDO, I’m using MVC and I couldn’t do the line count on database using $obj->rowCount(); Just follow my code php model.: public function read($table, $fields, $where = null,…
-
1
votes1
answer52
viewsQ: My SQL Error in Session and query
I have a class where I use to get the username, and inside I have the method: public function getfName() { $Session = $_SESSION[$this->Prefix . 'username']; $sql = "SELECT * FROM " . DB_DBPREFIX…
phpasked Guilherme Alves 107 -
3
votes2
answers402
viewsQ: About Mysqli functions
I have a question about some function of Mysqli In the conventional way we would do so: public function Numrows($sql) { return mysqli_num_rows($sql); } And how I’m using extends mysqli I’m doing…
-
1
votes1
answer153
viewsQ: Include files with friendly URL
I’m using URL friendly on my website, I include the files on index.php everything correctly, and it works in my filing cabinet pages/register.php straight. Only when I access directly with the url…
-
2
votes0
answers390
viewsQ: Logout function using PHP PDO Object-oriented
I have a big problem with the function of displacing the panel, I made a public Function Logout() Filing cabinet Login.class.php: public function Logout(){ if($this->isLogged()) {…
-
2
votes1
answer2049
viewsQ: How to install older versions of PHP below php 5.5?
I heard that in the Ubuntu contains packages already available for installation, well, I confirmed and really it’s true, I just installed that came with php5.5, I need the php5.2.17, for…