Posts by Pedro Sousa Santos • 51 points
2 posts
-
2
votes3
answers221
viewsA: Error: the right syntax to use near 'add
Yes, it is really due to the use of the reserved word 'add', as to the date, it is appropriate to change the field in the database to datetime, otherwise no error appears but the data that will…
-
3
votes3
answers717
viewsA: How to add a PHP variable only if it is set?
You can just set the value 0 in this way when dealing with values coming from forms. Example: $var1 = isset($_POST['number1']) ? $_POST['number1'] : 0;
phpanswered Pedro Sousa Santos 51