Posts by Rafael Dias Soares • 96 points
6 posts
-
0
votes2
answers3205
viewsA: Modeling database of a system of friends
Simple, you would have a table called friends that would contain the user id and the friend id, it would be 1 - n and in each record you would put the user id and the friend id so if you want to…
-
2
votes4
answers1666
viewsA: SQL Injection via url
Friend, to solve this problem and make your life easier regarding database queries among other various functions, try using "PHP PDO", an example that would solve your problem would be this:…
-
0
votes2
answers828
viewsA: Change date format in PHP
Try the following: public function getDate() { $date=$this->date; return $date->DATE_FORMAT($date,'%b %d %Y %a:%i %p'); } Check out the example on W3schools…
-
1
votes1
answer48
viewsA: What do I call one function in another?
To use this page function would simply make sure that the file containing it is included in the file you want to use it and do so: <div class="video-page-desc"> <?php if ($player_icons…
phpanswered Rafael Dias Soares 96 -
5
votes4
answers80887
viewsA: How to force the opening of a link in another tab and not window?
Guy your code ta practically right, just missed an http:// in front of the google link, see how I put here and it worked: <!DOCTYPE html> <html> <head> <link rel="stylesheet"…
-
0
votes2
answers374
viewsA: Is it possible to build a pure HTML register?
Another legal way to solve your problem is by using the Local Storage of HTML 5, roughly it is a database contained in the browser, as if it were a cookie that has no expiration date, this means…