Posts by carlos • 31 points
4 posts
-
2
votes1
answer770
viewsQ: The best way to organize menu and footer in php is with includes?
Filing cabinet menu.php: <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#"><img…
-
1
votes1
answer131
viewsQ: Transaction history, how is it implemented?
I need to make a history of the user’s last (s) purchase(s) (these links will be shown in a table). Could you give me tips on how this history is usually saved? (don’t need to do it for me) Normally…
-
0
votes1
answer54
viewsQ: problems with bindValue
$query = "INSERT INTO " . $this->table_name . " (data, sexo) VALUES (:data,:sexo)"; $stmt->bindValue(':data', $_REQUEST['data']); $stmt->bindValue(':sexo', $_REQUEST['sexo']); is making a…
-
0
votes1
answer32
viewsQ: how to receive a connection failure if the update is not successful?
Let’s say I have an update button in the bank. $query = mysql_query("UPDATE $tabela set algo='$algo' WHERE id=1); if ($query) { echo "sucesso"; } else { echo 'falha'; } to check if the query was…