From martyn.haigh at virgincosmetics.com Mon Feb 24 03:28:00 2003
From: martyn.haigh at virgincosmetics.com (Martyn Haigh)
Date: Mon Feb 24 03:28:00 2003
Subject: [thelist] Win XP mapping Drive problem
Message-ID: <9704A1D08FFD4A499291F102F243E3EE01956A73@CHEXCHANGE>
Hey,
I know this isn't strictly on topic for the list - but I've got no idea of
where else to ask or look.
I have this problem with my home computer which is running win xp pro. I
can map network drives (over a VPN) but when I restart the computer it will
fail to load and just sit on the welcome screen. If I then roll back to
just before I added the mapped drives it works fine.
Does anyone know anything about this?
Thank you
M
looking for the ultimate birthday present for the person who has
everything??
http://www.popcornfork.com/
"PREDICTION
The 'Popcorn ForkTM' will be the 4th commonly used eating utensil in the
home (especially when the dishwasher hasn't been emptied.)"
Who can argue with that??
DISCLAIMER: The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this email by
anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it, is prohibited and may be unlawful.
From andrew at humanbehaviour.co.uk Mon Feb 24 05:35:01 2003
From: andrew at humanbehaviour.co.uk (Andrew Maynes)
Date: Mon Feb 24 05:35:01 2003
Subject: [thelist] GET POST Form PHP
Message-ID:
PHP guys and dolls
Could someone clarify my muddy thoughts regarding using a form to search a MySQL
DB with php?
I am need to either post or get a query and wondered if any of you can tell me
what the best way to proceed is?
Andrew
From r937 at interlog.com Mon Feb 24 05:50:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 05:50:01 2003
Subject: [thelist] GET POST Form PHP
References:
Message-ID: <001901c2dbfa$e37e7e20$0cb96618@r9373j4yqbe8dy>
> I am need to either post or get a query and wondered if any of you can
tell me
> what the best way to proceed is?
post
get puts all the form fields in the url
rudy
From kverens at contactjuggling.org Mon Feb 24 05:51:01 2003
From: kverens at contactjuggling.org (Kae Verens)
Date: Mon Feb 24 05:51:01 2003
Subject: [thelist] GET POST Form PHP
In-Reply-To:
References:
Message-ID: <3E5A0684.1010906@contactjuggling.org>
Andrew Maynes wrote:
> PHP guys and dolls
>
> Could someone clarify my muddy thoughts regarding using a form to search a MySQL
> DB with php?
>
> I am need to either post or get a query and wondered if any of you can tell me
> what the best way to proceed is?
>
> Andrew
>
A simple search form might be simply this:
This would send the search term to search.php, which may contain
something like this:
$q=mysql_query('select id,name from searchtable where desc like
"%'.$s.'%" or name like "%'.$s.'%" limit 0,20');
if(mysql_num_rows($q)){
?>Items matching your search:
}else{
?>No matches for that search
}
Assumes you are searching a table called "searchtable", which contains
fields called id, name, and desc.
--
Kae Verens _______\_ webworks.ie
work: www.webworks.ie _____\\__ webhosts
play: www.contactjuggling.org ___\\\___ design
kae: kverens.contactjuggling.org _\\\\____ code
From ed at suppose.co.uk Mon Feb 24 06:30:01 2003
From: ed at suppose.co.uk (Edward George)
Date: Mon Feb 24 06:30:01 2003
Subject: [thelist] mod_rewrite redirection question
Message-ID: <000201c2dc00$a01d9840$9200a8c0@dirtyape>
A question about mod_rewrite on Apache1.3(linux) with rewrite rules
applied in the virtual hosts configuration:
I'm trying to rewrite a url ...co.uk/search?q=search_term (generated by
a html get form) to
...co.uk/search/search_term
at current i've been trying this rule in the virtual host configuration:
RewriteRule /search\?q=(.*) /search/$1 [R]
This however does not appear to be working but seems a correct regular
expression, does anyone have any pointers as to where i might be going
wrong with it?
(I'm using the r flag because i would like the rewritten url to show in
the browser address)
Thanks again,
Ed_
Ed, Suppose, Nottingham UK.
http://www.suppose.co.uk
ed at suppose.co.uk
From morgan at morgankelsey.com Mon Feb 24 07:16:01 2003
From: morgan at morgankelsey.com (Morgan Kelsey)
Date: Mon Feb 24 07:16:01 2003
Subject: [thelist] GET POST Form PHP
References: <001901c2dbfa$e37e7e20$0cb96618@r9373j4yqbe8dy>
Message-ID: <004801c2dc06$eb355290$6401a8c0@jakibyard>
> > I am need to either post or get a query and wondered if any of you can
> tell me
> > what the best way to proceed is?
>
> post
>
> get puts all the form fields in the url
>
but a "GET" submission can be bookmarked, while a "POST" cannot, eh?
From joshua at waetech.com Mon Feb 24 07:37:01 2003
From: joshua at waetech.com (Joshua Olson)
Date: Mon Feb 24 07:37:01 2003
Subject: [thelist] Query help?
References: <3E58BD71.9695.41113EC@localhost> <004f01c2db64$e314d100$0cb96618@r9373j4yqbe8dy> <01c401c2db7b$368e48f0$0300a8c0@client1> <002201c2db81$4d569820$0cb96618@r9373j4yqbe8dy>
Message-ID: <01fe01c2dc09$ef263470$0300a8c0@client1>
----- Original Message -----
From: "rudy"
Sent: Sunday, February 23, 2003 4:18 PM
> > Also, for MySQL, what is the limit on SMALLINT? If it's not
> > 8 bit (TINYINT) and not 16 bit (INTEGER), then what is it?
>
> actually, mysql's tinyint is 4 bits, and smallint is 8 bits
rudy,
Usually you are spot on with everything you say. With 4 bits, the highest
number you can represent is 15. With 8 bits the highest number you can
represent is 255.
http://www.mysql.com/doc/en/Column_types.html
Based on that reference I've determined the following:
TINYINT is 8 bit
SMALLINT is 16 bit
MEDIUMINT is 24 bit
INTEGER is 32 bit
BIGINT is 63 bit
That is what I expected with the exception that BIGINT appears to be shy one
bit. I don't know why.
But, INTEGER would allow for an unsigned value of at most 4294967295. This
is much more than most applications. SMALLINT caps out at 65535 for
unsigned values. That is probably more reasonable for some websites. The
MEDIUMINT, as far as I know, doesn't enjoy wide support and I therefore
wouldn't use it on databases that might need to be ported.
FYI I did some reasearch on identity gap and it appears to be a Sybase
issue:
http://www.sypron.nl/idgaps.html
>
> > so, why not use an INTEGER anyway?
>
> because smallint is ansi standard and better suited to smaller numbers?
Is INT or INTEGER not ANSI standard. I found this reference:
http://sqlx.org/SQLXdocs/20001102-am00-sqltypes.html#integer
Interestingly, it quotes the standard as saying that SMALLINT is not
specifically defined in the standard other than it must be smaller that
INTEGER.
I tried to follow the link to see the "official" SQL99 documentation but it
said something about having to pay money and I turned right around.
Does anybody have access to a free version of the official SQL/92 or SQL/99
documentation?
-joshua
From thelist at lists.evolt.org Mon Feb 24 08:40:01 2003
From: thelist at lists.evolt.org (Tip Harvester)
Date: Mon Feb 24 08:40:01 2003
Subject: [thelist] Tip Harvest for the Week of Monday Feb 17, 2003
Message-ID: <200302240601.h1O61IZL002450@leo.evolt.org>
The tip harvest for the Week of Monday Feb 17, 2003 has been added
to the lists.evolt.org site. Get it at:
http://lists.evolt.org/index.cfm/a/harvest/b/show/c/Week-of-Mon-20030217.html
Week at a glance listing at:
http://lists.evolt.org/index.cfm/a/harvest/b/week/c/Week-of-Mon-20030217.html
Search the tips at:
http://lists.evolt.org/index.cfm/a/harvest/b/search/
Harvest Summary
---------------
Number of messages: 541
Number of tips : 23
Tip Authors
-----------
.jeff (1)
Ben
Henick (1)
benjer (1)
Duncan ONeill (3)
gabriel rivera (1)
Jason Handby (1)
John Corry (1)
John Handelaar (1)
Joshua Olson (1)
Lachlan Cannon (2)
Michael Barrett (1)
Miles Tillinger (1)
Morgan Kelsey (1)
Paul Bennett (1)
rudy (4)
stephen caudill (1)
William Anderson (1)
Tip Types
---------
ASP (1)
authoring software" (1)
Browser Testing (1)
car parks (1)
coldfusion (1)
CSS / Javascript (1)
css/100% height (1)
Flash MX (1)
forms (1)
HTML (1)
PHP (1)
PHP/Apache (1)
POST variables in MSIE (1)
SEO of the gods (1)
SQL: UNION vs. UNION ALL (1)
Typing Issue in JavaScript regarding forms (1)
usability (1)
useful webdev bookmarklets (1)
using EPS cross-platform (1)
web design (1)
webdev (1)
working from home (1)
Zope (1)
From russgri at bellsouth.net Mon Feb 24 08:40:44 2003
From: russgri at bellsouth.net (Russell Griechen)
Date: Mon Feb 24 08:40:44 2003
Subject: [thelist] oh, the irony!!!!!
References: <000c01c2dbb4$edb1e490$0cb96618@r9373j4yqbe8dy>
Message-ID: <00ae01c2dc0e$6b9b7c00$0c611442@oemcomputer>
rudy wrote:
content to display in rows and face="Verdana">columns.
>
>
> and the announcement is itself in a table cell
Looks like it was lost in the dregs of the bucket.
Russell Griechen
From rlmcfarland at attbi.com Mon Feb 24 08:41:25 2003
From: rlmcfarland at attbi.com (Richard McFarland)
Date: Mon Feb 24 08:41:25 2003
Subject: [thelist] oh, the irony!!!!!
In-Reply-To: <000c01c2dbb4$edb1e490$0cb96618@r9373j4yqbe8dy>
Message-ID:
Ha! This is hysterical. Did they not even LOOK at their source code? Thanks,
rudy, for starting my day off with a good healthy laugh..
Richard
--
Richard McFarland
> From: "rudy"
> Reply-To: thelist at lists.evolt.org
> Date: Sun, 23 Feb 2003 22:16:53 -0500
> To:
> Subject: [thelist] oh, the irony!!!!!
>
> see announcement at
> http://www.sitepointforums.com/showthread.php?threadid=97118
>
> "The new site is representative of where SitePoint is heading. We are
> totally focused on Web Professionals, i.e. Web Developers and Designers who
> make their living from building Websites"
>
> "The new site is compliant with the latest W3C Web standards, having been
> completely re-designed using CSS. The only place you'll find a table is
> where a table makes sense, i.e. where there is content to display in rows
> and columns."
>
> but check out that last paragraph in the source code --
>
>
> face="Verdana">The new site is compliant with the latest W3C Web standards,
> having been completely size="2">re-designed using CSS. The only place you'll
> find a table is where face="Verdana">a table makes sense,
> i.e. where there is
> content to display in rows and face="Verdana">columns.
>
>
> and the announcement is itself in a table cell
>
>
> OMG WTF LOL
>
>
>
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
From r937 at interlog.com Mon Feb 24 08:56:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 08:56:01 2003
Subject: [thelist] GET POST Form PHP
References: <001901c2dbfa$e37e7e20$0cb96618@r9373j4yqbe8dy> <004801c2dc06$eb355290$6401a8c0@jakibyard>
Message-ID: <001801c2dc14$fba86910$0cb96618@r9373j4yqbe8dy>
> but a "GET" submission can be bookmarked, while a "POST" cannot, eh?
actually, they both can ;o)
however, the target of the post might fall down go boom if there are no form
fields
graceful error handling is called for
for example, if the target page is supposed to show the results of a search,
and the total number of possible results is manageable, it could simply
default to "all" results
alternatively, it could issue an error like "please enter some search terms"
actually, dispensing with the concept of an "error" might be more
user-friendly
in fact, if the page is a search results page, it should probably have the
search box(es) right there on the same results page, so that searching again
does not require going (back) to the form to enter search terms
i.e. the form is its own post target
then yeah, you would definitely want to bookmark it and still have it work
rudy
From r937 at interlog.com Mon Feb 24 08:57:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 08:57:01 2003
Subject: [thelist] Query help?
References: <3E58BD71.9695.41113EC@localhost> <004f01c2db64$e314d100$0cb96618@r9373j4yqbe8dy> <01c401c2db7b$368e48f0$0300a8c0@client1> <002201c2db81$4d569820$0cb96618@r9373j4yqbe8dy> <01fe01c2dc09$ef263470$0300a8c0@client1>
Message-ID: <001d01c2dc15$0198f2e0$0cb96618@r9373j4yqbe8dy>
> Usually you are spot on with everything you say.
less often than you may think
thanks for the correction
no idea how i managed to translate 4 bytes into 8 bits
> I found this reference:
>
> http://sqlx.org/SQLXdocs/20001102-am00-sqltypes.html#integer
cool, thanks!
> Does anybody have access to a free version of the official SQL/92 or
SQL/99
> documentation?
there ain't one, that i know of
rudy
From les.lytollis at morse.com Mon Feb 24 08:58:01 2003
From: les.lytollis at morse.com (Les Lytollis)
Date: Mon Feb 24 08:58:01 2003
Subject: [thelist] email parser
Message-ID: <0F59E973A6C7D511886F00508BFC9297F5672A@dbyexch1.morse.com>
I want to create an application that can parse the emails that Amazon or eBay send me when I have sold an item. I want to capture the despatch note and delivery address sections and "paste" them into an rtf template .
The problem is, I have no idea where to start. Do I write a VB app that manipulates the "body object" of an Outlook Express message, or can I write it in something like PHP and query the messages on the server.
Any ideas, examples or pointers greatly appreciated.
LezL
From RRust at COVANSYS.com Mon Feb 24 09:22:00 2003
From: RRust at COVANSYS.com (RUST Randal)
Date: Mon Feb 24 09:22:00 2003
Subject: [thelist] comparing dates in mysql
Message-ID: <1A729C6059E7CD4CA1DFE3985E60042101ADE80C@fth-ex02.covansys.com>
I need some sql to run that will compare allow me to see if a record is
more than 30 days old. Is the following appropriate?
select * from $table where to_days(dateCreated)>30
----------
Randal Rust
Covansys Corp.
Columbus, OH
From kverens at contactjuggling.org Mon Feb 24 09:28:01 2003
From: kverens at contactjuggling.org (Kae Verens)
Date: Mon Feb 24 09:28:01 2003
Subject: [thelist] comparing dates in mysql
In-Reply-To: <1A729C6059E7CD4CA1DFE3985E60042101ADE80C@fth-ex02.covansys.com>
References: <1A729C6059E7CD4CA1DFE3985E60042101ADE80C@fth-ex02.covansys.com>
Message-ID: <3E5A393C.2040001@contactjuggling.org>
RUST Randal wrote:
> I need some sql to run that will compare allow me to see if a record is
> more than 30 days old. Is the following appropriate?
>
> select * from $table where to_days(dateCreated)>30
possibly better (more easily readable) is this:
select field,names from $table
where dateCreated < (now() - interval 30 day)
--
Kae Verens _______\_ webworks.ie
work: www.webworks.ie _____\\__ webhosts
play: www.contactjuggling.org ___\\\___ design
kae: kverens.contactjuggling.org _\\\\____ code
From pixelmech at yahoo.com Mon Feb 24 09:29:01 2003
From: pixelmech at yahoo.com (Tom Dell'Aringa)
Date: Mon Feb 24 09:29:01 2003
Subject: [thelist] dynamically removing a row with the DOM
Message-ID: <20030224152915.91801.qmail@web12603.mail.yahoo.com>
Hi,
I have a script where I dynamically add a table row using the DOM,
and it works nicely. The problem is removing the row as well. I have
looked into this, and the removeChild() method is apparently the way
to go.
However, I have had lots of trouble getting anything to work with
this. Has anyone worked with this method on a table, or does anyone
have this type of example? I have looked at PPKs page on the DOM and
reviewed his examples of removing child nodes, and even his example
works half the time and throws exceptions half the time.
I'm just wondering if this is doable. This actually only has to work
in IE. Below is my code to date. TIA
Tom
====================================================
test the remove
function
Table
Title
Field
Field
Field
Field
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
From r937 at interlog.com Mon Feb 24 09:31:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 09:31:01 2003
Subject: [thelist] comparing dates in mysql
References: <1A729C6059E7CD4CA1DFE3985E60042101ADE80C@fth-ex02.covansys.com>
Message-ID: <005f01c2dc19$c481a8c0$0cb96618@r9373j4yqbe8dy>
> ... where to_days(dateCreated)>30
the to_days function converts a date to the number of days since year 0
what you want is
where to_days(current_date) - to_days(dateCreated) > 30
rudy
From gozz at gozz.com Mon Feb 24 10:03:00 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 10:03:00 2003
Subject: [thelist] array of results in PHP
Message-ID: <9BA1E092-4811-11D7-9F47-0030657D18E2@gozz.com>
So, I'm wondering if this can easily be done in PHP:
$all_results = mysql_[somefunction]($my_query);
$all_results[1]['person_id'] = person_id in the first row
$all_results[2]['name'] = name in the second row
etc.
IOW, a multi-dimensional array where the first dimension is the row
number and the second is the column name.
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From kverens at contactjuggling.org Mon Feb 24 10:10:01 2003
From: kverens at contactjuggling.org (Kae Verens)
Date: Mon Feb 24 10:10:01 2003
Subject: [thelist] array of results in PHP
In-Reply-To: <9BA1E092-4811-11D7-9F47-0030657D18E2@gozz.com>
References: <9BA1E092-4811-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <3E5A42E1.4020906@contactjuggling.org>
Erik Mattheis wrote:
> So, I'm wondering if this can easily be done in PHP:
>
> $all_results = mysql_[somefunction]($my_query);
>
> $all_results[1]['person_id'] = person_id in the first row
> $all_results[2]['name'] = name in the second row
> etc.
as far as I know, there isn't a function for that. Here's some code that
should do it.
$q=mysql_query('select person_id,name from theTable');
$all_results=array();
while($all_results[]=mysql_fetch_array($q));
$all_results[0]['person_id'] will be the person_id in the first row
(indices start with 0, not 1)
--
Kae Verens _______\_ webworks.ie
pay: www.webworks.ie _____\\__ webhosts
play: www.contactjuggling.org ___\\\___ design
kae: kverens.contactjuggling.org _\\\\____ code
From evolt at gmx.net Mon Feb 24 10:10:37 2003
From: evolt at gmx.net (Gijs van Tulder)
Date: Mon Feb 24 10:10:37 2003
Subject: [thelist] email parser
In-Reply-To: <0F59E973A6C7D511886F00508BFC9297F5672A@dbyexch1.morse.com>
Message-ID:
> From: Les Lytollis
> Subject: [thelist] email parser
Hi LezL,
> Do I write a VB app that manipulates the "body object" of an
> Outlook Express message, or can I write it in something like PHP
> and query the messages on the server.
Using VB to use Outlook Express doesn't seem to be the best and
most stable solution. Using PHP to parse your email is, in my
opinion, a better option. There are different ways to do this:
1. You could let PHP query your email account for Amazon-messages,
and then let it parse them. See the IMAP/POP3 section of the
PHP manual: http://www.php.net/manual/en/ref.imap.php
2. If you have your own Unix/Linux SMTP server, you could send
Amazon mail directly to PHP. For more information about this
you could read my article on evolt.org:
http://www.evolt.org/article/mail/18/27914/index.html
Option 1 is easier to implement, but you'll need to run it once in
a while to check if there are any messages waiting for you. Option
2 is a bit more work, but in my view a more elegant solution.
HTH,
Gijs
--------------------------
Gijs van Tulder
gvtulder at members.evolt.org
http://gvtulder.f2o.org/
From dannyg at dannyg.com Mon Feb 24 10:37:01 2003
From: dannyg at dannyg.com (Danny Goodman)
Date: Mon Feb 24 10:37:01 2003
Subject: [thelist] dynamically removing a row with the DOM
In-Reply-To: <20030224161449.0F0203A16@relay.evolt.org>
Message-ID:
I much prefer to use the table modification methods associated with the
table/tbody and tr elements:
tableElem.deleteRow()
tableElem.insertRow()
trElem.deleteCell()
trElem.insertCell()
They work fine in IE/Windows and Mozilla.
Danny
http://www.dannyg.com
> I have a script where I dynamically add a table row using the DOM,
> and it works nicely. The problem is removing the row as well. I have
> looked into this, and the removeChild() method is apparently the way
> to go.
From evolt at protocol0.com Mon Feb 24 10:55:01 2003
From: evolt at protocol0.com (gabriel rivera)
Date: Mon Feb 24 10:55:01 2003
Subject: [thelist] email parser
In-Reply-To: <0F59E973A6C7D511886F00508BFC9297F5672A@dbyexch1.morse.com>
Message-ID:
If you end up parsing the mail on the server, this would be a good starting
point
Php Mbox parser class
http://pear.php.net/package-info.php?pacid=150
Theres much more mature code available for perl, however
(watch wrap)
http://search.cpan.org/author/MARKOV/Mail-Box-2.037/Mail/Box/Mbox.pod
http://search.cpan.org/author/MARKOV/Mail-Box-2.037/Mail/Box/Mbox/Message.po
d
And for qmail-style maildirs, should your mta utilize them
http://search.cpan.org/author/MARKOV/Mail-Box-2.037/Mail/Box/Maildir.pod
http://search.cpan.org/author/MARKOV/Mail-Box-2.037/Mail/Box/Maildir/Message
.pod
> I want to create an application that can parse the emails that Amazon or eBay
> send me when I have sold an item. I want to capture the despatch note and
> delivery address sections and "paste" them into an rtf template .
> The problem is, I have no idea where to start. Do I write a VB app that
> can I write it
> in something like PHP and query the messages on the server.
From G.D.Carberry at open.ac.uk Mon Feb 24 10:59:01 2003
From: G.D.Carberry at open.ac.uk (G.D.Carberry)
Date: Mon Feb 24 10:59:01 2003
Subject: [thelist] IE5 CSS madness
Message-ID: <9368AA5C357BD3119BB50006293840DA0AC40168@shockley.open.ac.uk>
--
[ Picked text/plain from multipart/alternative ]
A couple of people who use my site (www.guyweb.co.uk
) have reported problems with the display. They
both use IE5 (PC) and both have to do a massive amount of vertical scrolling
before they reach any content on the site. I have detailed this on my blog
along with a screenshot. Does anybody else who uses ie5 (pc) have this
problem. I've tested it myself and don't get the problem. I've kind of been
putting it down to some mental caching on the behalf of the browser.
Anyway, if you want to see the effect, then hoof off to here:
http://www.guyweb.co.uk/archives/000219.asp
--
Guy Carberry / Web Designer
New Technology for Supporting Students (NTSS)
The Open University http://www.open.ac.uk
Wilson Block, Room D122
01908 6(54576)
http://intranet.open.ac.uk/ntss/
From andrew at humanbehaviour.co.uk Mon Feb 24 11:06:00 2003
From: andrew at humanbehaviour.co.uk (Andrew Maynes)
Date: Mon Feb 24 11:06:00 2003
Subject: [thelist] array of results in PHP
In-Reply-To: <3E5A42E1.4020906@contactjuggling.org>
Message-ID:
Hi Kae
I having been reading up mysql_fetch_array and it appears I need to change my
existing code to something like this:
while ( $myrow = mysql_fetch_array($result) )
printf("
Author :
%s
Message : %s
Date : %s
", $myrow["name"],
$myrow["message"], $myrow["time"]);
}
Am I right? Is this why the query isn't working do you think?
Apologises for the emails x many your help is very much appreciated :)
Andrew
>-----Original Message-----
>From: thelist-admin at lists.evolt.org
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of Kae Verens
>Sent: 24 February 2003 16:06
>To: thelist at lists.evolt.org
>Subject: Re: [thelist] array of results in PHP
>
>
>Erik Mattheis wrote:
>> So, I'm wondering if this can easily be done in PHP:
>>
>> $all_results = mysql_[somefunction]($my_query);
>>
>> $all_results[1]['person_id'] = person_id in the first row
>> $all_results[2]['name'] = name in the second row
>> etc.
>
>as far as I know, there isn't a function for that. Here's some code that
>should do it.
>
>$q=mysql_query('select person_id,name from theTable');
>$all_results=array();
>while($all_results[]=mysql_fetch_array($q));
>
>$all_results[0]['person_id'] will be the person_id in the first row
>(indices start with 0, not 1)
>
>--
>Kae Verens _______\_ webworks.ie
>pay: www.webworks.ie _____\\__ webhosts
>play: www.contactjuggling.org ___\\\___ design
> kae: kverens.contactjuggling.org _\\\\____ code
>
>--
>* * Please support the community that supports you. * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester
>and archives of thelist go to: http://lists.evolt.org
>Workers of the Web, evolt !
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.456 / Virus Database: 256 - Release Date: 18/02/2003
>
From andrew at humanbehaviour.co.uk Mon Feb 24 11:15:01 2003
From: andrew at humanbehaviour.co.uk (Andrew Maynes)
Date: Mon Feb 24 11:15:01 2003
Subject: [thelist] Tips tricks and troubleshooting
Message-ID:
What are the are there any tips and tricks for troubleshooting php code?
Like putting in code that will return some info that indicates you need to
change it?
Andrew
From jcmaynard at nc.rr.com Mon Feb 24 11:22:01 2003
From: jcmaynard at nc.rr.com (jcmaynard)
Date: Mon Feb 24 11:22:01 2003
Subject: [thelist] Re:Customer & Payment Tracking Solution
Message-ID: <14181269.1046107860203.JavaMail.Administrator@atp>
Check out www.webhostingtalk.com for all the information you seek. A few
I've seen mentioned are: ModernBill, PerlBill and phpmanager.
-Jim
From gozz at gozz.com Mon Feb 24 11:37:01 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 11:37:01 2003
Subject: [thelist] Tips tricks and troubleshooting
In-Reply-To:
Message-ID:
On Monday, February 24, 2003, at 11:20 AM, Andrew Maynes wrote:
> Like putting in code that will return some info that indicates you
> need to
> change it?
You and me both, assuming PHP. Finding the real line number of an error
is a pain; I see no relation to the line numbers in BBEdit. I've been
peppering my code with in lines like:
if ($_GET['dubug'] ) { echo("this is line 21 ");}
... so *.php?debug=1 spits out the real lines and helps narrow it down.
and as the first line of every page:
error_reporting(E_ALL);
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From evolt at protocol0.com Mon Feb 24 11:47:01 2003
From: evolt at protocol0.com (gabriel rivera)
Date: Mon Feb 24 11:47:01 2003
Subject: [thelist] Dedicated/virtual private servers
Message-ID:
Hey All,
So who's got the hookup for a good dedicated server/virtual private server
provider on the East Coast?
I've have good success with http://johncompanies.com . Only problem is the
ping times to the west coast. Anyone know of a comparable provider?
-I've only got 150/month to spend
-BSD, or if linux, no 2.2 kernels
-root of course
Gabriel
From rusco_p_cotrain at yahoo.co.uk Mon Feb 24 11:50:00 2003
From: rusco_p_cotrain at yahoo.co.uk (=?iso-8859-1?q?rusco=20cotrain?=)
Date: Mon Feb 24 11:50:00 2003
Subject: [thelist] .NET Hosting in UK suggestions
Message-ID: <20030224161709.73925.qmail@web20701.mail.yahoo.com>
--
[ Picked text/plain from multipart/alternative ]
Folks,
Can anyone recommend high quality UK providers of .NET hosting? This includes the usual suspects of SQL2000 DB, up-to-date .NET framework, service packs ect. In particular I'm interested in companies which are use to providing and managing their own server technology to corporate customers as opposed to resellers who buy packages from overseas companies.
All suggestions welcome.
---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
From gozz at gozz.com Mon Feb 24 11:51:01 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 11:51:01 2003
Subject: [thelist] array of results in PHP
In-Reply-To: <3E5A42E1.4020906@contactjuggling.org>
Message-ID:
On Monday, February 24, 2003, at 10:05 AM, Kae Verens wrote:
> as far as I know, there isn't a function for that.
Well, at least PHP is free, eh?
> $q=mysql_query('select person_id,name from theTable');
> $all_results=array();
> while($all_results[]=mysql_fetch_array($q));
That will suffice, thanks ... superior to using a for loop, which was
the only thing I could think of.
Loving the GD Lib functions ...
Fink is a cool utility that makes it a
lot easier to install and update Unix ports to OS X.
FinkCommander provides a GUI
for Fink, ... you don't even have to open up a terminal. Nice. Exactly
the type of no-brain? no pain! ease we Mac idiots love.
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From n.beresford at anansi.co.uk Mon Feb 24 11:54:01 2003
From: n.beresford at anansi.co.uk (Norman Beresford)
Date: Mon Feb 24 11:54:01 2003
Subject: [thelist] .NET Hosting in UK suggestions
In-Reply-To: <20030224161709.73925.qmail@web20701.mail.yahoo.com>
Message-ID:
Hi Rusco
We use Zenithtech (www.zenithtech.co.uk), the downside being SQL Server 7
rather then 2k. They've got a UK based datacenter.
Norman
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of rusco cotrain
> Sent: 24 February 2003 16:17
> To: thelist at lists.evolt.org
> Subject: [thelist] .NET Hosting in UK suggestions
>
>
> --
> [ Picked text/plain from multipart/alternative ]
>
> Folks,
>
> Can anyone recommend high quality UK providers of .NET hosting?
> This includes the usual suspects of SQL2000 DB, up-to-date .NET
> framework, service packs ect. In particular I'm interested in
> companies which are use to providing and managing their own
> server technology to corporate customers as opposed to resellers
> who buy packages from overseas companies.
>
> All suggestions welcome.
>
>
>
>
>
>
> ---------------------------------
> With Yahoo! Mail you can get a bigger mailbox -- choose a size
> that fits your needs
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
From dan at dwc.to Mon Feb 24 11:58:00 2003
From: dan at dwc.to (Dan Horning)
Date: Mon Feb 24 11:58:00 2003
Subject: [thelist] Dedicated/virtual private servers
In-Reply-To:
Message-ID: <001001c2dc2e$59416720$dd62ca42@dwchome>
Check out interland... They have some affordable deals ... If you want
more info contact me offlist
>From the Desk of Dan Horning
find out what it means to be only limited by imagination at Dsoundmn's
Web Creations
PO Box 109, Clifton Park, NY 12065-0109
---------------------------------------------------------------
Online:
dsoundmn (AIM / Yahoo)
dan at dwc.to (MSN)
14308614 (ICQ)
---------------------------------------------------------------
Telephone:
Voice: 518-383-7877 (hours of operation 9-5, M-F)
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of gabriel rivera
Sent: Monday, February 24, 2003 12:48 PM
To: thelist at lists.evolt.org
Subject: [thelist] Dedicated/virtual private servers
Hey All,
So who's got the hookup for a good dedicated server/virtual private
server provider on the East Coast?
I've have good success with http://johncompanies.com . Only problem is
the ping times to the west coast. Anyone know of a comparable provider?
-I've only got 150/month to spend
-BSD, or if linux, no 2.2 kernels
-root of course
Gabriel
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
From gozz at gozz.com Mon Feb 24 12:09:01 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 12:09:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
Message-ID: <1D5BB26E-4823-11D7-9F47-0030657D18E2@gozz.com>
tip type="Long URLS in plain text emails" author="Erik Mattheis"
I believe I am correct in asserting that every email client that is
capable of hotlinking URLs in plain text messages will not be bothered
by the wrap if you unclose the url in < >. Example:
/tip
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From hblair at hotfootmail.com Mon Feb 24 12:17:00 2003
From: hblair at hotfootmail.com (Hugh Blair)
Date: Mon Feb 24 12:17:00 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <1D5BB26E-4823-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <000001c2dc31$0b02b430$6601a8c0@transportgx>
> -----Original Message-----
> On Behalf Of Erik Mattheis
>
>
>
> I believe I am correct in asserting that every email client that is
> capable of hotlinking URLs in plain text messages will not be bothered
> by the wrap if you unclose the url in < >. Example:
>
Uh, no? Here's what I got in Outlook XP. It's the "?" and "-"
that break URLs. At least in Outlook :(
Hugh
From michele at wordpro.on.ca Mon Feb 24 12:23:01 2003
From: michele at wordpro.on.ca (Michele Foster)
Date: Mon Feb 24 12:23:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
References: <000001c2dc31$0b02b430$6601a8c0@transportgx>
Message-ID: <004a01c2dc31$91591d80$a336a4cf@mef>
Did this work better ?
<
http://shockingelk.com/pictures/rally_2003_02_15/?nothing_else_needed_but_im
=gonna_write&a-write=so_i_can_demonstrate_fer_ya&ye_kin_just_keep_on_typin&t
ypin >
added spaces
M
----- Original Message -----
From: "Hugh Blair"
>
> Uh, no? Here's what I got in Outlook XP. It's the "?" and "-"
> that break URLs. At least in Outlook :(
From abbey at abbeyink.com Mon Feb 24 12:23:47 2003
From: abbey at abbeyink.com (abbey)
Date: Mon Feb 24 12:23:47 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <000001c2dc31$0b02b430$6601a8c0@transportgx>
References: <000001c2dc31$0b02b430$6601a8c0@transportgx>
Message-ID: <200302241233.55551.abbey@abbeyink.com>
On Mon February 24 2003 12:17 pm, Hugh Blair wrote:
>
References: <000001c2dc31$0b02b430$6601a8c0@transportgx> <200302241233.55551.abbey@abbeyink.com>
Message-ID: <3E5A6419.2060105@teltest.com>
abbey wrote:
>On Mon February 24 2003 12:17 pm, Hugh Blair wrote:
>
>
>>>
>>
>
>KMail broke here -- no more link after the date.
>
>
as did Moz mail (1.3b)
--
Paul Bennett
Internet Developer
Teltest Electronic Design
--------------------------
Phone : 64 4 237 0767
Web : http://www.teltest.com
Wap : http://wap.teltest.com
Email : paul at teltest.com
--------------------------
From andrew at humanbehaviour.co.uk Mon Feb 24 12:27:06 2003
From: andrew at humanbehaviour.co.uk (Andrew Maynes)
Date: Mon Feb 24 12:27:06 2003
Subject: [thelist] stdClass boolean FALSE
Message-ID:
If $row (php and MySQL) returns stdClass boolean FALSE what does it means?
Andrew
From hblair at hotfootmail.com Mon Feb 24 12:29:01 2003
From: hblair at hotfootmail.com (Hugh Blair)
Date: Mon Feb 24 12:29:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <004a01c2dc31$91591d80$a336a4cf@mef>
Message-ID: <000301c2dc32$b8d138b0$6601a8c0@transportgx>
> Did this work better ?
>
Nope, seems to have broken at the "=", (=gonna_write)
hb
From mspiegler at lightbulbpress.com Mon Feb 24 12:29:22 2003
From: mspiegler at lightbulbpress.com (matt s.)
Date: Mon Feb 24 12:29:22 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
References: <000001c2dc31$0b02b430$6601a8c0@transportgx>
<004a01c2dc31$91591d80$a336a4cf@mef>
Message-ID: <3E5A64BF.167B5F74@lightbulbpress.com>
nope, it broke after "but_im" for me.
.m
Michele Foster wrote:
> Did this work better ?
>
> <
> http://shockingelk.com/pictures/rally_2003_02_15/?nothing_else_needed_but_im
> =gonna_write&a-write=so_i_can_demonstrate_fer_ya&ye_kin_just_keep_on_typin&t
> ypin >
>
> added spaces
>
> M
>
> ----- Original Message -----
> From: "Hugh Blair"
> >
> > Uh, no? Here's what I got in Outlook XP. It's the "?" and "-"
> > that break URLs. At least in Outlook :(
>
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
From kverens at contactjuggling.org Mon Feb 24 12:31:09 2003
From: kverens at contactjuggling.org (kverens at contactjuggling.org)
Date: Mon Feb 24 12:31:09 2003
Subject: [thelist] Re: array of results in PHP
In-Reply-To:
References:
Message-ID: <20030224182931.30560.qmail@mail.webworks.ie>
Andrew Maynes writes:
> Hi Kae
>
> I having been reading up mysql_fetch_array and it appears I need to change my
> existing code to something like this:
>
> while ( $myrow = mysql_fetch_array($result) )
>
> printf("
Author :
> %s
>
Message : %s
>
Date : %s
", $myrow["name"],
> $myrow["message"], $myrow["time"]);
>
> }
>
> Am I right? Is this why the query isn't working do you think?
The main reasons your code wasn't working was that you were connecting okay
(mysql_connect()), but were then querying and specifying an unassigned
connection (mysql_query($DBNAME,'select blah blah...') - where did $DBNAME
come from?).
It is better for future-proofing that you address your variables as $r['id']
rather than $r[0], but it's not a /must/ - the reasoning is simple - if at
some time the table layout changes and a new field is entered before
$r['id'] (for example), then all $r[0] (etc) addresses will be invalid. The
name based versions, though, will be fine.
In my opinion, though, printf() should only be used when you have actual
formatting to do to the values (printf('€%.2f',234); for example)
Kae
From gozz at gozz.com Mon Feb 24 12:32:00 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 12:32:00 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <3E5A6419.2060105@teltest.com>
Message-ID: <5127A08C-4826-11D7-9F47-0030657D18E2@gozz.com>
On Monday, February 24, 2003, at 12:27 PM, Paul Bennett wrote:
> abbey wrote:
>
>> On Mon February 24 2003 12:17 pm, Hugh Blair wrote:
>>
>>
>>> >>
>>>
>>
>> KMail broke here -- no more link after the date.
>>
>>
> as did Moz mail (1.3b)
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From gozz at gozz.com Mon Feb 24 12:35:01 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 12:35:01 2003
Subject: [thelist] why use UTC
Message-ID:
What's the advantage for having unix epoch times always in GMT if your
app is hosted in a single time zone?
I don't want to ...
Can anyone point me (or give me) instructions to change this behavior
on Jaguar/PHP 4.3/MySQL ... so unix time stamps are produced in local
time? I've looked in the INI files and couldn't find anything and I
have failed on google. TIA.
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From Ed at ComSimplicity.com Mon Feb 24 12:37:01 2003
From: Ed at ComSimplicity.com (Ed McCarroll)
Date: Mon Feb 24 12:37:01 2003
Subject: [thelist] $_GET undefined [was: Tips tricks and troubleshooting]
In-Reply-To:
Message-ID:
> if ($_GET['dubug'] ) { echo("this is line 21 ");}
I tried to do something like that:
if ($_GET['MenuID']) {echo "Yes";} else {echo "No";};
and got an error:
Notice: Undefined index: MenuID in ...
So I used array_key_exists(). But it works fine for my partner.
Is there a switch or something?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ed McCarroll MailTo:Ed at ComSimplicity.com
ComSimplicity (310) 838-4330
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
From zero at gozz.com Mon Feb 24 12:37:08 2003
From: zero at gozz.com (Erik Mattheis)
Date: Mon Feb 24 12:37:08 2003
Subject: [thelist] Why use UTC time?
Message-ID: <4FCEB6B3-4824-11D7-9F47-0030657D18E2@gozz.com>
What's the advantage for having unix epoch times always in GMT if your
app is hosted in a single time zone? Seems useless to me. Nay,
detrimental.
Can anyone point me (or give me) instructions to change this behavior
on Jaguar/PHP 4.3/MySQL ... so unix time stamps are calculated in local
time? I've looked in the INI files and couldn't find anything and I
have failed on google. TIA.
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From chrisg at gsnet.com Mon Feb 24 12:37:43 2003
From: chrisg at gsnet.com (Chris George)
Date: Mon Feb 24 12:37:43 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <004a01c2dc31$91591d80$a336a4cf@mef>
Message-ID: <01966AA3-4826-11D7-9207-00306551FE8E@gsnet.com>
On Monday, February 24, 2003, at 11:21 AM, Michele Foster wrote:
> Did this work better ?
>
> <
> http://shockingelk.com/pictures/rally_2003_02_15/
> ?nothing_else_needed_but_im
> =gonna_write&a-
> write=so_i_can_demonstrate_fer_ya&ye_kin_just_keep_on_typin&t
> ypin >
>
> added spaces
>
> M
Nup - that doesn't work in Mail.app (OS X). FWIW the original tip does
work as intended for me.
From r937 at interlog.com Mon Feb 24 12:39:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 12:39:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
References: <5127A08C-4826-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <009001c2dc33$eab74f80$0cb96618@r9373j4yqbe8dy>
give up, guys
use tinyurl.com
rudy
From hblair at hotfootmail.com Mon Feb 24 12:43:01 2003
From: hblair at hotfootmail.com (Hugh Blair)
Date: Mon Feb 24 12:43:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <5127A08C-4826-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <000401c2dc34$986681a0$6601a8c0@transportgx>
Message-ID: <6D07EDDC-4828-11D7-9F47-0030657D18E2@gozz.com>
Although I've only been tinkering with PHP for a week, and just gave a
misguided tip, I will take a stab at this one: You can determine the
level of error reporting in the INI file:
... and seem to remember
reading that newer versions may report more errors than older ones.
On Monday, February 24, 2003, at 12:37 PM, Ed McCarroll wrote:
>> if ($_GET['dubug'] ) { echo("this is line 21 ");}
>
> I tried to do something like that:
>
> if ($_GET['MenuID']) {echo "Yes";} else {echo "No";};
>
> and got an error:
>
> Notice: Undefined index: MenuID in ...
>
> So I used array_key_exists(). But it works fine for my partner.
> Is there a switch or something?
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From evolt at protocol0.com Mon Feb 24 12:48:01 2003
From: evolt at protocol0.com (gabriel rivera)
Date: Mon Feb 24 12:48:01 2003
Subject: [thelist] Dedicated/virtual private servers
In-Reply-To: <005401c2dc32$28688850$0c62010a@mercury>
Message-ID:
Hi Abdullah,
Thanks for the offer. I'd like to work with you on this, but sadly my
partners wouldn't go for it...they want the accountability and support
infrastructure of a full company. (for whatever that's worth.) Sounds like
a mighty sweet setup....
However, I might contact you soon to setup a personal server!
-Gabriel
> I have 180u of rack space at the AboveNet datacenter in San Jose.
From tech at antix.co.uk Mon Feb 24 12:49:01 2003
From: tech at antix.co.uk (Anthony Johnston - Antix)
Date: Mon Feb 24 12:49:01 2003
Subject: [thelist] .NET Hosting in UK suggestions
In-Reply-To: <20030224161709.73925.qmail@web20701.mail.yahoo.com>
Message-ID:
>Can anyone recommend high quality UK providers of .NET hosting?
www.titanhosts.net are very good. Ant.
>-----Original Message-----
>From: thelist-admin at lists.evolt.org
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of rusco cotrain
>Sent: 24 February 2003 16:17
>To: thelist at lists.evolt.org
>Subject: [thelist] .NET Hosting in UK suggestions
From gozz at gozz.com Mon Feb 24 12:51:00 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 12:51:00 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <000401c2dc34$986681a0$6601a8c0@transportgx>
Message-ID:
I feel like I just yelled "LOOK, FIREMEN!" in a burning theater. If
someone would kindly disinclude it from the tip archive, I will become
a devout practioner of any religion you wish me to.
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From toby at rsux.com Mon Feb 24 12:52:01 2003
From: toby at rsux.com (Tobyn Baugher)
Date: Mon Feb 24 12:52:01 2003
Subject: [thelist] $_GET undefined [was: Tips tricks and
troubleshooting]
In-Reply-To:
References:
Message-ID: <176260679.1046094741@[192.168.0.4]>
On Monday, February 24, 2003 10:37 AM -0800 Ed McCarroll
wrote:
> So I used array_key_exists(). But it works fine for my partner.
> Is there a switch or something?
You are probably using error_reporting(E_ALL) (this can be set with the
function call or in php.ini) while your partner is probably using E_ALL
& ~E_NOTICE which won't show the Notice: messages like the one you
pointed out.
E_ALL & ~E_NOTICE is the default PHP setting, so if he hasn't changed
it manually (by using php.ini-recommended, changing the value in
php.ini himself, or using error_reporting(E_ALL) in his code) then
that's what he has.
Side note: I find myself unable to use E_ALL because having to use
array_key_exists all the time is so awkward. It's like having to check
everything for null pointers in Java, and if I wanted to do that I'd
just use Java instead and get the benefits of better OO and real
exception handling :).
Regards,
Toby
--
Tobyn Baugher
http://www.rsux.com
aim: dieplzkthxbye icq: 14281524 efnet: toby
From joshua at waetech.com Mon Feb 24 12:57:01 2003
From: joshua at waetech.com (Joshua Olson)
Date: Mon Feb 24 12:57:01 2003
Subject: [thelist] DHTML: Need help making menus work on Mac IE
Message-ID: <00e401c2dc36$95f39af0$0300a8c0@client1>
Hi!
I was wondering if some DHTML/CSS guru with a Mac could look at the
following code and see if you could make the menu's work on Mac. They work
on IE 6.0 PC already.
Thank you!
http://www.waetech.com/menu.html
-joshua
From pixelmech at yahoo.com Mon Feb 24 13:04:01 2003
From: pixelmech at yahoo.com (Tom Dell'Aringa)
Date: Mon Feb 24 13:04:01 2003
Subject: [thelist] formatting text in a SELECT OPTION
Message-ID: <20030224190405.25608.qmail@web12603.mail.yahoo.com>
Heyo,
I thought I came across somewhere a technique where you could format
*individual* text elements in an tag.
I know I can set a style on an option, but I actually want to have
like one word bold and red or something - anyone know any tricks for
this?
You can rewrite that text with options[index].text but I can't find
any formatting info.
TIA
Tom
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
From pixelmech at yahoo.com Mon Feb 24 13:04:07 2003
From: pixelmech at yahoo.com (Tom Dell'Aringa)
Date: Mon Feb 24 13:04:07 2003
Subject: [thelist] formatting text in a SELECT OPTION
Message-ID: <20030224190424.25630.qmail@web12603.mail.yahoo.com>
Heyo,
I thought I came across somewhere a technique where you could format
*individual* text elements in an tag.
I know I can set a style on an option, but I actually want to have
like one word bold and red or something - anyone know any tricks for
this?
You can rewrite that text with options[index].text but I can't find
any formatting info.
TIA
Tom
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
From rob.smith at THERMON.com Mon Feb 24 13:09:01 2003
From: rob.smith at THERMON.com (Rob Smith)
Date: Mon Feb 24 13:09:01 2003
Subject: [thelist] A:Active Working Example?
Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
Hi list,
There was a topic a few days ago about highlighting the active or currently
link you're on, but it really wasn't answered to my satisfaction. After
researching the a:active css property, I realized that this is what happens
on the press state of the mouse click.
Rudy's example of the various css styles looked promising but I wasn't
convinced that would work as it didn't reset visited links.
Abbey's example looked neat with the PHP usage, but I'm not going to fool
with UNIX based solutions at the present.
I tried but failed to implement a class definition solution. Here's my css:
A.selected {
color: #911100;
font-weight: bold;
background-color: transparent;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px
}
File wasn't showing the new
style. I included it with the directive, but still no change. *I know
it was linked properly due to the fact that all the other A:(behaviors) were
working properly.
BTW, is css case sensitive? a.something vs. A.something? I would really like
to see a working example. Thanks efolk.
Rob.Smith
From emmajane at xtrinsic.com Mon Feb 24 13:14:01 2003
From: emmajane at xtrinsic.com (Emma Jane Hogbin)
Date: Mon Feb 24 13:14:01 2003
Subject: [thelist] A:Active Working Example?
In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
References: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
Message-ID: <20030224191332.GA2347@debian>
On Mon, Feb 24, 2003 at 01:06:48PM -0600, Rob Smith wrote:
> I tried but failed to implement a class definition solution. Here's my css:
> BTW, is css case sensitive? a.something vs. A.something? I would really like
> to see a working example. Thanks efolk.
Yes, it is case sensitive.
Here's an example:
http://careermatters.tvo.org/highschool/other.phtml
--
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]
From toby at rsux.com Mon Feb 24 13:17:06 2003
From: toby at rsux.com (Tobyn Baugher)
Date: Mon Feb 24 13:17:06 2003
Subject: [thelist] Dedicated/virtual private servers
In-Reply-To:
References:
Message-ID: <177762909.1046096243@[192.168.0.4]>
On Monday, February 24, 2003 12:47 PM -0500 gabriel rivera
wrote:
> So who's got the hookup for a good dedicated server/virtual private
> server provider on the East Coast?
I've had a Rackshack (rackshack.net) server for a long time and I love
it. $120/mo for a P41.8ghz/512MB/40GB box with a 100Mbps ethernet port
and 400GB/mo transfer. Mine's Red Hat 7.2, and while I would really
have preferred FreeBSD they're such a good deal otherwise that I
couldn't pass it up. Anyway, it's more personal preference than
anything, Red Hat works just fine though I've had to custom craft a few
RPMs of my own to get everything where I want it.
Their setup is instant. You place an order through their website, they
call the phone number listed in the order to confirm it immediately
after you hit submit, and then they give you the IP and temp root
password of your new box.
Their support is pretty good; being available 24/7 via e-mail, IRC, and
I believe telephone, though I have never felt the need to call them.
They have some stupid reverse DNS policies but they really only bite
people using vanity domains for IRC, etc. They've got some freebies
most other hosting companies I've seen expect you to pay extra for, but
for the most part I don't make use of them.
They're based in Texas, so I guess they don't count as east coast.
Still, I've hosted a Counter-Strike server on one of their boxes and
averaged 30-40ms ping times to it from ATTBI cable in Atlanta. People
in California saw about the same numbers, so I feel it's really the
best of both worlds.
As an alternative, as someone else said already, Interland has some
plans that match what you're looking for. They've got Red Hat dedicated
boxes and FreeBSD virtual private servers that both fall under the
$150/mo number. I'll refrain from giving any opinion on them since I'm
an ex-employee, but I know plenty of people on the list have experience
with them that they can relate to you.
HTH,
Toby
--
Tobyn Baugher
http://www.rsux.com
aim: dieplzkthxbye icq: 14281524 efnet: toby
From evoltlist at rogers.com Mon Feb 24 13:19:01 2003
From: evoltlist at rogers.com (Ingrid Z)
Date: Mon Feb 24 13:19:01 2003
Subject: [thelist] Netscape/Session variable problem
Message-ID: <005f01c2dc39$ff3364c0$38c52a18@userf1xcwzruul>
--
[ Picked text/plain from multipart/alternative ]
Hi,
Am having a weird problem in Netscape only. Have a shopping cart with items, and a Session variable that keeps count of the items. When the user goes to the order processing page for the first time using Netscape, the cart items are not there.
However, going back to get an item and then to the order processing page, the item is then there.
This does not happen in IE.
I have looked at the code until I am seeing double.
Any hints as to why the Session variable doesn't get read the first time?
Thanks for any tips,
Ingrid
--
From eike.pierstorff at dynamique.de Mon Feb 24 13:19:11 2003
From: eike.pierstorff at dynamique.de (Eike Pierstorff)
Date: Mon Feb 24 13:19:11 2003
Subject: [thelist] $_GET undefined [was: Tips tricks and
troubleshooting]
In-Reply-To:
References:
Message-ID: <5.2.0.9.0.20030224200920.01e40498@pop.puretec.de>
At 10:37 24.02.2003 -0800, you wrote:
> > if ($_GET['dubug'] ) { echo("this is line 21 ");}
>
>I tried to do something like that:
>
> if ($_GET['MenuID']) {echo "Yes";} else {echo "No";};
>
>and got an error:
>
> Notice: Undefined index: MenuID in ...
>
>So I used array_key_exists(). But it works fine for my partner.
>Is there a switch or something?
Try "if (isset($_GET['MenuID']) .....". Worked for me, and I guess it's
better than supressing PHP notices.
-- eike
From roselli at earthlink.net Mon Feb 24 13:20:00 2003
From: roselli at earthlink.net (aardvark)
Date: Mon Feb 24 13:20:00 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <1D5BB26E-4823-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <200302241919.h1OJJP3b012449@leo.evolt.org>
> From: Erik Mattheis
[...]
> I believe I am correct in asserting that every email client that is
> capable of hotlinking URLs in plain text messages will not be bothered
> by the wrap if you unclose the url in < >. Example:
nup, never worked outside of Eudora that i know of...
> ?nothing_else_needed_but_im=gonna_write&a-
> write=so_i_can_demonstrate_fer_ya&ye_kin_just_keep_on_typin&typin>
above is what i see... three lines, first break after the 15/, second
break after the &a-, and then the third line went beyond the
character limit... this is in Pegasus Mail...
--
my latest book project:
Web Graphics for Non-Designers
http://amazon.com/exec/obidos/ASIN/1904151159/evoltorg02-20
ISBN: 1904151159
From toby at rsux.com Mon Feb 24 13:23:01 2003
From: toby at rsux.com (Tobyn Baugher)
Date: Mon Feb 24 13:23:01 2003
Subject: [thelist] TIP: don't mind the wrap, it's harmless
In-Reply-To: <01966AA3-4826-11D7-9207-00306551FE8E@gsnet.com>
References: <01966AA3-4826-11D7-9207-00306551FE8E@gsnet.com>
Message-ID: <178154352.1046096634@[192.168.0.4]>
On Monday, February 24, 2003 11:30 AM -0700 Chris George
wrote:
> Nup - that doesn't work in Mail.app (OS X). FWIW the original tip does
> work as intended for me.
Similarly, yay on the original, nay on the follow-up in Mulberry 3.0 on
Windows.
--
Tobyn Baugher
http://www.rsux.com
aim: dieplzkthxbye icq: 14281524 efnet: toby
From p+evolt at redbrick.dcu.ie Mon Feb 24 13:25:01 2003
From: p+evolt at redbrick.dcu.ie (Kevin Cannon)
Date: Mon Feb 24 13:25:01 2003
Subject: [thelist] Font anti-alisaing?
Message-ID: <20030224192516.A17055@prodigy.Redbrick.DCU.IE>
Hey,
Does anyone have any idea what OSes have it turned on by default,
and hoe many poeple approximately that is.
Also, some fonnts anti-alias even at small res, helvetica & georgia to name a
few.
Need info on this cause i'm trying to decide to go with graphics or text for
part of my site.
Thanks,
- Kevin
From kverens at contactjuggling.org Mon Feb 24 13:30:01 2003
From: kverens at contactjuggling.org (kverens at contactjuggling.org)
Date: Mon Feb 24 13:30:01 2003
Subject: [thelist] Re: formatting text in a SELECT OPTION
In-Reply-To: <20030224190424.25630.qmail@web12603.mail.yahoo.com>
References: <20030224190424.25630.qmail@web12603.mail.yahoo.com>
Message-ID: <20030224192839.1711.qmail@mail.webworks.ie>
Tom Dell'Aringa writes:
> Heyo,
>
> I thought I came across somewhere a technique where you could format
> *individual* text elements in an tag.
>
> I know I can set a style on an option, but I actually want to have
> like one word bold and red or something - anyone know any tricks for
> this?
why not do something like this?
This works in Mozilla, I believe, but not IE (can't test atm - my X is
broken).
Kae
From p+evolt at redbrick.dcu.ie Mon Feb 24 13:34:00 2003
From: p+evolt at redbrick.dcu.ie (Kevin Cannon)
Date: Mon Feb 24 13:34:00 2003
Subject: [thelist] tinyURL usage
Message-ID: <20030224193424.B17055@prodigy.Redbrick.DCU.IE>
On Mon, Feb 24, 2003 at 01:38:16PM -0500, rudy wrote:
> give up, guys
> use tinyurl.com
I kind think tinyURL and things of their ILK are actually a bad idea.
I find 5 years time it goes bust or starts using ads then all the hyperlinks
in mailing list archives etc... will be lost, and searching archives won't be
much use.
I understand the idea in principle, but I think encouraging webmasters to
create shorter URL it's a better idea.
Also, many URLs can be shortened:
e.g.
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=evolt
Can be shortened to:
http://www.google.com/search?q=evolt
and still function correctly,
Usually there's only one or two key pieces of information.
I think ifpossible people should try to do that.
- Kevin
From pixelmech at yahoo.com Mon Feb 24 13:37:01 2003
From: pixelmech at yahoo.com (Tom Dell'Aringa)
Date: Mon Feb 24 13:37:01 2003
Subject: [thelist] Re: formatting text in a SELECT OPTION
In-Reply-To: <20030224192839.1711.qmail@mail.webworks.ie>
Message-ID: <20030224193746.30035.qmail@web12602.mail.yahoo.com>
> Tom Dell'Aringa writes:
>
> > Heyo,
> > I thought I came across somewhere a technique where you could
> > format *single* text elements in an tag
> > I know I can set a style on an option, but I actually want to
> > have like one word bold and red or something - anyone know any
> > tricks for this?
--- kverens at contactjuggling.org wrote:
> why not do something like this?
>
>
>
> This works in Mozilla, I believe, but not IE (can't test atm - my X
> is broken).
I need this to work in IE as well.
Tom
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
From p+evolt at redbrick.dcu.ie Mon Feb 24 13:44:01 2003
From: p+evolt at redbrick.dcu.ie (Kevin Cannon)
Date: Mon Feb 24 13:44:01 2003
Subject: [thelist] A:Active Working Example?
In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>; from rob.smith@THERMON.com on Mon, Feb 24, 2003 at 01:06:48PM -0600
References: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
Message-ID: <20030224194416.C17055@prodigy.Redbrick.DCU.IE>
On Mon, Feb 24, 2003 at 01:06:48PM -0600, Rob Smith wrote:
> There was a topic a few days ago about highlighting the active or currently
> link you're on, but it really wasn't answered to my satisfaction. After
> researching the a:active css property, I realized that this is what happens
> on the press state of the mouse click.
I'm not sureif it was the thread I start but here's something I knocked up
following stuff on this mailing list:
Basically just changes the class of the currentlink you're on to 'currentlink'
_very_ useful for navbars. (:
- Kevin
// JavaScript Highlight Current link.
// Link this js document, then call it in the body tag:
//
// Based on Inigo Surguy's version at:
// http://www.surguy.net/menu/highlight.html
// Modified by Kevin Cannon http://www.multiblah.com
// Get's the URL and parses it
function getURL() {
var url = document.location.href;
return parseURL(url);
}
// Strips a URL to just the filename
function parseURL (url) {
var fileName = url.split("/");
fileName = (fileName[fileName.length-1]);
return fileName;
}
// Searches through the doc looking for links
// Only checks the navigation ID
// Changes class of the current link to /currentlink
function highlightCurrentLink() {
var currentLocation = getURL();
var nav = document.getElementById("navigation");
//alert ("currentLocation" + currentLocation);
links = nav.getElementsByTagName("a");
for (i=0; i
Message-ID: <005101c2dc3d$4c5cc860$0cb96618@r9373j4yqbe8dy>
> Rudy's example of the various css styles looked promising but I wasn't
> convinced that would work as it didn't reset visited links.
could you explain what you mean by "reset" visited links?
if you want links not to have a separate colour for visited state, that's
easy
rudy
From pixelmech at yahoo.com Mon Feb 24 13:45:48 2003
From: pixelmech at yahoo.com (Tom Dell'Aringa)
Date: Mon Feb 24 13:45:48 2003
Subject: [thelist] phony ebay scam? Security of info on the web
Message-ID: <20030224194546.92618.qmail@web12601.mail.yahoo.com>
I probably will owe a tip for this, but I am wondering about how this
was done development wise.
My in-laws got this message which is apparently bogus - and had a
real hard time figuring out why they got it since their card was
good. The scary thing about this message is their name is correct,
and I think the 4 digits showing on the cc are correct.
How could someone get this info off the ebay servers if it is
encrypted? I guess ebay is getting calls all day about this. I looked
over the email, and aside from 1 or 2 grammar things it looks totally
legit. I thought maybe the cgi3.ebay links were phony, but they
appear to be valid - if you click on it you are asked to log in. What
does this say about security on the web!
Heres the email:
==================================================================
> *******Please Do Not Reply To This E-Mail As You Will Not Receive a
Response*******
> Customer Account: E26093264001-USD <-- this is probably fake
> Customer Name: ##their real name was here##
> Credit Card Account: 5555-XXXX-XXXX-XXXX <--the #s here were right
> Payment Due: $49.09
>
>
> Dear ##Their Name##:
>
> We are writing to alert you that your balance is still not paid,
because
your debit/credit card declined eBay's second attempt to charge to
your
card. There are only a few days left to make payment before the end
of your
billing cycle. If your account becomes past due, it will be blocked
from
additional bids or listings.
>
> Your payment for your invoice amount is still due. You can make
payment by
check, money order or by submitting a one-time credit card payment
request.
Please use the links below:
>
> To view your account balance:
> http://cgi3.ebay.com/ws/eBayISAPI.dll?ViewAccountStatus
>
> To make a payment now go to:
> http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?PayCouponShow
>
> If you want to review or update your credit card billing
information, or
place a different card on file for eBay billing, please use the link
below:
> https://arribada.ebay.com/saw-cgi/eBayISAPI.dll?PlaceCCInfo
>
> Several factors outside of eBay's control may have caused your card
to
decline. We can suggest:
> * Confirm that the credit card number and expiration date that you
have on
file with eBay are accurate and up to date.
> * Contact your card-issuing bank and confirm with the card issuer
that:
> * your card account is in good standing;
> * adequate credit is available on the account to accept the charge;
> * the account does not have a internet/phone order block; and
> * if the account is new, the account has been activated.
> * If you have a debit or check card on file, please remember that
these
cards may be subject to usage limits set by your bank. Contact your
issuing
bank to determine if there are daily and/or transaction limits or any
other
restrictions that may cause your card to decline.
>
> Your prompt attention to this matter is greatly appreciated.
>
> Thank you,
>
> eBay Customer Accounts
========================================================
If this does turn out to be fake its pretty disturbing. They did
cancel their CC however.
Tom
(I owe one)
=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
From shawn at alterior.net Mon Feb 24 13:47:02 2003
From: shawn at alterior.net (shawn allen)
Date: Mon Feb 24 13:47:02 2003
Subject: [thelist] Why use UTC time?
In-Reply-To: <4FCEB6B3-4824-11D7-9F47-0030657D18E2@gozz.com>
References: <4FCEB6B3-4824-11D7-9F47-0030657D18E2@gozz.com>
Message-ID: <20030224194708.GX6440@pion.local>
quoth Erik Mattheis:
> What's the advantage for having unix epoch times always in GMT if your
> app is hosted in a single time zone? Seems useless to me. Nay,
> detrimental.
The UNIX epoch /is/ midnight GMT. Storing time vales relative to
differing timezones on individual files or machines would kinda defeat
the purpose of having a standard, wouldn't it?
> Can anyone point me (or give me) instructions to change this behavior
> on Jaguar/PHP 4.3/MySQL ... so unix time stamps are calculated in
> local time? I've looked in the INI files and couldn't find anything
> and I have failed on google. TIA.
In UNIX, though time is always stored relative to the epoch, all
date-sensitive functions return values relative to the machine's current
timezone (which is just an offset in seconds), unless otherwise
specified. This is a handy convention because it allows you to change
the time zone within any atomic, temporary process without modifying the
timestamps of any permanent objects. In PHP (and many other
environments, including RDBMS's), the TZ environment variable determines
the output of time(), mktime(), date(), etc. To change your timezone,
simply change the environment variable:
putenv('TZ=US/Pacific');
Valid values for TZ are paths for files in your zoneinfo directory -- in
OS X and other BSD's, it's /usr/share/zoneinfo
(/usr/share/zoneinfo/US/Pacific is actually a regular file containing
time zone information).
If values are coming out of PHP as GMT, you might not have properly
configured the time zone on your machine. If you want to change the
timezone for a particular application, you could use apache's mod_env to
set TZ within a VirtualHost block:
ServerName foo
SetEnv TZ US/Pacific
...or just do it in the PHP. :)
--
shawn allen
mailto://shawn at alterior.net
phone://415.577.3961
http://alterior.net
aim://shawnpallen
From cparker at swatgear.com Mon Feb 24 13:53:01 2003
From: cparker at swatgear.com (Chris W. Parker)
Date: Mon Feb 24 13:53:01 2003
Subject: [thelist] Font anti-alisaing?
Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE14E44D@ati-ex-01.ati.local>
Kevin Cannon wrote:
> Does anyone have any idea what OSes have it turned on by default,
> and hoe many poeple approximately that is.
I would say few OS's do this by default. Maybe OSX and WinXP do it by
default? Maybe also some Linux distro's?
By default it is not turned on in Win2k and I don't think anything lower
than Win2k had the option. I would guess that 80-90% of people will not
have it on.
I suggest you use graphics if you're that concerned with it.
chris.
From r937 at interlog.com Mon Feb 24 13:57:01 2003
From: r937 at interlog.com (rudy)
Date: Mon Feb 24 13:57:01 2003
Subject: [thelist] A:Active Working Example?
References: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local> <20030224191332.GA2347@debian>
Message-ID: <005b01c2dc3f$070ce090$0cb96618@r9373j4yqbe8dy>
>> BTW, is css case sensitive? a.something vs. A.something?
>> I would really like to see a working example. Thanks efolk.
>
> Yes, it is case sensitive.
>
> Here's an example:
> http://careermatters.tvo.org/highschool/other.phtml
i see only lower case selectors in careermatters.css
there are mixed case class names, though
i believe a.something and A.something will both work, and both will select
links that are coded either A or a
still, it's probably better to code selectors in lower case
emma, in that style sheet, is says
/* NOTES ABOUT LINKS
These links match too much in proper CSS because of
anchors. In proper format these would be
a[href] to match links with an attribute of "href". */
a:link, a:visited { ... }
a:active { ... }
a:hover { ... }
and yet the style sheet has no rule for a
that's the whole point of "my" technique (it's not actually mine, of course,
but let's call it that for the sake of this discussion)
first, you define styles for all anchors using the a selector
then you "override" and/or add styles for links, i.e. a:link and a:visited
this means anchors, as in , will have some styles in common
with links
this works really well in nav bars for the "you are here"
link-that-isn't-a-link that is supposed to be inactive, i.e. text-like
rudy
From jeff at members.evolt.org Mon Feb 24 14:02:00 2003
From: jeff at members.evolt.org (.jeff)
Date: Mon Feb 24 14:02:00 2003
Subject: [thelist] Font anti-alisaing?
In-Reply-To: <001BD19C96E6E64E8750D72C2EA0ECEE14E44D@ati-ex-01.ati.local>
Message-ID:
chris,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Chris W. Parker
>
> By default it is not turned on in Win2k and I don't
> think anything lower than Win2k had the option. I would
> guess that 80-90% of people will not have it on.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
actually, font aliasing/smoothing was available as a standard option in
win98. additionally, if you installed the plus pack with win95 you could
get it as well.
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
From gozz at gozz.com Mon Feb 24 14:03:00 2003
From: gozz at gozz.com (Erik Mattheis)
Date: Mon Feb 24 14:03:00 2003
Subject: [thelist] DHTML: Need help making menus work on Mac IE
In-Reply-To: <00e401c2dc36$95f39af0$0300a8c0@client1>
Message-ID: <12457602-4833-11D7-9F47-0030657D18E2@gozz.com>
The top level menus jiggle a bit onmouseover, but this seems to be
fixed by adding:
li {
width:150px;
}
as the first list related style definition.
On Monday, February 24, 2003, at 12:57 PM, Joshua Olson wrote:
> Hi!
>
> I was wondering if some DHTML/CSS guru with a Mac could look at the
> following code and see if you could make the menu's work on Mac. They
> work
> on IE 6.0 PC already.
>
> Thank you!
>
> http://www.waetech.com/menu.html
>
> -joshua
-----------------------
Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN
-----------------------
From abbey at abbeyink.com Mon Feb 24 14:08:01 2003
From: abbey at abbeyink.com (abbey)
Date: Mon Feb 24 14:08:01 2003
Subject: [thelist] A:Active Working Example?
In-Reply-To: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
References: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
Message-ID: <200302241419.41909.abbey@abbeyink.com>
http://www.w3schools.com/css/css_pseudo_classes.asp
perhaps that will help?
http://evolt.org/article/Using_CSS_to_create_rollovers/17/16676/index.html
Another good CSS resource.
Reset visited links? You mean make them look like unvisited links? Then just
write the a:visited class to be the same as the a:link
On Mon February 24 2003 1:06 pm, Rob Smith wrote:
> [snip] I would really
> like to see a working example. Thanks efolk.
>
> Rob.Smith
From shark at mako4css.com Mon Feb 24 14:09:01 2003
From: shark at mako4css.com (MaKo)
Date: Mon Feb 24 14:09:01 2003
Subject: [thelist] A:Active Working Example?
References: <0CEC8258A6E4D611BE5400306E1CC9271E47C8@smtmb.tmc.local>
Message-ID: <3e5a7e69$1@fuseware.com>
Rob,
> There was a topic a few days ago about highlighting the active or
currently
> link you're on, but it really wasn't answered to my satisfaction. After
What you could do is declare a custom class for the anchor of the page
that you are on, like:
a.nowon:link {
color: #FF00FF;
background: #CDCDCD;
font-size: 1.5em;
}
and then, in the document, exchange the usual class (let's say
a.navi:link) with this class:
Normal AnchorHere I am!
etc.
> researching the a:active css property, I realized that this is what
happens
> on the press state of the mouse click.
Yup. a:active describes the moment the anchor is 'activated' by the user,
see:
http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes
> Rudy's example of the various css styles looked promising but I wasn't
> convinced that would work as it didn't reset visited links.
>
I don't have this example, but it should - if the sequence was correct.
See http://www.mako4css.com/BasLink.htm - the sequence of the pseudo
classes is important.
> I tried but failed to implement a class definition solution. Here's my
css:
>
> A.selected {
> color: #911100;
Have you also declared the :link, :visited, :hover classes? If yes, and it
still didn't work, then there is something else out of whack - an URL
would be helpful...
> BTW, is css case sensitive? a.something vs. A.something? I would really
like
> to see a working example. Thanks efolk.
>
Perhaps :)
I quote from the W3C:
------------------------
The case-sensitivity of document language element names in selectors
depends on the document language. For example, in HTML, element names are
case-insensitive, but in XML they are case-sensitive.
-------------------------
Meaning, in HTML a.something is the same as A.something.
BUT:
http://www.w3.org/TR/REC-CSS2/syndata.html#q4 clearly states that
"All CSS style sheets are case-insensitive, except for parts that are not
under the control of CSS."
Meaning, that if you declare a class like:
.Warning
one browser will accept
, but another will not. (IE
and Moz come to mind).
Therefore: keep it consistent. I am gradually re-training myself to write
in lowercase, selectors as well as class names, simply to be on the safe
side.
--HTH
MaKo
~~just when you thought it was safe to go back into the water~~
http://www.mako4css.com/
From jeff at members.evolt.org Mon Feb 24 14:10:01 2003
From: jeff at members.evolt.org (.jeff)
Date: Mon Feb 24 14:10:01 2003
Subject: [thelist] phony ebay scam? Security of info on the web
In-Reply-To: <20030224194546.92618.qmail@web12601.mail.yahoo.com>
Message-ID:
tom,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tom Dell'Aringa
>
> My in-laws got this message which is apparently bogus
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
apparently bogus? how do you know?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> How could someone get this info off the ebay servers
> if it is encrypted?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
how do you know someone other than ebay is getting this info off their
servers?
where did the email originate from?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> I guess ebay is getting calls all day about this.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
you guess? just a gut thing or do you have friends that work there that
have told you the phones are ringing off the hook?
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
From rob.smith at THERMON.com Mon Feb 24 14:13:01 2003
From: rob.smith at THERMON.com (Rob Smith)
Date: Mon Feb 24 14:13:01 2003
Subject: [thelist] A:Active Working Example?
Message-ID: <0CEC8258A6E4D611BE5400306E1CC9271E47C9@smtmb.tmc.local>
>could you explain what you mean by "reset" visited links?
>if you want links not to have a separate colour for visited state,
>that's easy.
Yup, it is. I had the impression from your original posting that "you could
also try this"
a:visited:hover
a:visited:active
... etc.
I looked at it a bit and you're basically not solving the problem. You're
leaving a trail of clicked links using standard css attributes. Remember,
the active property is not the active page, but the current link clicked, in
the down click operation.
(while studying Emma's example:
http://careermatters.tvo.org/highschool/other.phtml)
The css is what impressed me and what I was going after. Allow me to
extrapolate the css and usage for the red link in the above example:
CSS:
----
UL.bigLinks LI.bigLinksSel A {
PADDING-LEFT: 0px;
LIST-STYLE-POSITION: outside;
COLOR: #FF0000;
LIST-STYLE-TYPE: disc;
TEXT-DECORATION: none
}
LI A.whiteLinks {
FONT-WEIGHT: bold;
FONT-SIZE: 12px;
COLOR: #fff;
TEXT-ALIGN: left;
TEXT-DECORATION: none! important
}
Usage:
------