Posts by Carlos Coelho • 35 points
12 posts
-
0
votes0
answers29
viewsQ: Pdo code help for mysqli
Code ok ! -:PDO:- correct code working header('Content-type: application/json; charset=UTF-8'); $response = array(); if ($_POST['delete']) { require_once 'dbconfig.php'; $pid =…
-
0
votes1
answer55
viewsA: Where is the error? I can’t pull table from database!
while($Row = mysqli_fetch_assoc($rs)) the error was right here !
-
0
votes0
answers331
viewsQ: Help by returning errors - > Warning: Illegal string offset 'id'
define("HOST","localhost"); define("DB_USER","root"); define("DB_PASS",""); define("DB_NAME","cc_cond"); $conn = mysqli_connect(HOST,DB_USER,DB_PASS,DB_NAME); ini_set('display_errors', 1);…
-
-1
votes1
answer55
viewsQ: Where is the error? I can’t pull table from database!
function getUserAccessRoleByID($id) { global $conn; $query = "select user_role from tbl_user_role where id = ".$id; $rs = mysqli_query($conn,$query); $row =…
-
-1
votes1
answer98
viewsQ: Help with javascript script
I need a hand here ! <script> window.onload = function() { var oTextbox = document.getElementById('myTextBox'); for (var i = 0; i < document.oTextbox.length; i++) {…
javascriptasked Carlos Coelho 35 -
1
votes1
answer53
viewsA: How to send mutiplas images with this code!
Thank you all for your help ! at great cost I discovered the problem and am passing the solution to all Thank you ! Codigo Reformulado! <form role="form" method="post" action="./?action=addmult"…
-
-1
votes1
answer53
viewsQ: How to send mutiplas images with this code!
Just sending a picture! My Form <form role="form" method="post" action="./?action=addmult" enctype="multipart/form-data"> <div class="form-group"> <label>Imagen…
-
-1
votes2
answers48
viewsQ: Error Insert mysqli
How to do INSERT correctly? Not inserting ! $id = $_GET['id']; $queryrun=mysqli_query($conn,"SELECT image_path FROM tbl_image WHERE id='$id' "); $row=mysqli_fetch_object($queryrun);…
-
0
votes1
answer50
viewsQ: PHP Help with hd 50000 images
How to load 50,000 images from a hard drive in php my code <?php $imgdir = '/media/hd-ext/Images/JPG/'; //Minha Pasta $allowed_types = array('jpeg'); //Tipo de extensao $dimg =…
phpasked Carlos Coelho 35 -
-2
votes1
answer129
viewsQ: How to use loop for?
How to use loop is that it? I’ve tried every way ever wrong. I’ll express myself better ! What I’m not getting is that this repetition of Metrotiles 1 2 3 4 5 is just one in loope for i , so it…
c#asked Carlos Coelho 35 -
0
votes0
answers35
viewsQ: Php Sesssion Does not pull image
<p><img src="<?php echo $_SESSION['picture']; ?>" alt="" style="width:50px;height:50px;"></p> <p>Bem vindo <?php echo $_SESSION['username']; ?></p>…
-
1
votes0
answers236
viewsQ: Image upload error with PHP
When sending the registration form name, email and password, but the image does not register and I can not find the error. A few unsuccessful attempts: When placing enctype="multipart/form-data" the…