Questions tagged as 'php'

1
answer

Update statment mysql php row in database

Please could you help me what is the error in the following php code to update a record where the record mail is taken in the database ... when executing it I jump to the automatic error "noUpdate". I appreciate your help so that the sentence is...
asked by 01.06.2018 / 03:58
1
answer

Notice: Undefined index in a login with PHP and MySQL

I am creating a system where 2 logins, administrator and teacher can be made. The Administrator login works, but in case the user or password is incorrect, this error is marked. So far so good, but in the Professor's Login, I always see that err...
asked by 11.06.2018 / 06:26
1
answer

Take data from the array to independent variables. MYSQL

I have a query SQL that brings the data that I want perfectly. When doing a print_r it shows it to me like this: Array ( [0] => 6 [idFormacion] => 6 ) Array ( [0] => 9 [idFormacion] => 9 ) Array ( [0] => 12...
asked by 10.06.2018 / 18:25
0
answers

How can I pass a php variable to a javascript function and it returns the php variable?

I need to make a page and with the button it increases and decreases. The page of paginador function I want to define it in head but I do not know how to do it echo '<table border="1">'; for($i=0;$i<10;$i++){ $contador=...
asked by 10.06.2018 / 15:58
3
answers

Help with loading SELECT table and INSERT data to display in a PHP MYSQL table!

I am new in these areas I found your page on the WEB and I want a little hand for this system that I am doing, since my expertise with programming and web development is really basic and I am still in the process of perfecting myself and learnin...
asked by 19.06.2018 / 21:15
1
answer

Doubt rollback in PHP / MySQL

I am starting to use TRANSACTIONS in PHP / MySQL but I am observing the following situation: In my tests I have noticed that rollback is not necessary although I have read that they are always put to return the data to its original stat...
asked by 20.06.2018 / 06:02
1
answer

Error: 150 "Foreign key constraint is incorrectly formed

I had an error in creating a FOREIGN KEY. I'd like to know what I'm doing wrong. Well, I've been trying for some time to find out what the error is. Thank you Annex code Sql: CREATE DATABASE freatico; USE freatico; CREATE TABLE medicion (...
asked by 18.05.2018 / 20:20
0
answers

delayed query in a phpmyadmin condition

I'm doing two types of consultations. When I reference a field, the query is done in 4 seconds but when I do not place reference it tends to take 30 seconds. This is the one that takes 30 seconds: if(cliente == "" && termPago=="0" &...
asked by 30.05.2018 / 20:33
0
answers

Who can help me build this table in html?

I want to show a table in html of a query of the database of three tables that are related, the tables are structured as follows: Restaurant | Platos | Precios ----------------------------------------- id | id | id nombre...
asked by 21.05.2018 / 03:19
1
answer

Error with a PHP and MySqli query

I have a problem when I make a query I get an error that I do not know and I do not know why this happens to me it says something with a function called stdClass and I did this function to see if it worked but not, what can I do in this c...
asked by 17.05.2018 / 03:08