haku
Staff Alumni-
Posts
6,172 -
Joined
-
Last visited
-
Days Won
2
Everything posted by haku
-
What exactly do you mean by a 'line between center and a fixed point'? You haven't actually told us what it is that you want to do.
-
Gmail does allow SMTP. And PHPmailer works well, I've used it lots.
-
You may find discrepancies with IE (or another browser if you're testing in IE) if you just remove the value from the max-width. If so, then you can put a div inside the wrapper, and give it a 15px side margin.
- 4 replies
-
- responsive
- element
-
(and 1 more)
Tagged with:
-
They are. And they add a border around it. They also are adding a hover listener to it, and enabling the popup there. As far as google maps go, it's a fairly complex integration.
-
Exactly. The only way it would work would be to use a fix-width font, same as when it's done in print. But the reality of the situation is that it's trying to force something on HTML that is generally handled in other ways in HTML - tables. Which is what Jessica was getting at.
-
Definitely not enough browser support. We are still at least 5 years away, if not 10 (thanks IE).
-
Depends on whether or not you want to do it digitally.
-
Which one is the 'revealed' div? Not seeing that.
-
Uncaught Typeerror: Object #<Htmlcollection> Has No Method 'submit'
haku replied to ThunderAI's topic in Javascript Help
On the contrary, it does (jQuery): http://api.jquery.com/submit/ -
What's wrong with the way Gizmola showed you, and the method you showed yourself? Both should work.
-
Detect Screen Size With Js And Select Which File To Include In Php
haku replied to wright67uk's topic in PHP Coding Help
First, you can't. Javascript executes after the PHP. Second, you are going about this the wrong way. If you are trying to deal with different screensizes, you should read up on responsive web design. This is the current trend on dealing with sites that need to be shown differently depending on screensize (or rather, it's a method of design that allows for a site to work on most/any screen size.- 1 reply
-
- detect screen size
- php include
- (and 2 more)
-
I'm guessing you want something like this: if (empty($_POST['numbers'])) { $error [] = 1; } elseif(!is_numeric($_POST['numbers']) { $error[] = 2; } else { $numbers= $_POST['numbers']; }
-
Getting Information From 2 Tables At The Same Time.
haku replied to White_Lily's topic in PHP Coding Help
But in this case you would want: SELECT messages.subject, messages.body, messages.headers, users.uid, users.name, users.email FROM messages JOIN users ON users.name = messages.to -
Getting Information From 2 Tables At The Same Time.
haku replied to White_Lily's topic in PHP Coding Help
You want to look at Joins: http://www.tizag.com/sqlTutorial/sqljoin.php -
Note that if your validation queries the database with the submitted data (for example, to confirm that a submitted username actually exists), you will need to sanitize inside your validation.
-
You didn't put 'order' in quotes. Your code is unsafe however, someone can easily inject bad code with the code you have, as you have not sanitized the input from the form. You will want to do something like: $order = 'title'; if(in_array($_POST['order'], array('title', 'artist.name', ...)) // put all your options in the array() { $order = $_POST['order']; } Now you can safely use $order in your query.
-
This is done at the server level, not the php level.
-
When doing responsive layouts, I start with the smallest layout and work upwards, adding as I go. I find this much easier than trying to work from bigger to smaller. Maybe that can help you.
-
Warning: Mysqli_Query() Expects Parameter 1 To Be Mysqli, Null Given
haku replied to chiefboz's topic in PHP Coding Help
Interesting, I didn't realize that mysqli_query() took the connection before the query. But yeah, pmfbsad spotted the problem. -
Warning: Mysqli_Query() Expects Parameter 1 To Be Mysqli, Null Given
haku replied to chiefboz's topic in PHP Coding Help
Yeah? -
Warning: Mysqli_Query() Expects Parameter 1 To Be Mysqli, Null Given
haku replied to chiefboz's topic in PHP Coding Help
I edited my original comment, probably while you were posting, as I saw the error after I posted. -
Warning: Mysqli_Query() Expects Parameter 1 To Be Mysqli, Null Given
haku replied to chiefboz's topic in PHP Coding Help
You have your query and database connection backwards in your mysqli_query().