Posts by EduardoOliveira • 51 points
2 posts
-
3
votes1
answer283
viewsA: How to redirect the ID of a current registration to print
You can use mysql_insert_id(); It takes the last registered ID $Codigo = mysql_insert_id(); From what I saw in your code, after giving the INSERT, you are redirected to another page... in this case…
-
2
votes1
answer60
viewsA: How do I avoid error when not receiving a PHP variable?
Something faster, without the need to stay with if’s if (!isset($_POST['qt_sashimi11'])){ $qt_sashimi11 = NULL; } In short, if the POST, attribute NULL for the variable. The !isset is equal to "not…
phpanswered EduardoOliveira 51