Questions tagged as 'php'

1
answer

Read MySQL blob field and convert to JSON for android webservice

I am creating a webservice for Android, in which I have to read a blob field from a MySQL database. The problem is that I can not encode that field to JSON, which is the format I will need later to read the Android webservice. Let's see if an...
asked by 10.12.2018 / 16:42
1
answer

Error changing date

I am doing a system that is managed with dates, but the problem is when I want to change a date, example: I choose today's frecha and the one of the day 14-12-2018, in total they are 10 days which is going to me calculate a value for those 10 da...
asked by 04.12.2018 / 03:35
1
answer

PHP | How do I show elements of a directory and randomly order?

I'm trying to make a list of music, I have all the music in a folder and I want every time the screen refreshes, I get disordered, I already managed to call all the music in the folder with dir() , but what I do not get it is that every ti...
asked by 05.12.2018 / 16:36
1
answer

Mark a radio button according to the value of the database

In a form I have a cycle that generates 3 radiobuttons and assigns the Id and the name they have in the database @foreach($type as $t) <div class="custom-control custom-radio"> {{Form::radio('incapacityType',$...
asked by 04.12.2018 / 21:21
1
answer

read RS-232 scale port PHP or Javascript?

Hello I need to read the weight of a digital scale I have seen some try from php but php is from the server side as I could do this from the client side with jquery or q so     
asked by 19.10.2016 / 04:31
2
answers

500 Internal Server Error

I am new and I have an error in the platform that I am programming with php, this error appears to me now, I already put the permissions to the folders and the files, in my localhost it works perfect the error is in the server what is with IIS8...
asked by 04.12.2018 / 16:02
2
answers

Connect PHP with SQLServer

Good morning I have a question, since I have a database in SQL SERVER 2014 and I am trying to establish a connection from PHP I already checked it and according to me my error is sending the IP address of the database server but I do...
asked by 21.03.2017 / 15:16
1
answer

Consume json from php backend

I am continuing a project that I started at the institute and I would like to perfect it for my degree, more than a doubt I would like to receive suggestions since in the first instance the project was developed in laravel and it fulfills its ob...
asked by 21.03.2017 / 00:34
4
answers

Do what I do in MySQL but in PDO with PHP

I'm trying to learn PDO , I'm handling PHP, but with mysql_query I wanted to migrate to PDO , but it gives an error, I tried inserting but it does not work now, I want to try doing a query but I do not know someone would know why he will n...
asked by 21.03.2017 / 21:59
1
answer

How to use with laravel 5.6 in two models and get your data

Hello, I have a table called ReserveTable and another table called Fields I want to get the data of the model of the court: public function reserva(){ return $this->belongsTo('App\ReservaTable','idcanchas', 'idcanchas'); } in my Cont...
asked by 05.12.2018 / 18:22