Questions tagged as 'php'

3
answers

Exchange PostgreSQL connection for MySQL connection

I found a project made in PHP OO to be used in PostgreSQL with this connection file. <?php class BD { public function __construct() { pg_connect("host=localhost port=5432 user=usuario password=senha dbname=nome_do_BD...
asked by 06.09.2015 / 14:33
1
answer

Query with INNER JOIN and choose loop reference

Now, I'm querying two tables with INNER JOIN like this: if (! $db->Query("select * from cad_produto inner join cad_variacoes on cad_variacoes.id_produto = cad_produto.id")) $db->Kill(); while (! $db->EndOfSeek()) { $row...
asked by 21.08.2015 / 18:10
1
answer

Upload form image with AJAX / PHP / MySQL

I'm redoing a form for a site that needs to upload an image, but I'm not able to upload and need your help. I already researched and could not find the answer ... Function: function fBlog_Send(){ $.ajax({ type:"GET", url:"ad_BL_Include...
asked by 26.08.2015 / 03:12
1
answer

Fill combobox with ajax

Hello, I have a page that shows a list of system users in a table. At the top of the page, I have 3 combobox that filter the results of the table without refresh. I need to popular the second and third combo dynamically and, at the same time, go...
asked by 25.08.2015 / 19:24
1
answer

Friendly URL with Nginx

I would like your help because I did not get the expected result. I'm trying to create a friendly URL like below: Current URL: meusite.com.br/artista.php?id_artista=1 New URL: meusite.com.br/nome-do-artista Being that later I wil...
asked by 24.08.2015 / 14:16
2
answers

Select PHP in tables with special characters

For some reason the DBA put "ç" on behalf of Mysql database tables and now I can not do select in those tables from php: $conn = new mysqli($servername, $username, $password, $dbname); $sql="select * from Tbl_login"; $result = $conn->query(...
asked by 23.10.2015 / 16:01
1
answer

Json does not return data to Javascript

I have the following code in PHP, but it does not return the data to JAVASCRIPT. It does not return any information: <?php require_once("conexao.php"); $sql_nao_lidas = @mysql_query("SELECT tituloRealizacao, descricaoRealizacao, nomeFoto F...
asked by 26.08.2015 / 22:54
3
answers

Event Routine - PHP

Hello, I would like to know how to do a routine that every Monday, I used a method on my system. Thanks     
asked by 15.10.2015 / 05:14
1
answer

Problem with password encryption (PHP)

I'm doing a Pet Shop system and the problem is this: the customer does the registration, and the password is encrypted to the bank, but at the time of login it gives error. Example: the user is Marcos and his password is 123. At the time of logi...
asked by 21.10.2015 / 02:28
1
answer

Call to undefined function transliterator_transliterate () in php 5.512 using wampserver 2.5

I'm studying SQLITE3 and PHP and checking an example of the PHP Manual appeared the following error: Fatal error: Call to undefined function transliterator_transliterate() Example: link I installed PEAR in Wamp but the error continues...
asked by 16.10.2015 / 03:09