Questions tagged as 'php'

1
answer

Syntax error when redirecting with header

I try to do a redirection with header like this: header('location:perfil.php?CodUsua=<?php echo $_SESSION['CodUsua']; ?>'); I receive the following error:    Parse error: syntax error, unexpected 'CodUsua' (T_STRING), expect...
asked by 25.06.2017 / 23:37
1
answer

Requiring a file makes ajax not work

At the moment I am doing a dynamic table with ajax and everything works fine .. until I enter a label <?php require("nav.php"); ?> in a div, this file is a generic menu; Suddenly the error appears in the firefox console: TypeErro...
asked by 27.06.2017 / 15:18
1
answer

Forum limit of votes by post PHP

Hi, I'm trying to make a forum in which registered users can write comments and assess, the problem is that a registered user can rate as many times as they want and I would like the user to rate 1 time per comment. The page is link The...
asked by 12.06.2017 / 15:18
1
answer

Laravel product detail

I'm doing a project in laravel and I want to have two show functions in the controller, that is. In first I have the list of categories that gives an id to each element, then I enter the http://localhost:8000/item/4 element having this...
asked by 27.03.2018 / 00:55
1
answer

Perform a query using a select in HTML

Very good, I'm trying to make a query using the selected option in HTML select, which I named "filter", I create the dynamic options and with a switch I get the selected. The case is that from there I'm stuck do not know where to put the code th...
asked by 27.03.2018 / 15:48
1
answer

Problems with JOIN MySql

Dear friends, I really have a serious problem, I have several tables that store certain information of users such as their facebook, twitter, instagram, image, email, etc ... I will show the SQL and explain the problem: SELECT IF...
asked by 25.03.2018 / 18:27
1
answer

Prevent browser from using cache with ajax

Good morning, I have the following code which verifies me through ajax to a file called ultima_cuenta.php that makes a query and returns the last id of a table called accounts, this code is executed once the password is opened. page and it works...
asked by 26.03.2018 / 04:18
1
answer

Jquery Ajax Response

This is my code controller = $("#src_controller").val(); source_id = '#' + $("#src_filter_tags").val(); $.ajax({ type: "GET", data:"id=" + $(this).data('tagId'), dataType: "json", url: "index.php?controller=" + controller + "...
asked by 25.03.2018 / 13:48
1
answer

Search engine that queries two different tables laravel 5.4

Description The search engine currently makes a query to the news table where it finds the data by ( news_program, noticiero_turno, news_date ), the question is How can you make in that same query extract data from the another table that is ca...
asked by 25.03.2018 / 00:17
2
answers

How to insert multiple values of a checkbox in a table

I insert an array of a checkbox in a mysql table [seleccionael25] => Array ( [0] => Oximetros de pulso [1] => Linterna (Penlights) [2] => Repuestos Littmann [3] => Doppler fetal [4] =...
asked by 19.06.2017 / 01:35