Posts by monovox • 89 points
7 posts
-
0
votes2
answers362
viewsA: How to connect PDO with named Sqlserver instances?
If I understand correctly, you have a PHP Linux client to access SQL Server. So you need to install Freetds on Linux [http://www.freetds.org/] . My Freetds configuration file is on…
-
0
votes2
answers837
viewsA: Replacement for Frameset HTML?
One of the reasons for the drop in iframe is security. This page is static or dynamic? If static, there are numerous scripts (shell scripts) that specialize in building static pages (even an entire…
-
0
votes2
answers1955
viewsA: How to insert HTML code into a textarea?
We usually do this with an element <DIV>. It is possible to do with other HTML elements such as <P> . Example: https://www.w3schools.com/Tags/att_global_contenteditable.asp So, the…
-
0
votes1
answer292
viewsA: How do I install a library (Phpexcel) in a codeigniter application using NPM?
I used the fusonic/Spreadsheet-export lib https://github.com/fusonic/spreadsheet-export To install the lib: composer install fusonic/spreadsheet-export In my case, I used the slim framework (I never…
-
6
votes9
answers12451
viewsA: How to prevent SQL code injection into my PHP code?
I use the framework Doctrine ORM for the data layer. Frameworks avoid SQL Injection. For an overview of the Doctrine:…
-
1
votes2
answers274
viewsA: How to normalize this small database?
With the previous answer I would make some modifications. I explain: There is no right or wrong when normalizing a DB. When we are in college, it seems that the "right" is to normalize as much as…
-
1
votes5
answers273
viewsA: Taking html class with PHP variable in javascript
Perform the following: $linha = [ 0 => 'asdf', 1=> 'zxcv']; $cod=0; $('.selects2<?php echo $linha[$cod];?>'); results in: $('.selects2asdf') //seleciona o SELECT a partir da classe…