Questions tagged as 'php'

1
answer

Cookies visitor counter in PHP

I am making a small code in PHP to create a cookie that serves to see if it is the first time you enter a page or what your visit number is. I miss a message that the variable is not declared, I do not know very well how this works of the cookie...
asked by 08.10.2017 / 10:51
1
answer

save in public folder laravel

How can I save documents in the public_html folder on my server? I'm trying to save images but I can not get it, in my localhost it works fine, I attach my code: if($request->hasFile('img')){ $file = $request->fi...
asked by 08.10.2017 / 07:13
1
answer

I can not update the remember_token column - Laravel

Hi, I'm doing a login with laravel and if everything works fine, the problem I have is that when I log out I get this error: SQLSTATE[42S22]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]El nombre de columna 'id' no es válido. (SQL:...
asked by 06.10.2017 / 22:20
1
answer

Increase the value of a field

The code I have in the function is the following: DB::table('projects') ->where('order', DB::raw("(select 'order' from projects)")) ->order + 1; The error that shows me is the following:    Undefined property: Illuminate...
asked by 24.10.2017 / 14:45
2
answers

Error in dates in laravel 5.5 and SQLServer

Inserting any date in laravel 5.5 into a SQLserver database gives me the following error: SQLSTATE[22003]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server] Error de desbordamiento aritmético al convertir expression al tipo de datos datet...
asked by 24.10.2017 / 16:45
2
answers

Problems with multiplication tables in PHP

I'm doing some multiplication tables I've already done one with for worst I do with while and do while but I do not get the same result the for is this <?php for($t=8; $t<=10; $t++) { echo "<h3> Tabla...
asked by 03.10.2017 / 17:21
1
answer

Select that I can not validate with javascript in semantic ui

I have in a form, three SELECT two of them are multiple and one is a simple select. I am using the semantic ui forms validation system. I can validate all the fields, but there is only one that does not validate me. <div class="field">...
asked by 03.10.2017 / 15:03
1
answer

Receive an object as parameter in PHP controller

I am working with a mobile api which sends this data by POST : @Injectable() export class UsuarioProvider { datos: any; api: string = 'http://10.5.10.230/TaxisPlu/moviles/app_cliente/registrar_usuario/'; constructor(public http:...
asked by 27.10.2017 / 15:14
1
answer

How do I debug PHP file in netbeans

I have been trying to configure the xdebug of the php.ini but it turns out that in that file nothing comes from xdebug, I see tutorial and in all it puts that word and in my configuration file I can not find it. How can I solve that? Thanks    ...
asked by 04.10.2017 / 22:40
1
answer

Error showing values in a loop

I am doing a program that makes successive numbers from 10 to 1 pairs, odd and multiples of five, but does not throw anything at me and I do not understand how it causes the result to look down as columns: 10 2 3 1 9 4 5...
asked by 05.10.2017 / 06:44