Questions tagged as 'php'

0
answers

Url Rewrite in web.config does not work

The problem I have is that I can not access the endpoint of my api correctly, it always returns a 404 or 403. The api is mounted with slim on a iis 8 and the structure is as follows: My web.config is located in /v1/Web.config (at the en...
asked by 22.10.2018 / 15:28
0
answers

How to insert data into tables related to primary key autoincremental?

Well I got a little problem that I have my class diagram and I want to insert data to 5 tables that are related to each other Here I show you my tables that I have and also I will put an image of all my diagram that made this little system that...
asked by 21.10.2018 / 05:02
2
answers

Group data in MySQL query

I have a pivot table that holds 3 fk, user_id, subject_id and level_id .. What I want is to group the user to a subject and all levels .. in the pivot table is stored as follows: |usuario_id|materia_id|nive_id| | 1 | 1 | 1...
asked by 21.10.2018 / 02:41
0
answers

How to capture an external URL with PHP or JAVASCRIPT

Is there a method to capture the URL of an external Web page in an application in php? Example: I have my Index.php file on my local server: Localhost / app / index.php in my browser. I open another window within the browser and login t...
asked by 19.10.2018 / 15:43
0
answers

Problems reading an array and presenting it in the view in Laravel 5.6

Good afternoon I have been working with Laravel 5.6 and I have a problem reading an array that passed from the controller to the view, the array that passes from the controller arrives in the following way: array:5 [▼ 0 => {#357 ▼ +...
asked by 19.10.2018 / 15:04
0
answers

As I send fix with an insert

I want to make an insert to the database, but the data I want to send are fixes, I wanted to know if they help me how to send those fixes to the INSERT I'm working with PHP and SQLServer This is the table that I have and depends on the inputs th...
asked by 21.10.2018 / 20:56
0
answers

Link PHP with Mysql

Hi, link the PHP with MySql but I get this error: Fatal error: Uncaught Error: Call to undefined function mysql_connect () in C: \ xampp \ htdocs \ doubled \ BD.php: 15 Stack trace: # 0 C: \ xampp \ htdocs \ double \ connectionion.php (4 ): c...
asked by 21.10.2018 / 19:10
0
answers

Center title and shading the row in phpWord

I am trying to add titles to my Word document but it does not appear centered or shading the line with PhpWord, I try it in the following way: $phpWord->addTitleStyle(1, array('size' => 12, 'Arial' => true,'bold' => true,'align'=&g...
asked by 23.10.2018 / 22:53
1
answer

Help with Fetch_Array

I am practicing returning data from a database to my web page, with the FETCH ARRAY method. I would like to be able to return, for example, all the values of the NameAlumni field, but until now I have only managed to return the first value, and...
asked by 23.10.2018 / 22:46
0
answers

Php qualification system mysql

Well here with a doubt: I currently have a user rating system. My question is how could I save the id of the user I want to qualify for, so that after doing a SELECT I bring in console all the comments and the rating that user has. The...
asked by 23.10.2018 / 23:14