scriptygoddess

Archive for the ‘Lessons learned’ Category

05 Oct, 2004

ASP: get the name of the current page

Posted by: Jennifer In: Lessons learned

(Side note: I hate ASP. I love PHP. But sometimes mean people make me use ASP) ;o) I needed to get the current page name and redirect to a different page if it was a certain name. (ie. 1.asp or 2.asp or… up to any two-digit + .asp) First – to get the page name [...]

30 Sep, 2004

OOP in JavaScript.

Posted by: Jennifer In: Lessons learned

Guest authored by
Sergey Zavadski – codethat.com

30 Sep, 2004

PHP: Hiding Errors

Posted by: Jennifer In: Lessons learned

I was running into a problem with undefined index errors. You'll get that if you do seomthing like: echo $_GET['name']; when there is no $_GET['name']. One option is to check to make sure $_GET['name'] is set like if (isset($_GET['name'])) { echo $_GET['name']; } But if you're feeling lazy, you can leave your code as is [...]

21 Sep, 2004

PHP: Remove an element from an array

Posted by: Jennifer In: Lessons learned

Found on this thread I needed to remove elements from an array that were either blank, nothing but a space, or null. foreach($array as $key => $value) { if($value == "" || $value == " " || is_null($value)) { unset($array[$key]); } } /* and if you want to create a new array with the keys [...]

02 Sep, 2004

Code for IE's eyes only

Posted by: Jennifer In: Lessons learned

While we're on the subject of IE funkiness – I ended up on Toothpaste Addict tonight and noticed this little trick. (Actually, something weird happend when I copied and pasted the code from Toothpaste. Must have something to do with the text formatting there. But I found this page – which actually shows the same [...]

02 Sep, 2004

One form – two actions

Posted by: Jennifer In: Lessons learned

It's a good thing I have no shame in admitting when I was doing something stupid. Otherwise I'd have no posts for this category. Just to explain a little about what I was working with – it was essentially an email form (emailform.php) – but before sending the email, it brought you to a page [...]

I'm in the process of moving a few other blogs over to use WP – one of which makes calls to a seperate database unrelated to WP. This proved to cause a conflict. After many hours of trying to figure out where the specific conflict was – I narrowed it down to my mysql_select_db line. [...]

06 May, 2004

Drinking the CSS Koolaid

Posted by: Jennifer In: Lessons learned

For the past few weeks, I've been using CSS for my layouts (at work) and I can say that I think I've officially been converted. While I still struggle with the little nuances (see previous post) – it IS starting to make sense to me. I'm now about to start using CSS in a more [...]

04 May, 2004

CSS: quirk in Firefox with backgrounds?

Posted by: Jennifer In: Lessons learned

Not sure this is the right category for this – as I STILL don't understand WHY. I should probably add a special category for my CSS issues and name it "Dazed and very very confused" I wanted the background of the page one color – and I wanted the area behind a sidebar and a [...]

22 Apr, 2004

CSS: Mac IE issues

Posted by: Jennifer In: Lessons learned

I'm not sure that "Lessons Learned" is the most appropriate category for this, as all I've really learned from this little exercise is that IE on the Mac SUCKS. 1) When testing changes to a stylesheet on the Mac – I can't just hit refresh and have it load in the new/revised stylesheet. I have [...]


Featured Sponsors

About


Advertisements