Questions tagged as 'php'

1
answer

Check if a directory is a git repository

I'm doing a small project with git and PHP through the library GIT.php , however I do not know what command to use, or how I can check if a directory is a repository. I have tried to use git rev-parse <path> but I have not b...
asked by 10.06.2016 / 17:29
4
answers

value auto-incremental ID

I have a question about the AUTOINCREMENT values in MySQL In a system that I am developing allows you to save projects and the corresponding paperwork that must be kept (records, letters, forms), in the registration window it asks you to ente...
asked by 26.05.2016 / 06:56
2
answers

Upload image in PHP

Hi, I'm a bit rusty in PHP so, in the middle of refreshing concepts, I'm doing a form to upload images to a BD (the name and the path, really) and then, if that image is in the folder of the server specified in the route, show it on the screen....
asked by 08.08.2016 / 18:20
2
answers

Modal of bootstrap does not show its corresponding content using CodeIgniter

Situation: I have the following view in CodeIgniter that shows a table with users, one of the fields of each user is the "Edit" option, which when clicked on it opens a modal in which the user fields can be modified , but in this cas...
asked by 12.08.2016 / 14:11
1
answer

Filtering categories by link in same main page, error Trying to get property of non-object

I have a main page composed of articles that show the last articles that have been received, and list (links) of all the categories and the number of items that each category has. What I want to do is filtrar , that is to say that w...
asked by 30.06.2016 / 11:54
2
answers

Problems with a script

I have the following script echo "<script language='javascript' src='ajax.js' type='text/javascript'></script>"; echo "<script language='JavaScript' > function c_resolucion(resolucion) { var resolucion, cajas;...
asked by 30.06.2016 / 16:00
1
answer

Bootstrap slider (carousel) in wordpress

I was optimizing the web but I realized that the plugin I used for the page slider slowed it down a lot (and made it weigh a lot more) so since I'm using bootstrap, I decided to make a new one with code. The problem is that it shows absolutely n...
asked by 31.05.2016 / 12:46
1
answer

Validate form in codeigniter

I am trying to validate a form in codeigniter and I have not been able to achieve it. I would like to validate the variables that arrive from the input of the form mailcontacto.php that is in view and that in that form show me the validation err...
asked by 04.05.2016 / 17:12
1
answer

Pass HTML to image [closed]

My problem is this, I need a js or PHP library to be able to pass HTML code to an image and it is downloaded automatically. $html = "<div><p>Soy un código HTML</p></div>" htmltoPNG(<?php echo $html ?>); <scrip...
asked by 28.04.2016 / 19:13
1
answer

How to create a new page with a format already established in FPDF?

I have an application already prepared in which one of its modules is to generate PDF reports, the report is generated excellent, the detail is that I need every 20 records to generate a new page of this report but it is generated in white and t...
asked by 05.05.2016 / 22:42