Questions tagged as 'php'

2
answers

unexpected 'if' (T_IF)

I have the following code $data .= '<tr> <td>'.$number.'</td> <td>'.$row['nombre'].'</td> <td>'.$row['apellido'].'</td> <td>'.$estado.'</td>...
asked by 17.04.2017 / 15:56
1
answer

Error in mysql query with php

$re=mysql_query( "select * from productos where id=".$_GET['id'] ) or die (mysql_error()); This upper line gives me this error, but I can not find it:    You have an error in your SQL syntax;...
asked by 23.03.2017 / 13:31
1
answer

automatic pagination cycle of TABLE with PHP and jquery

I have a table already paged, and I need a cycle that is showing the records every certain time so the setTimeout in my case the variable $ b is responsible for creating the buttons that contain the href depending on the records more butt...
asked by 23.05.2016 / 05:53
3
answers

Superglobal object in php

I am clear that to store some data in a persistent global way so that it is accessible from any file in php, the session variables must be used. But apparently it can not store objects, only arrays and little else. Is there a way to simul...
asked by 03.02.2017 / 12:50
1
answer

Javascript: initMap is not a function

Greetings again. I've been trying to load a map through Google Maps and it just does not show me. I run the console and I get the following message: Uncaught InvalidValueError: initMap is not a function I leave the code I'm occupying: Ma...
asked by 23.05.2016 / 17:02
1
answer

Firebird and codeignter

Someone knows exactly what this error means in firebird    This column can not be updated because it is derived from an SQL   function or expression.Attempted update of read-only column. In codeigniter:    A PHP Error was encountered...
asked by 19.05.2016 / 21:00
2
answers

Iframe to load a preview of an office document

I am creating an extranet and the .doc .xls .ppt files are loaded and saved on the server in a folder ./folder/test.doc and on the extranet it is already shown that this file is registered, now the subject is that in an iframe only display the p...
asked by 04.03.2016 / 23:48
2
answers

(!) Notice: Use of undefined constant name - assumed 'name'

I am trying to query my database with php but it throws me an error. This e my code [![<?php $servername = "localhost"; $username = "venividivici2016"; $password = "4XDjhDFsxBtbxRsw"; // Create connection $conn = mysqli_connect($serve...
asked by 26.06.2016 / 09:39
4
answers

Is it advisable to use IDs in friendly URLs?

I would like to know if there are any rules that please the eyes of Google. The friendly URLs I use include the ID of what I want to "load" on the page. For example: http://www.unawebcualquiera.mx/bocadillos/13/bocadillo-con-jamon/ My doubt...
asked by 27.01.2018 / 21:40
0
answers

Convert string to nominal in Weka [closed]

I have a .arff with some data that has three string attributes and then a numeric one that is the class. When I try to make the model to later predict the class of other data, it does not let me indicate: Cannot handle string attrib...
asked by 16.02.2016 / 19:50