Questions tagged as 'php'

0
answers

Show directory folders

I have this code: <script> $(document).ready(function(){ $(".DOCcontenido_t").click(function(){ $(this).find("DOCcontenido_t_p").slideToggle(); }); }); </script> <?php $directorio = opendir("."); //ruta actual wh...
asked by 25.11.2018 / 02:20
0
answers

How to extract data from the database, store it in an associative array and pass it to an implode in PHP and Mysql correctly?

I am trying to extract from a DB query a series of data and these data apart from printing them in a table, I also want to store them in an "implode" to generate a PDF format where the same data will be extracted by means of a "explode". To v...
asked by 25.11.2018 / 01:31
0
answers

how to pass title of a news post to the URL

I'm working with the friendly URLs in php and I've seen on many websites that the urls pass the same title of the content and I would like to know as I do not have idea of how to achieve it the friendly URLs work like this <a href="<...
asked by 24.11.2018 / 22:33
0
answers

Problem when displaying image with other extensions

I have a small problem with this code and it is as follows: public function leermanga($manganombre,$espacio_id,$numero='1') { View::template('leermanga'); $espacio = new Espacios(); $espacio = $espacio->find_first($espacio_id);...
asked by 25.11.2018 / 01:01
0
answers

Fatal error: Call to a member function bind_param () on boolean

I am creating an android application that communicates with the web service in order to add data to mysql. When executing the code, the application sends some data and expects a response from the server, the server is responsible for saving the...
asked by 19.11.2018 / 06:06
0
answers

Error uploading files in form and sending to the controller. Laravel

In a form I have an input of type 'File' to upload a file and get the value of that file in the controller, but when doing dd ($ request-> file ('file') it shows me NULL. {{ Form::open(array('url' => '/save'), ['id' => 'Form'...
asked by 19.11.2018 / 13:59
1
answer

how can I show a javascrip variable and store it

How can I show in php the variables that javascript prints? I want to show these variables in php: var x=e.latlng.lat; var y=e.latlng.lng; window[e.type].innerHTML = "Lat: " + x + " Log: " + y + " contador: "+cont ; I'm trying like this...
asked by 19.11.2018 / 16:23
1
answer

Parse error: syntax error, unexpected '$ page_title' (T_VARIABLE) in /home/pensemos/public_html/gestionelo/gestionelo/1_view/login.php on line 22

I get this error Parse error: syntax error, unexpected '$ page_title' (T_VARIABLE) in /home/pensemos/public_html/gestionelo/gestionelo/1_view/login.php on line 22 ?php if ( ! session_id() ) session_start(); $_SESSION['Email'] = ""; $_SESSION[...
asked by 19.11.2018 / 15:05
1
answer

undefiened index file

I've been stuck with this for several days and I still have not been able to solve it, the thing is that I have a form which I sent with ajax , the form has some fields of type text and one of type file that is my big problem I have trie...
asked by 19.11.2018 / 16:18
0
answers

Problem with TCPDF "TCPDF ERROR: Some data has already been output, can not send PDF file"

At the moment of changing the local server, the webapp stopped working correctly with the TCPDF and throws the error mentioned above, the environment is the same, xampp in windows and the chrome browser. I leave the code in case someone can help...
asked by 19.11.2018 / 17:10