Questions tagged as 'php'

1
answer

Why does not the object function call me and throw me error

The problem is that I want to use the fecth_array by calling the object and calling it what it shows is a message like this: * Parse error: syntax error, unexpected 'public' (T_PUBLIC) in C: \ xampp \ htdocs \ www \ WEB Studios \ Studied Codes...
asked by 08.04.2017 / 01:57
4
answers

Help with laravel 5.1

I'm starting to study laravel 5.1, I'm excited about this but when I create a controller (contactController) <?php namespace app\Http\Controllers; use app\Http\Controllers\Controller; class ContactoController extends Controlle...
asked by 18.07.2016 / 02:03
3
answers

Send checkbox as fix in ajax and process it in PHP

I have a problem when sending the value of several checkboxes through ajax. For example I have: <input type='checkbox' name='ids[]' class="checkBoxGroup" value='1' /> <input type='checkbox' name='ids[]' class="checkBoxGroup" value=...
asked by 18.05.2016 / 16:46
1
answer

HREF JQUERY CYCLE [closed]

I need a cycle in jquery where I am referencing different pages and the variable is increasing. Example setTimeout(function(){ <?php $b=1; ?> location.href="paging.php?page=<?php echo $b?>" <?php $B++?> } , 2000)...
asked by 22.05.2016 / 21:03
2
answers

SESSIONS PHP and MySql

I am learning sessions in PHP, I already have my session created, in a login I can already enter with real data from a database, in this case the user and password, in my page where they are already registered I put <?php echo $_SESSION['s...
asked by 16.06.2016 / 05:36
2
answers

How to count, sort and store in variables, the data that I bring from the BD?

Good morning, I have a small query ... I have this table in Mysql This is my query: SELECT at_ce.condicion, COUNT(at_ce.id) AS cantidad_condicion, gpr.grupo_programa, COUNT(gpr.id_programa) AS cantidad_grupo_prog...
asked by 17.06.2016 / 13:33
1
answer

Javascript - Onclick in links

My question is: can onclick events be done on links? cambiar_estado.php $query = "SELECT * FROM usuarios_datos WHERE ID_OBLIGATORIO = '".$_REQUEST["Id"]."'";...
asked by 15.11.2016 / 16:09
1
answer

ERROR: Call to a member function fetch_assoc () on a non-object in

I have the following code in php but it sends me a fatal error: Call to a member function fetch_assoc () on a non-object in /public_html/gcm/run.php on line 46r, despite that the script apparently works, How could I solve it, I'm sending the cod...
asked by 12.02.2016 / 14:00
3
answers

Error validating existing user in the DB with PHP

What a good day, when trying to validate a user in PHP I execute the var_dump () function and it returns bool (false) which is incorrect since I am entering a user that does exist in the database so which should show me true, it took several day...
asked by 10.05.2016 / 19:00
1
answer

Ajax and PHP query

Dear. I have a chart made with highchart, which takes data from a base in mysql. I need to send two data through ajax, the range of dates, start and end date. This is the code portion of the ajax. The file is called index.php <script>...
asked by 19.04.2016 / 14:24