Posts by LucasRodz • 35 points
11 posts
-
0
votes2
answers38
viewsQ: Block Page with Login
How to make so that if the person is not logged in, he will not be able to use this function below, because I’ve been testing and if the person for example uses the link. The code redirects it to…
-
0
votes1
answer67
viewsQ: Inserting html in php
How could I be inserting an html code into this php <?php $servername = "localhost"; $username = "#"; $password = "#"; $dbname = "#"; $conn = mysqli_connect($servername, $username, $password,…
-
0
votes1
answer70
views -
0
votes1
answer60
viewsQ: Block Administrative Page with Session
I’m using the code on my administration page <?php include_once "valida.php"; if ($_SESSION['usuarioNiveisAcessoId'] != "1"){ header('Location: index.php'); } ?> My user is with access level…
-
0
votes0
answers45
viewsQ: Insert a Select into the Mysqli Database
<?php session_start(); include("class/bloqued.php"); include_once("conexao.php"); seguranca_user(); $btnAnunciar = filter_input(INPUT_POST, 'btnAnunciar', FILTER_SANITIZE_STRING);{ if…
-
1
votes1
answer215
viewsQ: How to Block Navbar Functions for Logged-in Users Only?
I wanted to know how to block part of this navbar, with the session, only for users logged in to the page Navbar: <header class="masthead"> <nav class="navbar navbar-expand-md navbar-light…
-
0
votes1
answer90
viewsQ: How to limit a command for time? Php
I wish this function of my php, could only be used every 3 minutes, how do I do this? Command is this. case strpos($mensagem, '/metar') === 0: if(strlen($mensagem)>6 &&…
-
0
votes1
answer729
viewsQ: Show only the latest php channel video
I have this code, where when using the command /lastvideo it shows the latest video from my youtube channel, but when trying to use it only shows the youtube link, not the video Code in Php //CANAL…
-
0
votes1
answer40
viewsQ: UPDATE of database information
I have a table, where there is a field called (PAY), the default value of it is "PAY". I made the following code, to change the VALUE "PAY" to "PAID" $results = "UPDATE snaps SET Pagamento='PAGO'…
-
0
votes1
answer29
viewsQ: I need some help with the database
I have this table in my database And I need that under the Created, have 1 option called Payment (within this option with two options, PAY(I WANT YOU TO ALREADY COME WITH THIS STANDARD) and after…
-
0
votes1
answer59
viewsQ: Problem with MYSQL + PHP Database
When running this page, returns me the following error. Fatal error: Call to Undefined Function query() in C: Program Files Vertrigoserv www admin.php on line 6 My Php Code. <?php…