Posts by Deb • 163 points
5 posts
-
6
votes2
answers562
viewsQ: Switch case Java ends without reason
I have an example of switch-case with 8 options. But from the case 7 he finishes the program. He was to return to the menu option after execution. The case has limit of options? Follows the code:…
-
0
votes1
answer42
viewsQ: Error starting application using Zendframework
I started studying the Zendframework e Configurei as recommended. When calling the project I created with the default code, it works perfectly. When I comment all the index.php and add the code:…
-
4
votes2
answers9506
viewsA: How to connect PHP to Sqlserver via PDO
I managed following the guidelines of the link: https://alephnull.uk/content/accessing-microsoft-sql-server-php-ubuntu-using-pdo-odbc-and-freetds. The line of the code went like this: $con = new…
-
5
votes2
answers9506
viewsQ: How to connect PHP to Sqlserver via PDO
I’m using the following code: try { $con = new PDO("sqlsrv:Server=172.20.21.193,9090;Database=sgt","deb","123123"); $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch…
-
0
votes2
answers271
viewsQ: Image appears "broken" after you changed the PHP version
currently changed a machine application, so the barcode image no longer appears. The PHP version of this new machine is newer, I tried to change the image call but nothing happens. How could I fix?…