Questions tagged as 'php'

2
answers

process data from php-mysql to json

I have a series of php, ajax and js files to be able to process my information obtained from my database (MySQL) and at the same time I want to send them to a modal using a .js So far I can get my result from my query using a var_dump:...
asked by 05.01.2018 / 14:53
2
answers

Problem Array to String Conversion

I have a class for Codeigniter with a property $keywords that I want to assign with the function set_keywords() class Seo { private $keywords = array(); public function set_keywords($keywords) { $thi...
asked by 04.01.2018 / 03:29
1
answer

How to save image and several fields in the Laravel 5.2 database?

Good morning I want to save the brand, image and status in the database; I'm using    link When I click on save I get the following error, which can be the problem? Thanks for your input. This is my Route Route::resource('mar...
asked by 04.01.2018 / 13:42
1
answer

Error PHP PHP AngularJS

I just uploaded my project to a server, but it turns out that I get a response from the server (Status: 500), this is a short query on my home page regarding the cities:    I have read about it and I have found that it may be because of the  ...
asked by 08.10.2017 / 00:00
2
answers

Return query data with PHP and Json

Greetings my problem is this, I'm trying to make a query with PHP and jquery, where I send an empty data, just so that it returns a row of the MYSQL database but when I show the data in the HTML it gives me this [object Object][object Object]...
asked by 26.09.2017 / 23:43
1
answer

Problems with php when creating a CakePhp 3 project with composer

I'm trying to create a cakephp3 project on a machine with linux mint (ubuntu 16) but I have problems with the php and reviewed several post on the internet and I did what they said but it seems to have no effect I hope to see if someone here can...
asked by 26.09.2017 / 22:16
1
answer

Execute If within a For Each

I'm doing a project using: Php, css, html, mariadb "mysql" I am trying to execute an If statement within a ForEach loop, but the "if" only executes in the first execution of the Foreach, in the rest everything is executed, except for the If....
asked by 25.09.2017 / 16:45
1
answer

How can I see the alert messages in PHP before I redirect to another page?

I want to show what happened when saving an image in the database and then redirect to another page with a header, and I can not see the alert messages indicating if the image was saved. This is my code: <?php require 'conexion.php';...
asked by 26.09.2017 / 00:26
3
answers

I can not change the color of the navbar

navbar.php code #footer{ background-color:#848484; } .navbar-default { background-color: #ed1b2d; border-color: #7a6b6b; } .navbar-default .navbar-brand { color: #ffffff; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-bra...
asked by 25.09.2017 / 17:39
4
answers

Show Data using keyup (Does not work)

I need that when writing in an input of type text, if what I wrote corresponds to a value of the database, the result, which in this case would be the name of a student, is shown in another input of type text . I am entering the data in a modal,...
asked by 25.09.2017 / 21:00