Posts by Guilherme SpinXO • 714 points
39 posts
-
1
votes2
answers70
viewsA: Validation criticism for form fields
Your HTML markup is wrong, note your code: <html> <body> <head> <meta name="description" content="Guia de Consulta CNS"/> <meta http-equiv="Content-Type"…
phpanswered Guilherme SpinXO 714 -
0
votes0
answers49
viewsQ: PHP operator names in the controller
How can I use PHP operator names in a method (controller) ? Example: public function new() { //Código aqui } Notice I used the name new the same used to instantiate an object. How to ignore this…
phpasked Guilherme SpinXO 714 -
0
votes3
answers899
viewsQ: Best syntax for PHP function names
Greetings, I would like to know the correct syntax for writing functions in php. for example: public function load_default_controller() { } or public function loadDefaultController() { } The…
-
0
votes1
answer157
viewsQ: Page Scroll with jQuery
I’m trying to make a page scroll when I click on a link in my navbar, only when I click I get the following error in the console: Uncaught Typeerror: Cannot read Property 'top' of Undefined…
-
5
votes2
answers6328
viewsA: How to view HTML code?
I was able to resolve, in order to display an HTML code on a website or blog, we cannot simply insert the code into the page normally (even within a text box), because the browser would try to…
-
5
votes2
answers6328
viewsQ: How to view HTML code?
How can I display my code HTML? I have a field where the user can change his nick by putting colors, and I want to display the code used as a hint to the user. My code: <pre> <code>…
-
4
votes1
answer94
viewsQ: How to calculate columns equal to Skeleton
To .col-md-1 is calculated thus: 100/12 = 8.3333...3 in the Skeleton was otherwise calculated which returned the following result: .one.column, .one.columns { width: 4.66666666667%; } What logic did…
-
0
votes1
answer378
viewsQ: Click and show div, click again and hide
Guys I have the following html <nav class="nav nav-default"> <div class="container"> <a href="#" class="nav-brand">Brand</a> <button type="button" class="nav-button">…
-
0
votes1
answer44
viewsQ: Return values from Database
I’m getting this mistake: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1640 bytes) in C: Appserv www muweb class Connect.php on line 31 When I run these scripts:…
-
1
votes3
answers50
viewsA: Comparator difference in php
According to the document: $a == $b Igual Verdadeiro (TRUE) se $a é igual a $b. $a === $b Idêntico Verdadeiro (TRUE) se $a é igual a $b, e eles são do mesmo tipo. There’s no better explanation than…
phpanswered Guilherme SpinXO 714 -
2
votes2
answers52
viewsQ: Case sensitive in the form method?
I always use method="post" (minusculo), but searching tutorials on the internet, most use method="POST" (capital), is there any difference this? can cause problems?
htmlasked Guilherme SpinXO 714 -
2
votes1
answer218
viewsQ: Sort by category
Following guys I’ve reviewed this community and got some nice fonts but did not help me, I’m trying to separate my links by categories that are also stored in the database. If anyone has a tutorial…
-
0
votes1
answer7928
viewsQ: Why Trying to get Property of non-object in?
Guys I’m trying to return database data using this code: //avoid Undefined variable $errors = []; if (Input::exists('post')) { $validate = new Validate; $validation = $validate->check($_POST,…
-
1
votes1
answer153
viewsQ: Undefined variable, PHP MVC application
I have the following error returning in my code Notice: Undefined variable: errors in D: wamp www mvc application controllers login.php on line 33 This is my Controller: class Login extends…
-
2
votes1
answer99
viewsQ: Javascript verification
My question may be a little vague, but very useful to me. The point is, I have a website where I’m not validating forms with the PHP rather with javascript, there is some way the user disable the…
javascriptasked Guilherme SpinXO 714 -
1
votes1
answer524
viewsQ: Calculate pixels for columns in css
Good guys I have 3 columns in a space of 950px; I did the calculations here on the calculator 950/3 = 316,666666666666667 Only when I convert it to css: width: 316.6666666666667px; nothing changes,…
-
1
votes2
answers4312
viewsA: how to reference external css in an HTML page
Unused type="css" and yes type="text/css" also checks if the file path and name are correct.
-
1
votes1
answer26
viewsQ: Link styles correctly
I am slowly deepening into the web world, and today I noticed something unusual in my code, good, unusual more or less let’s look at the examples. In this code I use the type="text/css" <link…
html5asked Guilherme SpinXO 714 -
1
votes3
answers218
viewsA: htmlentities() does not work
Let’s see, you could store session values in a variable $session $session = $_SESSION["recuperarInvalido"] = 'O e-mail introduzido é inválido!'; Here you check if there is a…
phpanswered Guilherme SpinXO 714 -
1
votes0
answers32
viewsQ: Upload files not loading extension
Hello, I’m trying to generate the filename upado in md5();, but my file extension does not work at the time of upload, follow my class: <?php class Upload { private $_SupportedFormats =…
-
0
votes1
answer609
viewsQ: Template class, include header and footer
Hello, I had already posted here some time ago about my templates class, but I decided to a modified one, because every time I want to edit a menu for example, I have to edit in all my files. This…
-
5
votes2
answers1160
viewsQ: How to copy an html block when clicking a link/button?
Today a friend and I thought about developing a system for registering resumes, only I need to click on a link add 1 more block inputs each time clicked. I tried searching, and did not find nice…
-
0
votes1
answer271
viewsQ: Show validation error in View
I have a problem, I can not show the error in the validation of forms in the View (MVC done by me) correctly, it is showing in wrong place, I would like it to be on top of the button or the bottom.…
-
-1
votes2
answers236
viewsQ: Class does not extend from another
Hello I’m having trouble wearing extends in a certain class, see my code below: Template class: <?php class Template { private $_strings = array(); private $_template; public function set($file)…
phpasked Guilherme SpinXO 714 -
1
votes1
answer55
viewsA: Double entry in the database?
I solved my mistake, since the function self::get()->query(); already does the job of executing, just removed the $pdo->execute();.
-
0
votes1
answer55
viewsQ: Double entry in the database?
I’ve been through my code and I can’t find the reason he’s adding two records to the database. Function: public static function create($table, array $params) { $key = array_keys($params); $value =…
-
0
votes1
answer473
viewsQ: Concatenate in the PDO query
I’ve heard that when concatenating into a query using PDO can cause slowdowns and even leave the system vulnerable, this is true? I want to concatenate into one query and I’m afraid to take certain…
-
4
votes2
answers559
viewsQ: Make a condition to check URL
Hello, I am wearing Codeigniter to develop my website, I am trying to verify which controller the user is browsing, for example, I have the login and registration area, if the user is browsing the…
-
2
votes3
answers1052
viewsQ: Validation of MVC forms - PHP
To validate forms with the concepts of MVC, it would have to be in the Controller, Model, or View? Researching in internet I’ve seen some articles on the subject, but some recommend doing model…
-
3
votes1
answer251
viewsQ: Which PHP extension should I use with SQL Server 2000?
I am trying to connect to SQL Server 2000 database using PHP PDO SQLSRV, but when accessing index return me the catch() with the following error SQLSTATE[08001]: [Microsoft][SQL Server Native Client…
-
5
votes1
answer307
viewsQ: Block old browsers
Is there any way to block browsers ancient? To be more direct: do not leave these browsers, such as IE 6 access my website? I did some research on internet and found no source on this subject.…
-
1
votes1
answer65
viewsQ: Dropdown Twitter Bootstrap, ignored in Ajax request
Hello community Stack Over Flow, I’m trying to include pages via ajax, but when I click to open the dropdown it is ignored and adds the page of Index of of WampServer, how to proceed in such cases?…
-
3
votes3
answers222
viewsA: How to prevent the edge from affecting child elements
Use box-sizing with the property border-box So the edge will stay inside and not out. div { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; width: 100px; height:…
cssanswered Guilherme SpinXO 714 -
1
votes1
answer130
viewsA: How to make php return status?
One solution is to give a false return: return false: else { echo 'A conta já existe!'; return false; } And also change $quant != 1 for $quant < 1, if you do not want to include two records in…
phpanswered Guilherme SpinXO 714 -
0
votes5
answers10211
viewsA: Spacing between Bootstrap inputs
I found a simple solution, as I am novice with Bootstrap, looking at the site I saw there have the options .col.xs-? .col-md-?, I just traded .col-md for .col-xs and it became even more beautiful…
-
2
votes5
answers10211
viewsQ: Spacing between Bootstrap inputs
I wonder how I can add a spacing between the selects, for better understanding see the image down below: I tried with css: .col-md-4 {margin-bottom: 5px;} But it got weird, man code html currently…
-
-1
votes2
answers137
viewsA: Error while saving data using PDO
Change class Teste { $user = new User(); $user->setNome('Gabriel'); $userDao = new UserDao(); $userDao->insert($user); } for class Teste { $user = new User(); $nome =…
-
3
votes1
answer530
viewsQ: Infinite loop, object orientation
Well, I’ve been doing some research, I found several topics talking about it, but none of them were useful to me, so I decided to turn to Stack Overflow. I have a role to list all user tickets that…
-
0
votes1
answer70
viewsQ: Correctly insert data into table
I’m in serious trouble with the INSERT of PDO, I am unable to add the values correctly to the banco de dados, how to proceed in this situation? Picture of the problem: I’m waiting for help. <?php…