Posts by Douglas Bernardino • 698 points
18 posts
-
0
votes1
answer297
viewsQ: Center Absolute sub menu with css
Good afternoon. I would like to know how to center my sub menu regarding the main menu. The sub menu entries are dynamic, so I can’t give a margin-left : -px because I don’t know how long my…
-
3
votes1
answer270
viewsQ: Configure PHP INI to load default PHP file
How to set up php.ini to load a PHP file that contains some generic functions where I use in all my root projects? I read something about include_path, but I do not understand and believe that it…
phpasked Douglas Bernardino 698 -
-1
votes4
answers687
viewsQ: include_once has no access to properties, variables or functions of the included file
I’m creating a generic file where several systems can use the same libraries, thus generating a much smaller package. In this generic file there is a function where I do the necessary file includes.…
phpasked Douglas Bernardino 698 -
0
votes3
answers1701
viewsQ: Return of SQL SELECT
I need to make a select comparing whether user login already exists or not. But I do not want to return values from the table, only a symbolic value to verify the existence (true or false). The…
-
12
votes3
answers23785
viewsA: How to make PHP and Mysql paging?
Following is an example of a code for pagination, all lines are commented. <?php //inclusão da conexão com banco de dados require('config/conectaBd.php'); //A quantidade de valor a ser exibida…
-
2
votes1
answer878
viewsQ: How do I get php code commented correctly?
How to leave a php code well commented, in a way that is easy to read, understand and easy to search for future maintenance or reading of other programmers?
phpasked Douglas Bernardino 698 -
1
votes6
answers2856
viewsA: Can not use "{ }" IF keys in PHP cause problems?
When you omit the keys you will only treat the next instruction as the condition body: if ($x) echo 'foo'; é o mesmo que if ($x) {echo 'foo'; } mas lembre-se que if ($x) echo 'foo'; echo 'bar';…
-
1
votes1
answer201
viewsA: Use :before or a div with an image?
I have separated each element by div’s for better organization and better maintenance in the future. It looks like this ("div do fundo", "div da img" and "div do texto") Example:…
-
1
votes3
answers3178
viewsA: Hover in two elements at the same time
To leave selected and without the Hover event: CSS: .TamanhoECorTabs:focus, .TamanhoECorTabs a:focus{ background-color: #428bca !important; color: #fff !important; border:none !important;…
-
0
votes2
answers147
viewsA: About menus on websites
What I would do would be easier, is an image in transition, 1 image that gets the 2 types of colors of the letters, white and black, making an event in the "Hover" of the "div" or of any element…
cssanswered Douglas Bernardino 698 -
5
votes3
answers1556
viewsQ: Filter word in text with php
I would like to extract some words in a text with php. But they are not fixed words.. I want words that will always change but they will be next to default EX keywords: ID : 123123 Name : Elvis…
phpasked Douglas Bernardino 698 -
1
votes2
answers183
viewsQ: Help with post upload and move file manipulation in PHP
After uploading the file, and sending the form information to PHP page, I receive the file with $_FILES['MyFile']. After receiving the file, I move it to another folder of my system: if…
phpasked Douglas Bernardino 698 -
0
votes0
answers56
viewsQ: Run a function after adding item to store from a Tree
I have 2 Trees in my project made with Extjs4, and one of the Trees is added value in store after an event. I would like as soon as the value is added in store of the first tree, the second to…
-
0
votes1
answer92
viewsQ: Problem to add item in Tree with Extjs
How do I add an item using Tree in extjs. But I wanted to add somewhere specific, ex: add an item inside a specific folder. Follow my code for if necessary:…
-
19
votes5
answers22797
viewsA: How to invert dates in PHP, regardless of format?
Instead of using larger functions, you can follow 2 "faster" or "better" paths at my glance. If you are using some SQL database and want it to return the already formatted date you can use: SELECT…
-
5
votes2
answers151
viewsA: Where to put ; in this code
Dude, I advise you on instead of putting this lot of " " to do the spacing between words, use css in a span to set that spacing Ex: css: span{ margin-left: 50px; } viewing code: Numero…
phpanswered Douglas Bernardino 698 -
2
votes1
answer102
viewsQ: Problem with Drag Drop Extjs
Returns me the following error when I drag a "file" to another "folder" in Tree TypeError: b is null or TypeError: a is null. Follow my two-word code :…
-
1
votes1
answer73
viewsQ: Text extraction problem using Pdfreader API
I’m messing with the class Pdfreader to extract text from a PDF document. I made a very simple document to make a test where only give include in the file PDFreader.class.php and passed the PDF path…
phpasked Douglas Bernardino 698