Questions tagged as 'php'

1
answer

How to save data in Mysql using prepared statments

I am changing the fields to save date in MySQL, from varchar to date , and I was in doubt about the correct way to include date fields in the database using prepared statments . As I use DD / MM / YYYY during the script to...
asked by 28.09.2015 / 07:19
1
answer

navigateToURL is not sending POST

I've been trying to send parameters from actionscript to php , I've checked the following page: Send variables using POST I made it right, but at the moment it runs navigateToURL(urlRequest, '_self'); , it always sho...
asked by 08.04.2015 / 19:48
1
answer

Creating a single function

How can I make the code below stay in a single function , as I'm having some difficulty. <?php // Procura por um valor especifico para aplicar valor verdadeiro ou falso function encontrarValor($urlgeral, $nomeserver){ if (preg_ma...
asked by 09.08.2015 / 11:22
1
answer

Charset Mysql and PHP

My table in mysql has UTF-8 formatting and all accents appear correctly, but when I make the request with PHP and display the data they do not appear in UTF-8 format. p.s: My page already has the goal for utf-8. Do you know what might be c...
asked by 05.08.2015 / 16:25
1
answer

How can I find out which file includes the other in PHP?

I would like to know in PHP how I can find out which is the parent file, in an inclusion, through the child file. Example: avo.php pai.php hijo.php In the avo.php file I have: include_once 'pai.php'; And in the file...
asked by 04.08.2015 / 20:22
1
answer

Search for a word in a JSON result

Personal I have the following JSON: "results": { "collection1": [ { "prod": { "text": "COLCHÃO NAUTIKA KING SIZE" I have a search form: <form id="search" method="POST"> <input type="text" name="search" />...
asked by 31.07.2015 / 22:13
1
answer

Replace backslashes with single bars - Image URL

I'm trying to remove the backslashes to open the URL of the image, I found a way to override, but part of my string was lost: function formatURL( $url ) { echo $url."<br />"; $url = str_replace('\', '/', $url); echo $ur...
asked by 27.01.2015 / 17:20
1
answer

Search field in a table with PHP

I created a frame on the intranet through WordPress (php, MySQL) to list the extensions of company employees. Clicking the link of extensions displays a table and the scroll bar for viewing the list. I need to create a search field (field cr...
asked by 04.02.2015 / 19:00
1
answer

Check for completed session

I'm having trouble checking for something inside the session. The functions I am using are:    Function to check if someone is logged in if(usuarioestalogado()){?> <p class="alert-success">Você está logado como: <?= usuariologado()...
asked by 27.01.2015 / 18:21
1
answer

Convert HTML menu to WordPress

For the first time I'm working on converting an HTML template to WordPress. I have some difficulties and the one that is bothering me the most is the following: I have an HTML menu and would like to convert it to WordPress, keeping the dropdown...
asked by 11.02.2015 / 04:21