Questions tagged as 'php'

2
answers

how to pass multiple parameters per url?

I want to pass two variables through the same url I tried this: $id = '24,54,32,65,34'; $agencia = 'AGIP, ARBA'; "url?id=$id&agencia=$agencia" Clarification: yes or if it should be by parameters and variables I am using curl...
asked by 07.11.2017 / 20:06
2
answers

Show a specific data of an associative array

A question about managing arrays in PHP. I have this array: $curso = array( "DAW" => array( "1º SI" => array("horas" => 230, "plazas" => 30), "1º BD" => array("horas" => 200, "plazas" =>...
asked by 24.11.2017 / 18:40
2
answers

pass value of php variables to javascript of different file

I have a php code (test.php) in which I have a couple of variables ($ lati and $ longi) whose values I want to send to a .js (main.js) to use them in variables javascritp but I have not got it , after some attempts I decided to clean the main.js...
asked by 22.11.2017 / 13:25
1
answer

Problems with session_start (): Can not send session cache limiter

I'm doing a login using the MVC model in PHP and I have a problem of    Warning: session_start (): Can not send session cache limiter - headers already sent (output started at C: \ xampp \ htdocs \ backEndEmisoraSanJoseObrero \ views \ module...
asked by 22.11.2017 / 22:19
2
answers

Collect xml data in php

Good afternoon, I'm making a website to send sms to customers, so far I have managed to use the api that provides the sms service contracted, it would be something like this: <script> function enviar(telefono,mensaje){ //doc...
asked by 23.11.2017 / 16:24
1
answer

problem when relating tables in MySql

Inside my mysql DB I have a table called teachers, which looks something like this. Nombre | email | id | password ... The problem is that I have to relate it to another call grupos , (it's to classically organize a group with its m...
asked by 20.11.2017 / 13:09
1
answer

Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given

The function performs well the registration but does not respect the if and shows:    Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ projectphp \ model \ teacher.php on line 30 p...
asked by 04.01.2018 / 00:42
1
answer

Can not compare the answer AJAX jquery PHP

I hope you can help me. I am working on a web project in php and ajax of JQUERY the problem I have is in the following code: $.ajax({ url: ruta, type: 'POST', data: img, contentType: false, processData:...
asked by 02.01.2018 / 20:47
1
answer

Problem with Asyntask-PHP

My PHP <?php require "dbconfig.php"; $con=mysqli_connect($servername,$username,$password,$dbname) or die('Unable to connect'); if(mysqli_connect_error($con)) { echo "Failed to Connect to Database ".mysqli_connect_error(); } $name=$_POS...
asked by 31.10.2017 / 21:27
1
answer

Receive XML response using CURL

I have a code that returns a response from Amazon MarketPlace, it is by get and I get the answer by cURL, if I put the URL in the browser it brings me the xml, however if I do it by php it brings me the plain text, even I do not know much about...
asked by 30.10.2017 / 14:15