Questions tagged as 'php'

1
answer

how to insert data from an array into a table

Hello good afternoon, I have been trying to solve a problem for a while I'll explain: I have a form that when I send the data I store it in an associative array to pass it in the constructor of the class since there are many variables and...
asked by 31.01.2018 / 20:26
1
answer

Upload files to specific folder

I want to upload a file to a specific folder, but I'm taking the route from a database query, but when I upload it, it saves it in the root path. $query = mysql_query("SELECT * FROM registros WHERE id_prod = '$id'") or die("consulta".mysql_err...
asked by 31.01.2018 / 19:14
2
answers

The array sent by ajax gives me failures

Hello good, I have a problem, I pass an array by ajax with this function to a controller in laravel and its values I want to store them in a database, the problem that I have esque in when I execute the database query the system cascates a...
asked by 31.01.2018 / 19:22
0
answers

Combine several tables and bring two records of a specific table mysql

Greetings to the community, I do not usually ask much, but this time something is giving me a headache, I am a beginner and I have a problem, I do not intend to solve it but if they guide me it is a great help. Veran I have two tables cases_...
asked by 30.01.2018 / 18:02
0
answers

how to compare a variable with regular expressions in php?

I need to compare a variable using php, I pass my code so you understand me better $palabra ="hola=Adv&%ASa"; if($palabra == "hola="){ echo "bien"; }else{ echo "mal"; } What I need is that I recognize any character that com...
asked by 30.01.2018 / 22:32
1
answer

Show user logged in php

Greetings, I have a basic log system, but I want you to show who is logged in, here is my code: <?php /* start the session */ session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <title>...
asked by 26.01.2018 / 22:19
0
answers

shows me the code that contains my php when compiling

I have an index.php that sends to pagina.php and when I click on the send button the browser shows me the PHP code, why can it be? (I'm using XAMPP and MySQL) <form action="pagina.php" method="post" > <div class="field">...
asked by 28.01.2018 / 01:06
1
answer

How do I access a view if it is a normal user and another view if it is an administrator using the same driver?

I wanted to access a view by means of a function in a controller if it was an administrator and in another view through that same function of the same controller for the user, but I do not know if this is possible or if it will give me problems...
asked by 28.01.2018 / 16:11
0
answers

Error 405 when consuming Web Service

This is my code: <?php require_once("../nusoap-0.9.5/lib/nusoap.php"); $wsdl = 'http://url'; $client = new nusoap_client ($wsdl, array( 'soap_version' => SOAP_1_1, 'trace' => true)); $err = $c...
asked by 29.01.2018 / 04:30
1
answer

How to consume from Java a Web Service made in PHP

I have a Web Service made in php, when I try to create a Java client to consume it, I get the following error. I have seen on several pages that to install the missing plugin you should use this link link But it does not work for m...
asked by 24.01.2018 / 12:18