Questions tagged as 'php'

2
answers

After ajax action, data is not saved in the mysql database

I am capturing latitude and longitude through the Cordova plugin, and after that I store it in two variables and then, through an ajax request, I transfer these values to a PHP script where I am saving the data to a table called a map. The probl...
asked by 04.11.2015 / 23:52
1
answer

What is the best way to escape a string before inserting into the database. addslashes () or mysql_real_scape_string ()?

I am developing a project that involves passwords among other important information that I need to insert into the mysql database. My question is which option should I use to escape this data against sql injection. Right now I'm using a regul...
asked by 11.11.2015 / 14:16
1
answer

Orientation Ruler

In some editors we have an orientation ruler in which we can make some settings, for example  the spacing between text and foliage. I need to produce something like: IcurrentlyuseaTextEditorcalled Summernote , it returns all the text in html...
asked by 05.11.2015 / 19:23
2
answers

Multi-language system

I have a website and would like to implement a multi-language system. I have some doubts about good practices. I would like to have only one domain ****.com . I think this would force me to use systems implemented in php, or other languag...
asked by 25.06.2015 / 22:17
1
answer

How to sort and filter queries between two tables?

I have two tables, one of posts and one of friends. In my script there is a feed area where I would like to display the latest posts from the logged-in user's friends. But instead of bringing the last posts in order, the result sorts the...
asked by 13.02.2015 / 05:56
2
answers

Use LIMIT together with LEFT JOIN in more than one table

I have a anuncios table, in which I want to list the anuncios of the user together with the imagens , I'm trying with the query below, but if I have 5 imagens registered in anuncio , in the table it will d...
asked by 20.02.2015 / 04:02
1
answer

Capture amount of Items in WordPress Cart

I would like to know the best way to capture the amount of items in the Woocommerce carton in Wordpress, if there is any shortcode, etc.     
asked by 20.02.2015 / 19:58
1
answer

Read the PHP data in Javascript

I'm a beginner programmer both in PHP and Javascript and I'm having a question about a project I'm developing. I have a server connected to a PHP file and I'm requesting the following fields $FLD="idfca, solfca"; I created a function ins...
asked by 20.02.2015 / 14:43
1
answer

How does XCache really work?

How does XCache work with PHP? Do you need to use the XCache functions to be able to use your "advantages"? For example: <?php echo xcache_inc('count'); ?> Or, from the moment I enable the extension=php_xcache.so...
asked by 23.02.2015 / 15:54
1
answer

DOMPDF: Frame not found in cellmap. What causes this error?

This problem has haunted me for a long time and I still can not find a solution for it. I have developed a system, where in a given location, the user can print a report, which is generated by class DOMPDF , in Laravel 4 . It s...
asked by 12.02.2015 / 19:55