Posts by Leandro Pires • 98 points
11 posts
-
0
votes1
answer126
viewsQ: Doubt about openssl_encrypt security
Hello, I have some doubts about this method of encrypting data, because I intend to use between version 5.6 and the current version of PHP and I have doubts if it will run smoothly. I have the…
-
2
votes0
answers35
viewsQ: Difficulty Creating a Simple Variable Parser for Altorouter
I did a Simple Check of Variable PHP, but it was developed in Mysqli Base, the fact and that I went through some problems and due to this, I was forced to pass all the code to PDO, the problem and…
-
1
votes1
answer140
viewsQ: Difficulty Function Menu Sidebar Javascript
I’m having a hard time where the code I’ve made so far isn’t acting the way I need to. The fact is that after the class the sub-menu is activated, the menu does not minimize. That is, after being…
-
0
votes1
answer56
viewsA: How to delete record with simple Mysql quotes via PHP?
First you must pass both the mysql_real_escape_string and Delete through the connection Conn.php $conn = mysql_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (!$conn) { die("Connection failed: " .…
phpanswered Leandro Pires 98 -
1
votes2
answers48
viewsA: Connect form with database
Try a connection as follows: $conn = mysqli_connect('HOST', 'USERNAME', 'PASSWORD', 'NAME_TABLE'); if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } mysqli_set_charset($conn,…
-
0
votes3
answers60
viewsA: UPTADE in php, I’m not getting it
Hey, Gustavo, what’s up? so... I would recommend you to upgrade this table function only with php and html, even for the fact that as I am a beginner, below has a code that can help you, just…
phpanswered Leandro Pires 98 -
0
votes1
answer75
viewsA: I can’t delete with PHP, Mysql
Manage.php $result = mysqli_query($conn, "SELECT * FROM table ORDER BY id DESC"); while($row = mysqli_fetch_assoc($result)){ ?> <tr> <td><?php echo $row['id']; ?></td>…
phpanswered Leandro Pires 98 -
0
votes3
answers659
viewsA: Can I use a SELECT inside the IF?
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $result = mysqli_query($conn, "SELECT * FROM table WHERE dado='$dado'"); if(mysqli_num_rows($result) > 0){ echo "Este Dado…
-
0
votes1
answer70
viewsA: How to make a menu with all gray background?
From the Example Below, you will be able to create a Top Nav of your liking, you can change code and add what you want or even create one based on this: <html> <head> <style> body…
-
0
votes1
answer74
viewsA: Erro script Analytics Google
Try with this Code: (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),…
-
2
votes1
answer49
viewsQ: How to Insert MYSQL if Upload or URL
Hello, I would like to know how to make a mysql Insert, however in the way that I only used javascript to change the imput URL for File, that is, I’m trying to work on the same imput name, however I…