Questions tagged as 'php'

2
answers

How can I recover the data from a textarea that TinyMCE has to format the text

I have a textarea to which I apply the TinyMCE text editing plugin ... Now ... when I want to send the content of that textarea to the database, it directly sends it to me null ... In the Head position the following script (this takes it out...
asked by 06.07.2017 / 17:51
2
answers

Format timestamp with Javascript

I have tried in many ways, and none of them work for me. It's simple what I want to achieve, I do not know if it's easy to do it. I want to transform, this: 1510060016 // time() -> PHP In this Hace 1 hora My idea was to do someth...
asked by 07.11.2017 / 14:22
1
answer

Problem when making a record in the database

Good, I have uploaded all the files to a free server, they are the databases, I have tried the files without problem via local with wamserver , but already uploads this problem when inserting data .    Warning: mysql_select_db () expects par...
asked by 27.06.2017 / 02:21
1
answer

How to update with Functions

function actualizarMateriales($materiales,$descripcion,$cantidad,$precio,$total) { require('../configuracion/conexion.php'); $conexion = conectarse(); $sql = "UPDATE materiales SET materiales='$materiales', descrip...
asked by 27.06.2017 / 23:58
1
answer

Problem with num_rows

Good afternoon, I have this code that is supposed to give me the number of books in the database, but it does not work. public function getTotalBooks() { $sql = $this->db->prepare("SELECT * FROM libros"); $res...
asked by 13.06.2017 / 18:05
3
answers

Send variable to a modal

How about, I'm trying to send an index.php variable to a modal without reloading the page at all, since some forms are previously filled in, then I can not just send by get and reload the page (which would be very easy) var fech = $('#input')....
asked by 09.06.2017 / 17:38
1
answer

Go through an array from a controller in Codeigniter

good I'm starting with php and codeigniter, I have the following problem I'm going through an array from my model, which is the result of a query, how can I read my records in the controller one by one? function getClientes(){ $sq...
asked by 10.06.2017 / 04:34
3
answers

Error executing php artisan command

When executing the php artisan command within my project in laravel, it gives me this error: PHP Warning: require(/root/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /root/blog/bootstrap/autoload....
asked by 18.08.2017 / 17:51
1
answer

UPDATE variables and data in PHP and MySQL

I need to save a path of an image in my code, in case the user does not want to modify the image when modifying a product. The current problem is that it sends blank and modifies the url of the image in the database <?php session...
asked by 17.08.2017 / 00:37
1
answer

how to recover the data sent by post in php?

I have a form and when I send it, it connects to a php file where it inserts the data, then an alert appears that says correct insertion, and returns to the form, all right up there, the bad thing is that when return to the form the fields will...
asked by 19.06.2017 / 16:34