Posts by Matheus Borjes • 110 points
6 posts
-
0
votes1
answer90
viewsQ: Mysql update event
I asked this question yesterday, I got the answer I wanted, I’ll be straight and straight: I have the query: UPDATE users SET time = time - 1 time is the type int and receives as default value 0, in…
-
1
votes3
answers4202
viewsQ: Countdown PHP + Javascript
I have a column in the database called time, she owns an event that does the following: UPDATE users SET time = time - 1 As default gets 1800 seconds (30 minutes) right? Now I wish recover the time…
-
1
votes1
answer85
viewsQ: How to return array indices in method
Well I couldn’t find a better title for my case, I have the following function: public function select_tokens() { $sql = "SELECT * FROM `users`"; $select_tokens = Database::DB()->prepare($sql);…
-
1
votes1
answer59
viewsA: Help with logic, using Twitter Rest API
A concrete answer: To use API, you need to use Oauth, there is no other way. This your code will return error 215. That’s the answer. Give it up, unless someone who’s done it makes me sick.…
-
4
votes2
answers166
viewsA: Parse error in code
Of: $verifica = mysql_query("SELECT * FROM users WHERE email = '$email' To $verifica = mysql_query("SELECT * FROM users WHERE email = '$email'"); Solved not? Also save this message inside a array:…
phpanswered Matheus Borjes 110 -
1
votes2
answers55
viewsA: Link to access pages
You can use PHP for this: For example <section class="section"> <div class="container"> <?php $url = (isset($_GET['url'])) ? $_GET['url'] : 'login'; $url = array_filter(explode('/',…