Questions tagged as 'php'

1
answer

Page loads normally, but with status 404 [closed]

Has anyone seen anything like this? link It is a project in laravel 5.7 hosted on the king host, the site is working normally on the local server, but on the web server it loads the page with status 404 and so I can not login or anythin...
asked by 08.11.2018 / 13:06
1
answer

Modal to inform users that registration was successful

Well, I wanted the user to register in the system and if it worked out, a modal saying that:    Registered user successfully If already exists the matricula or email informed will appear a modal with something like:    En...
asked by 12.11.2018 / 22:24
1
answer

Error in ajax .JavaScript

Hello, The following code will present a table with values. I am retrieving the table cell value that the user clicks through this $(this).text() function in javaScript. I have to send this information get through this function, for an aja...
asked by 23.05.2018 / 01:57
2
answers

Interactive HTML and PHP form

I'm having an activity and I'm stuck on this question: Create a program in PHP , where the form has choices of geometric shapes (triangle, square, rectangle and trapezoid.). Once the user selects the figure, he can type in the fields the val...
asked by 19.03.2018 / 00:28
1
answer

Use of Trait in static method

Given the example below, how can you use the Trait method inside the static method of the class? Is it possible? How? Is it bad practice? What is the right way? trait TestTraits { public function thistraitmethod($data)...
asked by 18.04.2018 / 15:45
1
answer

Pass parameter to template with Smarty

I'm reading the documentation for Smarty but I still can not understand how I can and can pass parameter to a template using Smarty . I have this snippet of code: if ($part == PagePart::RecordCard && ($mode == PageMode:...
asked by 09.04.2018 / 16:43
2
answers

Can I use a JSON file as a database?

I want to start a project, however I do not want to create a database so I would like to know if I could use a json file as a database.     
asked by 03.05.2018 / 01:50
1
answer

How to catch mysql (duplicate entry) error and display a message on screen for the user, using codeigniter?

How to catch the error of mysql (duplicate entry) and display a message on the screen to the user, using codeigniter?    Error Number: 1062       Duplicate entry '123456' for key 'process'       INSERT INTO processo ( nprocesso...
asked by 02.05.2018 / 21:53
1
answer

Script captcha generator in PHP does not generate the image

I am trying to run the site script below, which generates captcha, but the image is never generated. Can someone give me a light of what I can be doing? I'm running the script via docker. Page: link index.php <!-- No campo src da...
asked by 21.04.2018 / 19:48
1
answer

Populated table via bank coming with empty field

I'm populating a table via a select that I have in my file selectUser.php . selectUser.php: <?php require "conexaoBD.php"; $nome = $_GET["nome"]; try { $pdo = new PDO($server, $dbuser, $dbpass); $sql =...
asked by 24.04.2018 / 18:27