Posts by ndroid • 275 points
19 posts
-
0
votes1
answer42
viewsQ: PHP implode without return
//would like to make an implode that returns the numbers in the following order 1,2,3 class Users extends DB{ //extende a classe de conexao com a database static function getIds($user_id){ $select =…
-
1
votes2
answers1421
viewsQ: How to update link without refresh with javascript?
Good evening, is there any refresh function on anchor link without Reload on page? I am creating a system to like articles, but I would like to create a way to change the link "like" to "Unlike. I…
-
9
votes2
answers1708
viewsQ: Is it correct to concatenate PHP in Javascript?
I often use this method, but do not know if it is appropriate, to rescue the id in JS I use echo php <script type="text/javascript" src ="js/jquery.js"></ script> <script type…
-
0
votes1
answer164
viewsQ: Open div by clicking on specific element
I made a foreach in my bank plus the code will be very extensive continuing, What I want to do is for the user to click on the link to appear a directory of a div, in this div will have a link to…
-
0
votes1
answer93
viewsQ: Disappear two Ivs with jquery
First of all I made a foreach in my bank but the code will be very extensive continuing, What I want to do is for the user to click on the link to appear a directory of a div, in this div will have…
-
7
votes4
answers9913
viewsQ: Difference between prepare() and query()?
I was making a select in a table. I went to see the result, returned false. Then I used the query and it worked. What’s the difference between the two? <?php $query =…
-
2
votes2
answers314
viewsQ: Is it possible to insert jQuery Validate in PHP?
For example, in my php code is like this: if( @$_SERVER['REQUEST_METHOD'] == 'POST' ) { $sobrenome = $_POST['sobrenome']; $erro = ''; if( $nome == 'Qual é o seu sobrenome' ) { $erro .= ''; } elseif…
-
-1
votes2
answers548
views -
1
votes0
answers230
viewsQ: How to verify the existence of email?
I am inserting users into database and when clicking on "Submit" in the form says to enter the email and this email already exists. I’ve been analyzing I’ve changed [rowCount()>=0] for…
-
1
votes3
answers118
viewsQ: Media Querie is not compatible with Internet Explorer 2014
I’m using the following media queries, Chrome is all ok. What are the right properties for the latest version of IE? @media(min-width:320px) { } @media(min-width:480px) { } @media(min-width:600px) {…
-
1
votes1
answer51
viewsQ: Unwanted page space when creating media queries
I’m creating a site with responsive layout,when the site enters the mobile solution leaves an unwanted space below @media(min-width:176px) { div#rodape{ width: 100%; height: 70px; padding-top: 10px;…
-
0
votes1
answer57
viewsQ: Resolution 176px not compatible with Media Queries
I’m using these examples of media queries below,more when testing the resolution in cell phones 176 pixels has no effect whatsoever, which are the right properties for this? @media screen and…
-
0
votes1
answer290
viewsQ: Media Queries works on smartphones but not in resolution for tablet
I am creating a page with responsive layout, in relation to smartphones works normally, when increasing to tablet gives no result. Why? @media(max-width:480px){ div#formulario{ width: 250px;…
-
-1
votes1
answer95
viewsQ: Problems with Pdo error while creating logerror.txt file
Notice: Undefined variable: strErro <?php class DB{ private static $conn; static function getConn(){ if(is_null(self::$conn)){ self::$conn = new…
-
-3
votes1
answer189
viewsQ: Problem with the variable error?
When I enter the home page in the form appears Notice: Undefined variable: error require_once( '../../sllapsocial/classes/DB.class.php' ); if( @$_SERVER['REQUEST_METHOD'] == 'POST' ) { $nome =…
-
-2
votes1
answer436
viewsQ: How to redirect form to a verification code?
When the user clicks on "Sign up", the service asks you to enter the security verification words. If you cannot read what is written, you can click on the "Try different words" link, or you can…
-
1
votes1
answer125
viewsQ: Problems with captcha and variable email
<?php if(isset($_SERVER['REQUEST_METHOD']) AND $_SERVER['REQUEST_METHOD'] == 'POST'){ $nome = $_POST['nome']; $sobrenome = $_POST['sobrenome']; $email =…
-
-4
votes1
answer203
viewsQ: Form not registered, no name is saved
My form is not saving any data in the bank, which may be? <div id="formulario"> <div align="left"> <?php if(isset($_SERVER['REQUEST_METHOD']) AND $_SERVER['REQUEST_METHOD'] ==…
-
-5
votes1
answer512
viewsQ: Notice: Undefined variable: name in C: wamp
<?php if(isset($_SERVER['REQUEST_METHOD']) AND $_SERVER['REQUEST_METHOD'] == 'POST'){ extract($_POST); if($nome == '' OR strlen($nome)<4){ echo 'Insira um…