Questions tagged as 'php'

2
answers

Compare strings with accents, UTF-8

Something is escaping me here, I'm doing the curl to a weather page, if the results have accents and comparing with exactly the same string in full this condition returns false (not equal). This is purely for testing: function get_page($url) {...
asked by 30.06.2015 / 17:10
1
answer

Error: mysql_fetch_assoc within function

function retornaStatusPesquisa($numeroStatus,$nomePessoa, $nomeTabela){ $query = mysql_query("SELECT COUNT(status) AS valorStatus FROM $nomeTabela WHERE status=$numeroStatus AND nomePessoa='$nomePessoa'"); $contador=mysql_fetch_assoc($que...
asked by 30.06.2015 / 00:38
3
answers

Pass Javascript parameter to PHP

I want to pass 2 (two) parameters from my javascript page to a PHP page. I already searched the net, and I only find this logic when PHP is on the same page as javascript. Does anyone know if this is possible? and how to do it?     
asked by 02.07.2015 / 19:26
1
answer

How to get a form variable in HTML?

I have an HTML file (html1) to fill user and pass , and call a PHP file (php1) to authenticate the values. But I need the user in another PHP file (php2) how do I call the user value in the php2 file?     
asked by 01.07.2015 / 20:11
1
answer

how to make a query that the user can generate?

Is there any material to learn? For example: I have a pet shop: Let's say that in my HTML I have several select boxes (animal, breed, sex, age, etc.), in it I can select the dog or select puppy > race or select puppy > rac...
asked by 01.07.2015 / 03:42
1
answer

How to display source codes on screens as help sites? [closed]

How do you register and display source codes on-screen like this site? I'm creating a site where I register everything I develop as a library. But I want you to show the codes on the screen when I choose an article. I tried to register as if...
asked by 03.07.2015 / 20:17
1
answer

How to identify route in Laravel?

I'm using a template for the menu and footer to be duplicated on all pages. I put if in the footer for when it is a certain route he change the content, but that is not what is happening, he is interpreting each and every route as "home"....
asked by 02.09.2014 / 18:53
1
answer

How to check a radio button

My question is how to check if a radio button has been selected! I have a while as you are finding values within a table , it adds the buttons radios . So when radio is selected and clicked on "IR" it will call the other pag. passin...
asked by 01.09.2014 / 14:11
1
answer

Fatal error while using isset

I have a code that is giving error and I can not fix it. The snippet of the file giving error is this: if(isset(!($_SESSION['username']) && ($_COOKIE['remember'] == "remember"))){ $cname = FilterText($_COOKIE['rusername']); $cpass_has...
asked by 07.09.2014 / 03:36
1
answer

Error in an sql in laravel

I'm having trouble with a sql in the laravel where I make a join, but the error happens even in where , where deleted_at is equal to null , remembering deleted_at is timestamp . In the database is running sql, bu...
asked by 28.08.2014 / 15:30