Questions tagged as 'mysqli'

1
answer

Notice: Undefined variable Warning: mysqli_query () expects parameter 1 to be mysqli, string given

I have this code in registry.php but when I get the values from the index.php form when the entries are not added to the database. <?php //conexion con la base de datos y el servidor $connection = mysqli_connect('localhost', 'root', "", 'f...
asked by 26.07.2018 / 05:06
1
answer

Warning: mysqli_query () expects parameter 1 to be mysqli

I have the following code <?php function consulta () { global $conexion; $dbhost = "localhost"; $dbuser = "root"; $dbpass = ""; $bd = "alumnos"; $conexion = mysqli_connect($dbhost, $dbuser, $dbpass, $bd); $result = mysqli_query('SELECT...
asked by 28.09.2017 / 06:15
2
answers

Errors in login form

I have made a page with Dreamweaver that has a private access area so that the administrator of the site can add content that is seen in the public part. I try it in local and everything works well. However, after having passed everything to...
asked by 18.07.2018 / 17:00
0
answers

Error E / JSON Parser: Error parsing data org.json.JSONException: Value br of type java.lang.String can not be converted to JSONObject

Very good to all and first of all thank you for reading this I've been pulling my hair for a couple of days because I try to create an application in android studio, but I can not get past the attempt to create the user account, I use PHP, wa...
asked by 17.07.2018 / 12:08
1
answer

Error when listing in php with database

This code shows me a single row of the database, when in my database I have 11 rows, to which this should be written. Thanks in advance          while($row = mysqli_fetch_array($result)){ // Array temporal para crear una sola categoría...
asked by 22.07.2018 / 00:38
1
answer

As an achievement Insert data in relational table PHP and MYSQL

Very Good ... I keep trying to learn to ask questions on this prestigious site. I managed to upload an image where three tables are displayed that I hope are well related but so far I can not do INSERT in the second or in the third table, as I c...
asked by 11.07.2018 / 23:24
1
answer

copy field from one table to another php

Hi, I would like to know how I can finish in a good way the insertion of a field that is already inserted in another table, in this new one, I have what I will show next: $copcod = mysqli_query("insert into tabla_destino (select id, código fro...
asked by 10.07.2018 / 10:16
0
answers

Problem when updating a record

When I want to update I get 3 tables that say    notice: undefined variable: user in c .... My code is as shown below: if(isset($_GET['cve_agregar'])){ $cve_agregar = $_GET['cve_agregar']; } if(isset($_GET['usuario'])){ $usuario...
asked by 19.07.2018 / 17:24
0
answers

Help sum and multiplication of php numbers

I've made a store in php I'm on the subject of the cart and I have everything done almost but I get the following problem that I have not yet been able to solve SQL Queries //solo se muestra los productos de la session del nabegador mysqli_...
asked by 08.07.2018 / 19:18
0
answers

How to create menus and sub-manus with php and mysqli in a dynamic way?

I want to design a menu dynamically with php and msqli. Where I get the menu and submenu. to the drale click that sends me to an appendix called products. php and I display the products of my menu. And if there is a submenu that shows me the sub...
asked by 08.07.2018 / 07:27