Return to Uncreativelabs.net front page Uncreative Labs
PC XT and AT forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

 first try at php + mysql! View next topic
View previous topic
Post new topicReply to topic
Author Message
harshbarj



Joined: 01 Oct 2004
Posts: 169
Location: behind you!

PostPosted: Sun Jun 12, 2005 3:46 am Reply with quoteBack to top

One day I decided to catalog my album collection and was about to pull out a pile of paper when it hit me. Why not create a mysql database and web based front end. After nearly a week of coding and de-bugging I have a mostly working setup. The layout is still very much pre-alpha and in the end the site is really for my use only but I will make it look a lot better before I call it done.

For now the images on the site are place holders for later on when I figure out how to update the sql database to store images (already know how so it's only a mater of time).


http://386page.com/albums/index.php

_________________
Raise Your IQ. Eat Gifted Children.
View user's profileSend private messageSend e-mailVisit poster's website
harshbarj



Joined: 01 Oct 2004
Posts: 169
Location: behind you!

PostPosted: Tue Jun 14, 2005 7:59 pm Reply with quoteBack to top

workin on the image script so the database is down. Perhaps I'll have a nearly finished version tonight! Very Happy

_________________
Raise Your IQ. Eat Gifted Children.
View user's profileSend private messageSend e-mailVisit poster's website
harshbarj



Joined: 01 Oct 2004
Posts: 169
Location: behind you!

PostPosted: Wed Jun 15, 2005 1:11 am Reply with quoteBack to top

WoHoo Very Happy ! I have figured out how to store and retrieve images from a sql database! Now what Question

_________________
Raise Your IQ. Eat Gifted Children.
View user's profileSend private messageSend e-mailVisit poster's website
Puckdropper
Site Admin


Joined: 02 Oct 2004
Posts: 766
Location: Not in Chicago

PostPosted: Wed Jun 15, 2005 1:19 am Reply with quoteBack to top

Make sure it all works, fix the bugs, refine the design and repeat. (-; At least that's what you're supposed to do in college.

_________________
>say "Hello sailor"
Nothing happens here.

>score
Your score is 202 (total of 350 points), in 866 moves.
This gives you the rank of Adventurer.
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Puckdropper
Site Admin


Joined: 02 Oct 2004
Posts: 766
Location: Not in Chicago

PostPosted: Wed Jun 15, 2005 1:23 am Reply with quoteBack to top

Looks pretty good. The only thing I'd add would be a generic menu on all pages.

_________________
>say "Hello sailor"
Nothing happens here.

>score
Your score is 202 (total of 350 points), in 866 moves.
This gives you the rank of Adventurer.
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Andrew T.



Joined: 02 Oct 2004
Posts: 22
Location: Manitowoc, Wis., U.S.

PostPosted: Wed Jun 15, 2005 2:51 am Reply with quoteBack to top

Looks interesting!

Unfortunately I know nothing about PHP or most any other server-side technology, so I probably wouldn't be able to do exactly the same thing.
I personally resorted to making a very detailed catalogue of my own music collection as a spreadsheet in Microsoft Excel 97. I also made a simpler HTML version limited to CDs.
View user's profileSend private messageAIM Address
Puckdropper
Site Admin


Joined: 02 Oct 2004
Posts: 766
Location: Not in Chicago

PostPosted: Wed Jun 15, 2005 4:23 am Reply with quoteBack to top

PHP isn't really too bad, if you're familiar with C++ and BASIC. It draws its syntax from a few different languages, so it's easy for most programmers to pick up.

http://www.php.net has a lot of good information to get you started, if you're interested. The biggest advantage to PHP is easy database access. In some languages you have to have a driver installed, use a library or 3, and finally make the calls. PHP comes ready to use a MySQL database after you install it.

_________________
>say "Hello sailor"
Nothing happens here.

>score
Your score is 202 (total of 350 points), in 866 moves.
This gives you the rank of Adventurer.
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
harshbarj



Joined: 01 Oct 2004
Posts: 169
Location: behind you!

PostPosted: Wed Jun 15, 2005 5:47 am Reply with quoteBack to top

well as I said it's only for my use but my first priority was to get the main scripts working (which about 90% of them do now). Next I'll ask a good friend of mine to help me with how it looks.

Now I delete the database and start entering albums Very Happy

_________________
Raise Your IQ. Eat Gifted Children.
View user's profileSend private messageSend e-mailVisit poster's website
mf_2



Joined: 02 Oct 2004
Posts: 377
Location: Stuttgart, Germany

PostPosted: Wed Jun 15, 2005 6:49 pm Reply with quoteBack to top

I program in PHP4 and MySQL for well over three years now and it's in my opinion just the best programming language and database around. although i'm in the process of creating a visual basic frontend for my mysql database right now and thats pretty cool too!
View user's profileSend private messageSend e-mailVisit poster's website
ß



Joined: 04 Oct 2004
Posts: 114
Location: ~/

PostPosted: Wed Jun 15, 2005 9:12 pm Reply with quoteBack to top

Quote:
Unfortunately I know nothing about PHP or most any other server-side technology, so I probably wouldn't be able to do exactly the same thing.

PHP is not only a server-side language. You can run PHP from the command line without a Web server. You could even use this to build a Web site from templates: you would generate all the static content, which you could then host on any Web server regardless of whether or not it supports PHP.
View user's profileSend private message
harshbarj



Joined: 01 Oct 2004
Posts: 169
Location: behind you!

PostPosted: Sun Jun 19, 2005 7:57 am Reply with quoteBack to top

ok the main page now displays 6 random albums (I got the images working as you can see. They are pulled out of a sql database).

I'm still FAR from done. I still have to code a search script as well as add a bit more code to the album display screen (so you can browse other albums by the same artist).

I'm begining to think this would have been faster with pen and paper Mr. Green

BTW
I'd post code but for now it's SLOPPY and needs remarks. Once done I'll post a few of the key files.

_________________
Raise Your IQ. Eat Gifted Children.
View user's profileSend private messageSend e-mailVisit poster's website
mf_2 no log
Guest





PostPosted: Sun Jun 19, 2005 3:31 pm Reply with quoteBack to top

could you add a font-tag to your script> teh default font on my parent's computer is just gay and makes it very hard to read text...
make something like arial or times....
ß



Joined: 04 Oct 2004
Posts: 114
Location: ~/

PostPosted: Mon Jun 20, 2005 5:05 pm Reply with quoteBack to top

Wow, I was not aware that a font could have a sexual preference! If the font is gay, I assume that means it is attracted to its own type, e.g. Times Roman would be attracted to Palatino or Courier instead of to Helvetica or Verdana? Wink
View user's profileSend private message
mf_2



Joined: 02 Oct 2004
Posts: 377
Location: Stuttgart, Germany

PostPosted: Wed Jun 22, 2005 4:34 am Reply with quoteBack to top

indeed...

teh font is "Schadow BlkCn BT" for web pages and "GunsuhChe" for plain text. while those might look good for headings or wordart or whatever they certainly don;t look good in a website's plain text...
btw: I think it's attracted to "Sceptre", they're next to each other in the list Wink
View user's profileSend private messageSend e-mailVisit poster's website
ß



Joined: 04 Oct 2004
Posts: 114
Location: ~/

PostPosted: Thu Jun 23, 2005 8:12 pm Reply with quoteBack to top

Alright. At least it's not attracted to Comic Sans! Wink
View user's profileSend private message
Display posts from previous:      
Post new topicReply to topic
 Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001/3 phpBB Group :: FI Theme :: All times are GMT