Questions tagged as 'php'

1
answer

Avoid inserting into a table using PHP / SQL if this record already exists

When I precede in my " Submit " I execute an insert " Insert " that saves a series of records " X[i+] ": id,_Nombre,__fecha a id,_Nombre,__fecha 1__Juan_____22/12/2000 2__Fulano___22/12/2000 3__Aldo_____22/12/2000 I wish that if...
asked by 19.07.2018 / 17:13
1
answer

Passing data from one row (table) to another PHP page

I seek your help with the following case. I have an HTML table which I load dynamically from mysql, each row of the table has a button with which I intend to take the data of the selected row to another page and collect the data in a form and fo...
asked by 17.07.2018 / 15:39
3
answers

Parse error: syntax error, unexpected '' in C: \ xampp \ htdocs \ php \ Country and City.php on line 17 nose why you mark it

<html> <head><title>Pais y ciudad</title></head> <body> <table width="50%" border="10"> <?php $ciudad=Array("Pais"=>"Estados Unidos","Lugar"=>"Miami"); $ciudad=Array("Pais"=>"Estados Unidos","...
asked by 15.10.2018 / 02:56
2
answers

How to perform INNER JOIN with 3 tables using MySQL?

I have a question with a INNER JOIN query, in my Database I have 3 tables that are the following: Its structure is the following table educational_level be related to the grantee table and the grantee table is related to the grading...
asked by 18.10.2018 / 19:54
1
answer

PHP split chain and create an array

Good I want to extract a string with PHP in separate strings I do not know what method to use, my document .php send me by means of AJAX a string similar to the following: ?i=0&edad=18_28&tarifa=40_80,81_110&servicio=...
asked by 21.10.2018 / 05:51
1
answer

Convert hexadecimal to float

I am working with php and I get some coordinates in hexadecimal format (this can not be changed because it is a message that is received from the SigFox network). The values that are received are C40B3986 and 4564AF79 and the value...
asked by 15.10.2018 / 10:54
1
answer

I fill in the fields of the bd in the wrong order

I am doing a record for a page and this one is good for me except for one big mistake, and it is that it saves the data in fields of the bd that it should not, attached capture. As you can see in the user the password is put, in passwor...
asked by 03.08.2018 / 14:30
1
answer

How to extract an array from a JsonObject in php

How do I extract messages from this jsonobject with foreach or for? - PHP $json = {"muestra":[{"mensaje1":"1-","mensaje2":"2-"},{"mensaje1":"3-","mensaje2":"4-"}]}     
asked by 04.08.2018 / 17:03
1
answer

How to block dates in a DateRangePicker with data from an array

I have a bootstrap daterangepicker in which I would like to make a series of conditions so that according to the dates in the database they are blocked and change color. My problem is that I'm not sure how to tell the DateRangePicker to take the...
asked by 17.08.2018 / 11:29
2
answers

How to use url segmentation in asp.net mvc?

Good I have the following doubt, I want to know how I can work with the url, what I mean is the following, in PHP / Codeigniter, we worked in this way. //URL= https://localhost/algo <?php if($this->uri->segment(1)=='algo') {?> //s...
asked by 16.08.2018 / 19:12