Questions tagged as 'php'

1
answer

sqlsrv_num_rows does not work

I have a site that is being done with PHP + SQL SERVER, and to log in I need the client code, and it puts there only that always says it is incorrect, being correct. It seems that sqlsrv_num_rows is not working, because I put the corre...
asked by 08.06.2018 / 13:28
1
answer

Toggle effect External page jQuery via require or include PHP

I'm creating a menu of users, it gets on a page the part that is embedded in other pages like index and home for example. It takes on the role of a widget that is only shown if there is session (user logged in) however it is shown with jQuery's...
asked by 22.09.2014 / 15:12
1
answer

How and when to create packages in Laravel 4?

I have been researching and thinking about a subject for some days and I still do not understand how to do / use / start: Scenario Package: Books (crud) Package: Authentication module (users + profiles + login + permission) Doubt...
asked by 24.09.2014 / 22:56
1
answer

Saving array to database without serializing

I am building a social networking website where the user can belong to groups and comment on posts. I'm trying to save group memberships and comments cleanly to the database, preferably without serializing the arrays, but I'm not finding a wa...
asked by 08.09.2014 / 03:05
1
answer

Alternative php include for handlebars.js in the construction of templates

I'm making a new website, I'm with the template ready and I want to implement handlebars.js, To control the template I have always used: <php include "header.php"; ?> <php include "footer.php"; ?> and so on. I want to impr...
asked by 22.09.2014 / 04:06
1
answer

Affiliate Script with team help (Problem with recursion)

I am writing a code on CodeIgniter for the release of free and non-profit cloud storage software. However, in order to work, we will have an affiliate system, which allocates a certain amount of storage to the most advertisers, as well as to...
asked by 20.05.2014 / 22:55
1
answer

Picking values from a table and putting them in an HTML chart

I made a database and it is feeding a table. I would like to know what it would take to get such data from the table and plot it on a chart. In the code below the graphic with fictitious values is already present. <! DOCTYPE html > &...
asked by 04.01.2018 / 01:15
1
answer

Do not repeat data when doing a SELECT in MySql

What I want is this. I am working on a system, which has registered an employee and days in which he worked on the month. So far so good, but it happens that in some cases, the employee has 2 or more records in the same month, for example, I reg...
asked by 19.05.2014 / 21:59
1
answer

Use NOT EXISTS in 2 subquerys

I tried to use NOT EXISTS , but it is bringing the results that do not exist in the tb_pedidoproduto table, I believe LIMIT is not working: SELECT produto.idproduto ,produto.nomeproduto ,produto.idcategoria...
asked by 27.12.2017 / 13:52
0
answers

Is there a way to use two versions of PHP on the same server?

Is there a way to use two versions of PHP on the same Windows server? I have an application that only works in version 5 and I have another that only works in version 7. I use XAMPP for Windows in both versions and I would like to know if...
asked by 19.01.2018 / 21:23