Questions tagged as 'php'

2
answers

Problem with select without where to a database from php

<?php $mysqli = new mysqli('localhost','root','alumno','radius'); if (mysqli_connect_errno()){ echo "Fallo al conectar a MySQL:"; exit(); } $query="SELECT id,nombre,autor FROM canciones"; $stmt=$mysqli->prepare($query); $stm...
asked by 07.06.2016 / 13:57
1
answer

Replace the contents of several divs with several callbacks in PHP

I am trying to replace the content that exists within several divs with several callbacks. The name of the callbacks I want to use are within those divs: function googlemaps(){ return 'Google Maps muestra su contenido' } function socialic...
asked by 17.05.2016 / 21:37
1
answer

Laravel Excel Structure (Importing File)

I am using the Laravel Excel library and I have been reading the documentation but it does not say anything to read the excel from a certain row number, that is, I have the first 6 lines of the excel with information and the "title" of each co...
asked by 17.05.2016 / 08:48
2
answers

SELECT .. JOIN to relate 2 tables

Good evening, I have a problem because I currently have two tables in mysql and at the time of making the query I can not make them show me all their data because I do not know how to relate them. The primary keys are CedulaAlumno and CedulaRepr...
asked by 17.05.2016 / 00:05
1
answer

htaccess file

Good morning, I need the URLs that are written with # the server automatically write them with% 23 which is the only way it works, some example with the htacces file? please.     
asked by 19.05.2016 / 15:55
2
answers

Problems with PHP array

Friends I have an array that comes from a database with the following format: ["2018-07-25","2018-07-26","2018-07-26"] With a json decode I convert it into an array, in order to be able to treat it since the code is to find a date and remov...
asked by 25.07.2018 / 14:17
1
answer

Wordpress and laravel [closed]

I have an ecommerce made in wordpress and also for that same website I would like to create a blog. But this blog would like to create it with laravel and the structure of this blog would like to save it in the same wordpress file structure, cou...
asked by 08.08.2018 / 21:13
1
answer

Error when saving data in Cake - SQLSTATE [23000]: Integrity constraint violation

I have 2 tables, roles and operations and are related in a third table operations_roles . This is my migration file: $table = $this->table('roles'); $table ->addColumn('user_id','integer')->addForeignKey('u...
asked by 16.09.2016 / 02:25
1
answer

How can I connect php with dbisam using odbc?

I hope you can help me. I want to connect php with a database created by a third party software using odbc but I can not connect and I can not do table queries, download the driver "DBISAM 4 ODBC Driver" and install, I'm almost sure I have probl...
asked by 29.03.2016 / 20:17
2
answers

Error changing database symfony2.7

I am creating a project of Symfony 2.7 and I would like to change the document parameters.yml to another host address. My problem is this: I have worked on a local host with Xampp and, now, I need to link it to an online...
asked by 08.02.2016 / 10:25