AV1611
-
Posts
997 -
Joined
-
Last visited
Posts posted by AV1611
-
-
3. Bring the footer down to the very bottom of the page, not the bottom of the content.
Fixed...if I understood what you said...
-
um... why?I just took a quick look at your page source, WTF, I almost crapped in my pants!!!
I have all the css (including some that's not being used) in the index file while I work up the site. I also have to move some css from the tags to the css class. Other than that I can' t imagine what you mean.
To whoever: I only have the w3c crap at the bottom because I like to check my work often. I will replace that footer info with some site info.
As for the stats thing... not my idea... the person wants it.
I agree, the banner sux... but I'm not a graphic artist Anyone who wants to make me one ...
I am converting the site from what they originally had here: http://www.hevly.net/
I agree gray is dull... but I don't have a better idea ... it's not a "marketing" site so much as a technical info site.
-
how is the layout formated now? height:auto would make them dynamic which i assume your using and then if the divs are floated clear both should work..
Um...
body{
height: 100%;
margin: 0px;
padding: 0px;
font-family:arial,sans-serif;
font-size: 12px;
}
div.main{
color: #222;
width: 100%;
background-color: white;
margin-left: auto;
margin-right: auto;
padding: 0px;
position: relative;
height:auto !important; /* real browsers */
height:100%; /* IE6: treated as min-height*/
min-height:100%; /* real browsers */
}
Then the content side is float right and the left is float left.
the content is stacked divs
now do I make the last div be the bottom, even when the page is changed?
-
1. Ugly header. It caught my eye first and really was disappointing. It's so...bland, and in between the letters...well uhh...there's a really light shade of gray which bothered me.
better now?
2. Make all of the menu items have the same width so when you hover over any of them, they all get borders the same way. Less distractions that way.
good idea... will do now
3. Bring the footer down to the very bottom of the page, not the bottom of the content.
... not sure how to make that happen... the page will have dynamic length?
-
This is the template for a new site.
I am just wondering about colors, basic layout, etc. before I do all the stuff. none of the links on either menu work.
Thanks.
EDIT:
I forgot the link
http://tranquilpenguin.com/hevly/
-
thank you<?php function ceil_nearest($number, $power) { if ($power < 1) { return false; } return ceil($number * pow(10, ($power * -1))) * pow(10, $power); }
All you need to know is powers of 10.
-
just checking...
how can I make it a function (I suck at functions...)
ty.
-
I need to round up to the nearest dollar so for example $51,000.01 would be 52,000.00
Doesn't seem to be a way? do I need to add like $499.99 to the value then round to the nearest instead? or is there an easier way?
Thanks.
-
actually I am just trying to get the list of dates for a throw away project and will not be running sql against it other than to fill in some data. when it's done I'll export to csv and delete.
-
I need to create a database with two + columns. one needs to have the date as "1/1/2007" and the other as "Monday" sequential through all of 2007.
I really just need to figure out how to sequence the php to make all the dates... I can handle the rest... Thanks.
-
LOLOLOLOL
I just blew coffee on my monitor...
sorry... I'm pathetic...
thanks
-
If you create a file called index.php xampp should load that file by default if it's in the web root folder (/htdocs?)
Anyways, if you make myfile.php you can only load it as a url in the browser or by another script with header() or whatever...
mysite.com/myfile.php
mysite.com will load default doc type (usually index.php, then index.html, etc...) depending on your install
-
can't he do select max() ?
-
I'm confused by sessions...
I know that to access a session variable the script needs to start with session_start then I can read out $_SESSION[var].
as I go from page to page, each script starts with the session_start and the session var is there..
now,
I have a logout hyperlinl that simply does this:
session_destroy();
header('Location: index.php');
when I click the link, it give me this error:
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in C:\xampplite\htdocs\cvlb\killall.php on line 2
Huh?
Am I just very confused...???
-
if(!preg_match("/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(??![-.])[-a-z0-9.]+(?<![-.])\.[a-z]{2,6}|\d{1,3}(?:\.\d{1,3}){3})(?::\d++)?$/iD", $email))
LOL someone else just posted the exact same question
thanks.
-
funny question...
like 's%3'
will yield
s3
sss3
ss sssss s s s s3
etc...
you can maybe explode $dname then pick the letters?
that would give you
array(s,a,m,p,l,e)
then maybe parse in the %
or whatever...?
-
can anyone improve this?
aaa@bbb is valid...
if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email)) -
I believe you have a parse error and not error reporting set in your php environment. It looks like you have three closes when you have only two open:
}
}
}
edit:
Or what he said... I miscounted. Use indents in your code, life is easier that way.
-
just a slight twist, but you could span multiple server by doing:
echo html_get_contents('http://domain.com/file.html');
rather than the include.
I do that when I want to share certain html code with multiple sites.
The Above answer is a good answer, I just felt like adding this part.
-
Google is your friend...
Why not write your own? It would be a great experience that would help you be a better PHP Scripter!
-
OH, and you have two ELSE in your clause... you can only have one.
You need
IF{
}
ELSEIF{
}
ELSE{
}
-
If I understand, you have 3 types of logins:
1. Admin
2. Users
3. A Specific User
using if isset for session admin or user is ok, then a subclause under session users like && $_SESSION['user'] == fred (which you would set when fred logged in) would give you the extra functionality.
Please forgive me if I misunderstand the question. I just wrote the exact script last night for another project LOL.
-
Is it possible to know how long a session (or session variable) has been active? I mean without logging the start time at login...
-
1. is the above code from script fri3.php? If it's called from another script, it won't work ... depending...
Are you in Windows? Some text editors have characters that are not human readable. Try using notepad and resaving.
Quick critique
in Website Critique
Posted
I cleaned up some of the css last night, but it's not done.
Did the color change on the main menu on hover help?
also, the stuff I already changed.
anyone else got suggestions?
thanks so much.
(BTW if you wanna see ugly code look at the source of the site they did I posted above (it was publisher ))