Questions tagged as 'php'

2
answers

Dynamic data display with PHP

I'm developing a website, where I have several products, for example and a button for each of them. When I click the button, it opens a modal (Bootstrap). But, I want to generate the contents of this modal, or the entire modal even dynamic...
asked by 26.03.2015 / 03:52
1
answer

PHP PDO does not run UPDATE on same page of SELECT

Problem: making UPDATE work Question: Is the script correct? Request: Identify the reason for not doing the UPDATE and generating error. Error: Notice: Undefined variable: db e Fatal error: Call to a member function prepare () on a non-object...
asked by 24.03.2015 / 15:10
1
answer

How to authenticate multiple user groups in Laravel 5?

I'm trying to create an environment in laravel 5 where there is the customer access area (Front of Shop) and the administration area of pages, products, etc. (CMS), but the problem is that I can not find a way to split the sessions, for example:...
asked by 26.03.2015 / 03:59
1
answer

How to find an item in a field separated by commas? [duplicate]

I have a field in a table with data separated by a comma: id_regioes: 1,2,3,4,5,6 . When I do the query "SELECT * FROM 'tb_operadora' WHERE 'id_regioes' = 1" , or "= 6" returns ok, but not when they are in 2,3,4,5. Eve...
asked by 23.03.2015 / 14:32
1
answer

Downloaded files stored in the database

Is there any way to download documents stored in a mysql database, in my aplicativo híbrido cordova ?     
asked by 19.05.2015 / 17:39
3
answers

List json object returned by php

I need a help, I'm developing an app with HMTL5, JS, CSS that lists a pizza menu. My PHP returns an array that I use json_encode() to make it available in JSON format. So far everything then I have the following <div> : <...
asked by 19.05.2015 / 01:51
1
answer

Dynamic Menu in Bootstrap with PHP and Mysql

I have in mysql two tables (subjects and pages), the page table has a field (subject_id), which relates what subject is that page. I would like to mount a menu with submenu in bootstrap This is Table Subjects ID nome_menu_assunto 1 Ti...
asked by 18.05.2015 / 02:58
1
answer

Bank query for another variable

I have the following scenario, I make a query to the database and return all the data: <?php include ("conectar.php"); $query = "SELECT * FROM pontos ORDER by pontos DESC LIMIT 0,10"; if ($result = mysqli_query($link, $query)) { $list...
asked by 20.05.2015 / 19:51
2
answers

SELECT HTML field displaying Previous, current, and next month only

I need to make the SELECT field that looks like this today (code below) only displayed the previous, current, and next months. For example: As we are in the month of MAY, then it will display in this select (html) only the months of APRIL MAY an...
asked by 22.05.2015 / 13:56
2
answers

Scheduled email sending with PHP

Save personal, I'm new here and I have a very peculiar question. I'm developing a system (CodeIgniter + MySQL) that records some events and should send an email on a predefined date, something around eight or nine months ahead. How can I schedul...
asked by 26.05.2015 / 13:09