Questions tagged as 'php'

2
answers

How to save array of select Mariadb and save values in different variables (not the complete array) PHP?

Hello, I have a function that returns an array but I want to access by means of its indexes to the value that I want from the selected fields in the database, for example, to save the variable at the index [0] in other words the first value of t...
asked by 13.09.2017 / 19:19
2
answers

Help in php with arrays

Hello friends I am a beginner in php language, I need to do the following: Create an arrangement with movies and its leading actor. In ANOTHER arrangement to put the movies and their release year. Taking data from both arrangements, show each mo...
asked by 11.09.2017 / 18:58
2
answers

Uncaught TypeError: Can not read property 'post' of undefined

My code so far: <p><script language="javascript"> function funcion(){ var a ="field_1"; var b ="field_2"; var c ="field_3"; var d ="field_4"; var e ="field_5"; var f ="field_6"; var g ="field_7"; var...
asked by 30.08.2017 / 09:34
1
answer

Store html code in a variable using (php)

Saludes! it turns out that I have this little php code that extracts the source code of a page. HTML <?php $file = file('https://ged-tubesex69.rhcloud.com/demo.php'); foreach($file as $line){ $texto = nl2br(htmlspecialchars($line).' '...
asked by 29.08.2017 / 02:21
1
answer

Do not insert repeated data into MYSQL

I'm trying to upload some files to MySQL as a project, but the problem is that if I select the file 2 or more times it comes back and uploads them. The idea is to make when you try to upload the file read the rows and say that X number of c...
asked by 31.08.2017 / 20:52
2
answers

PHP insert multiple fields to database

A question at the time of entering a comments to a worker to the database through his ID only I enter a single comment not the multiple that I can add through the textbox. <script> $(document).ready(function(){ var i=1;...
asked by 31.08.2017 / 11:44
1
answer

Problem with variable $ _SESSION

I have this function, which does not recognize me $_SESSION['id_usuario'] variable%, showing me the indefinite and the question is if there is, as I am using it in other functions. public function mostrarImagenController($datos){ list(...
asked by 23.08.2017 / 17:46
1
answer

Problem when doing an echo with data brought from a database

Good Day I am making a query from php to sql server 2005, I already made the connection and I can show a result, but if I want to add more fields I returned an error, I'm working with WebMatrix and IIS Express, include("header.php"); include("...
asked by 22.08.2017 / 17:01
1
answer

problem with updating sql data

hi friends I have a problem and I would like to know what you say or what I have wrong or I do not know, happens that I have a form that has one field that is filled by a query query, and then when editing a box the field is not updated Here I...
asked by 21.08.2017 / 02:26
1
answer

PHP web service consumed by JavaScript

I need to create a simple web service in PHP and consume it from Javascript. I do not know if I should use Soap, nuSoap or Rest (I did the tests with nuSoap). None of the examples I find work for me. I just need the basic structure of a re...
asked by 21.08.2017 / 22:13