Posts by Márcio Rossato • 296 points
7 posts
-
2
votes2
answers465
viewsA: Which method to use to log a user (JWT cookie vs SESSION)
Good morning buddy, SESSION is managed by PHP. there is no need to encrypt as Session data is not available in the browser. However I advise you to keep JWT and not use SESSIONS. The SESSION is tied…
-
2
votes1
answer153
viewsA: I can’t echo objects
Hello, PHP cannot understand objects inside the string. A solution: in the first code do the following: echo "<br>". $temp_user->get_password()." <br>"; Will work.…
phpanswered Márcio Rossato 296 -
1
votes6
answers11304
viewsA: How to get distance given the coordinates using SQL?
I work with geospatial data and mysql already has geolocation support. In this case just use the function st_distance: ST_Distance(Point(lon1, lat1), Point(lon2,lat2))…
-
1
votes1
answer430
viewsA: Doubt of Concept when registering parcels in the database
I am a commercial system developer and I suggest the following: Since you need to control the payment and discount of each, the ideal is to create the table in the way you described by relating by…
mysqlanswered Márcio Rossato 296 -
7
votes2
answers15380
viewsA: open new php window
Good morning, I suggest that the new page opens in another window and your page stays in the browser. You can do it this way: assuming your page is index.php on your page: <a…
-
2
votes2
answers4586
viewsA: How to create an AVD for Android in Delphi
You must create the AVD in the application provided by Google. After creation it will appear there. Another thing, you can use your own device to do the tests. Just activate the developer mode on…
-
0
votes2
answers793
viewsA: How to place variables in email with phpmailer?
The Name and Date you want to show must be in your search. select nome, data from ... Your question does not seem to be about phpmailer but about how to query data. Please, detail better the…