midnightvamp
Dec 30 2005, 06:22 AM
I'm planning on a site redesign, and I'm going to add some very basic php includes in there, because I've managed to figure out how to do them. I wanted to use them to do includes of my navigation, so I'd only have to update in one place when new links are added, as opposed to having to update several pages all at once. I'm not sure what else php can be used for, and I did a search on it, and it pretty much all said includes and databases. Well, databases, I don't know how to make, and I was wondering if it's really worth my time to figure it out or not. I'm wanting it for my language site, if you want to take a look, there is a link in my signature. It's basically several languages, and each one is split up into subcategories that list a bunch of words or phrases that people have submitted to me in their language. Right now, I'm using a simple form, that sends the data to an email, and from there, I sort it out, and add it into my website. I'm not sure if a database would save time / space / something else, but I'd like to know if it would be of any benefit to me, before I go and spend the extra time on it. Would any of you happen to know? Or have any ideas about the whole php / database idea I'm having. Should I bother? Thanks for any insights you might have.
Reply
Tyssen
Dec 30 2005, 08:48 AM
It's going to depend on how much content, how many different categories you have, and how complex are their relationships. You can achieve a similar sort of functionality using includes instead of database entries if the nature of the included stuff isn't too complex. If you find you're having to create numerous arrays to get the different types of content into the page, then you should probably think about using a database instead. Learning how to use databases is a valuable tool but it all depends on what you hope to get out of web design/development. If you're just doing it for a hobby and feel like learning how to use databases will be a chore, then don't do it. But if you hope to make something more out of it (ie a career), then using your personal site is a great way to learn new stuff and test it out. From the look of your site, I would probably use a database to display the info cos you have a bunch of higher level categories that have common subcategories. Rather than having numerous different HTML files, you could have just one page that would display the relevant info based on the querystring. For example, instead of http://www.chromlea.trap17.com/mandarin/random.html, you could have http://www.chromlea.trap17.com/?lang=mandarin&type=random. Your page would then pull in from the database all the info relating to 'mandarin' the language and 'random' the word type.
Reply
midnightvamp
Dec 30 2005, 09:04 AM
Oh, okay... that's making some sense to me. Thanks, Tyssen. I think I'll try messing around with a database, and see if I can't come up with something. Web design is going to be my career - I've chosen that already, and am almost through the schooling for it. I only wish that I knew how to do more stuff. I took a database class, and can't build a database to save my live if I had to, despite getting high marks in that class. It's pretty much a big joke. This semester coming up we have php, so I'll have to wait and see if that goes any better. I'm more of a designer, than a coder, but I'm not that great at either one unfortunately. I'm still trying to find my strengths in the area. So, for the part where I have one page, and pull in the information from the database - Can that be done from clicking on links? I know that inclass, we wrote some sql statements that would pull everything out of the database right when we opened the page (and we didn't click on anything, everything was just there, on a really long page...), but my instructor never explained anything that we were doing. We were just modifying the files that he gave to us. That was in design class, he thought we all knew php, even though we hadn't learned it yet. And in databases, we never learned how to hook a database up to a website just how to enter the stuff into mysql. Sorry if I sound confusing and frusterated, it's four in the morning.... and not a heck of a lot makes sense to me at this point. You are very right though, I need to learn how to do this database / php stuff if this is going to be my career, so thank you for your opinion.
Reply
Tyssen
Dec 30 2005, 09:12 AM
I was kinda the same as you when I took a database class a few years ago. I wanted to know how it related to building a website but all we learned were SQL statements. At the time I was glad to know some SQL but still could not see what the real world application would be. It wasn't until some time later that I had to redevelop a database-driven site that I got the chance to work out to how to use queries linked to web pages. In your case, and using the example I gave above, you'd use the querystring to construct your SQL statement, e.g.: CODE Select * from languages where table = ' & $_GET['lang'] & ' and type = ' & $_GET['type']; (I've probably mixed up ASP & PHP code there cos I haven't actually gotten around to creating any PHP scripts that query a database, whereas I have with ASP.)
Reply
truefusion
Dec 30 2005, 01:34 PM
Since web design is what you plan on being your career, I would also suggest studying ASP, after learning databases and whatnot, if you havent done so already. Since you might be seeing it in some/many job requirements. Although, in my opinion, PHP is easier and can do practically anything that ASP can. But, I digress. Knowing databases, MySQL, or any others, is beneficial. But, one downside of using a database is downtime. When the database is inaccessible, your website wont display anything from the database.
Reply
midnightvamp
Dec 30 2005, 04:48 PM
Is down time a big problem in databases? Does it happen often, and is there a way to redirect people to a page saying something along the lines of 'the database is currenly on the fritz... but be sure to check back in a few hours (or days, I don't know how long they typically go down for)? I did take asp, and I know some of it, but again, I didn't leave that class feeling nearly as comfortable with the language as I would have hoped. Plus, I've heard other people say that php is more common nowadays, plus easier to learn and more expected to be learned for today's job market. --- And thanks for the code example, Tyssen it looks somewhat familiar to the commands that we had to do in design class, and that was apparently php, so I'm guessing they are similar. I'm going to first try and set up a database, and then keep messing around and see what I can get out of it. I'm pretty sure that I can make a nice back end to it all, that'll let me update the database easily, which is one thing that I'm really looking forward to. I'd also like to add the ability to display the contents alphabetically in either the foreign language, or in English. I think I have my work cut out for me. But at least, like you said, playing around with it all on my personal site will get me much more familiar with the language, so that I can use it more readily in the future.
Reply
sammaye
Dec 30 2005, 05:30 PM
i often use php with MySql and downtime is not a problem in my scripts. The only down time you might get is when you mess with the scripts and change conn.php or something. other than that the only problems ive had is with server down time and I mean I have been using them for like a year now, but some people may have had different experiences with php and databases. Php and MySql is is way more cvommon than php and some other database my guess would be that the trap17 forums uses MySql back end but you never know they may use something else. And also PHP can be a steep learning curve if you are trying to learn how to use it with databases at the same time (so many spelling mistakes and typos and little commands to remember so you dont have tio flick through the book every 5 secs...reminds me of Visual basic)...I got so fustrated so many times when I was learning how to code even the basic forums. The best way I learned php was to break the scripts then try and mend them again...sounds kind of stupid but soon I could patch up scripts and then I learned from websites about php at same time and soon I was able to write my own scripts. Best way of learning a language doesnt always require a lot of reading...it can have practical as well. but thats how I learnt php...others will disagree with me fully...
Reply
snlildude87
Dec 30 2005, 11:51 PM
If you're going to dive into the world of databases, use this: http://sunsite.mff.cuni.cz/MIRRORS/ftp.mys...0.9.2-win32.zipIt's a control center for mysql that lets you see things in a neat little table. It definitely helped me. I started using mysql about 2 weeks ago (my site is now powered by it), and this tool helps me to make quick and easy changes to my table without using a script.
Reply
midnightvamp
Dec 31 2005, 12:12 AM
Good to hear that down time isn't a problem, sammaye. So long as I don't go and mess up my site (which I think I'll probably be the one who would do that lol...). I know what you mean about the breaking the code and fixing it up to learn how to do it. In certain classes that I've been to, one I remember was java, we had to break it, so we'd get familiar with the errors that we received and then we'd have an idea of what to do to fix it. ---- Oh, excellent snlildude. I'll have to try that out. Thanks! You say you just started with databases only a couple weeks ago, and now your site is powered with it! That's incredible! I didn't know it could be done so quickly. It certainly makes me feel a little less worried about the whole process.
Reply
snlildude87
Dec 31 2005, 12:39 AM
Another site that really helped me learned was http://hudzilla.org/phpbook/read.php/9_0_0It's everything you need to know about databases--selecting, inserting, updating, dropping. If you want see examples, click on Table of Contents, and then go to the Practical PHP chapter. As always, you can always use the php website for help on syntax: http://us3.php.net/manual/en/ref.mysql.phpDifferent MySQL query syntax can be found on their website at http://dev.mysql.com/doc/refman/5.0/en/select.html. That's just the SELECT query. There are more on the left. Good luck!
Reply
Latest Entries
sammaye
Dec 31 2005, 10:56 AM
snlildude87, forget about that program you offered midnightvamp, Myphp was the best one I ever found. It is designed to use mysql and php together which is perfect for a site... And yeah databases can be seen now  ...the trick i always used to use to get over that was to of course use a php front to it and add meta tags and allow google to spider, i mean google can spider anything even databases and word documents and such like... oh and I saw this briliant program some time ago it allows you to simulate your scripts and you can change them in any way without actually harming your database and such like (this is direct from the server), it works like creating a temp file or something which you use and then when your done it will save all the changes to your actual php file. I might look for it again it will come in handy for my site...
Reply
midnightvamp
Dec 31 2005, 05:12 AM
Wow... that makes me incredibly happy! You have no idea. I've been spending the last couple of days planning out a big redesign... and when I read that search engines didn't like dynamic pages, I was getting all flustered. Thanks for that. I needed it!
Reply
Tyssen
Dec 31 2005, 04:55 AM
QUOTE(midnightvamp @ Dec 31 2005, 02:44 PM) Okay.... I just ran across something when I was looking into databases. Apparently, they aren't easily seen by search engines, because they are dynamically created. That's not a good thing, because all my visitors come from search engines.
That was the case a few years ago - not any more. This article talks about it.
Reply
Similar Topics
Keywords : database, php, thing, worth, inexperianced
- Need Help With My Database [resolved]
retrive data as a link (6)
Is The Database System Gone Again? [resolved]
Errors on PHPMyAdmin again (12) I wonder if there is a problem with the PHPMyAdmin system again? When trying to get into it, I once
again get the following: QUOTE Warning: session_write_close() : SQLite: session write query
failed: database is full in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42
Warning: session_write_close() : Failed to write session data (sqlite). Please verify that the
current setting of session.save_path is correct
(/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning: Ca....
Database Or Pdf
Best way to list books on my site (1) Hi all, I am not sure if this is the right place to post but I'm sure you'll tell
me if it's not. My problem is this: I have a website where I sell books and it's one of
those simpleton sites where I don't need to know code, I just click icons etc Anyway, I can
upload images to the server and need to have them in different resolutions and link from a thumbnail
to the larger picture. What I am trying to say is I have about 6000 books to display on my
website which is impractical as it takes me about 10 mins to load 1 copy. What is the ....
I'm Crazy About This One Girl...
Am I doing the right thing? (0) OK first off this is serious and I would like only feedback that is constructive and non judgmental
as possible. About three months ago I was at a park and meet an old friend, She used to date my
friend back in high school days but they broke up when he went overseas. So I never saw her for a
few years. We never really talked just said hi because her boyfriend was the jealous type and I
would never even think of her in such a way because of respect for my friend. At first in the park I
didn't recognize her so I just said "Hi whats your name?" and she turns around a....
World Of Warcraft?
is it worth it? (5) I don't think that world of warcraft is worth wasteing you life on I have watched a video about
a WoW addict and it isn't pretty.... http://www.youtube.com/watch?v=K8hfK3RQs2g ....
Firefox 2 To Firefox 3 - Is It Worth Upgrading?
Let's settle this matter once and for all. (45) I was only recently made aware of the release of Firefox 3, having not been notified by Firefox, and
problems with my internet connection that caused Trap17 and similar websites to slow to snails-pace,
so I ended up missing the download day and haven't got it yet. The thing is though, I've
been hearing a lot of negative press about it. I know that there was concern that Firefox would
break Flash support a while ago, which was fixed, and I hear it's kind of restrictive as to
downloading addons and junk. Now, I did actually test Firefox 3 Beta 5, and my only ....
Phpmyadmin
Create new database: No Privileges (6) i can not make a sql for diff srcipt, but the sricpt i have is php, DJ-cpanel.. all tho i can not
install it the error is like this Creating Database Tables No database selected there a mysql
database is made, but i can not use it for othere stuff... plz note that this is Free script and not
for paid.. is there a way that the myqsul can not use sql other scripts? or it maybe not working...
but i am not sure if the script not working or it can be the server may be down on mysql...? ....
How To Manage The Database For E-books Website In My Sql?
(3) I wanna know how to manage the database for website of e-books with forum in it, n the database is
in mysql. PLZ HELP ME!....
I Need Help Transferring Sql Database?
(3) ok so i am trying to transfer mediawiki's but i am having trouble with exporting importing the
database. I am using phpmyadmin on both sides of the hosts. When i do the import i get this.
QUOTE SQL query: -- -- Database: `apolopedia` -- CREATE DATABASE `apolopedia`
DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; MySQL said: Documentation #1044 - Access
denied for user 'jaenagle'@'localhost' to database 'apolopedia' I tried to
give my user all rights, but it gave me this also. QUOTE SQL query: GRANT A....
Bill Bailey's Part Troll... What Is That Thing?
(0) I was watching the Bill Bailey Part Troll DVD, and was wondering what that thing is on the left that
he has on the (our) left that he waves and it works as a kind of synthesizer. I Really don't
know what it is, and would like to. For those of you who don't know what I'm talking about
here is a youtube link http://au.youtube.com/watch?v=TqDl491ORqM It's the thing on the left
that he waves his hand near and it 'squeaks'. I first thought there was strings or
something in the loop at the front he was playing, but that seemed to be wrong, as it m....
Unreal Tournament 3
Is it worth getting? (9) I've never played the series, nor have I played a first person shooter for an extended period of
time. (My FPS experience is limited to playing Halo a couple times and Doom.) For a while I
wasn't big on PC gaming, but after playing emulators, I'm getting used to it. I've heard
all good things about it except for the story line....which I heard was dreadful. I ask because
I've been getting bored as of late and figured I should get a PC game for my laptop. I saw a
copy of it online at Game Stop for around $30-ish. So, should I pick it up this we....
Ms-access Database Question
Allowing Web Access to the Informaton (3) Hi. I wanna know if there is a way of accessing an MS-Access database so that my site can extract
data from it and make it avilable online. I have an accounting package that saves everthing in an
MDB file and I want that info available for my clients from whereever thay are. Split Topic ....
Is 2d A Thing Of The Past?
(12) This topic is sort of about 2d games competing with 3d games, and aimed more at game developers. Is
2D in the past? With modern gaming, would you even consider purchasing a 2D game? I use trap17 to
run a site for RPG Maker XP/VX(I know a few others on trap17 do also), which is an all round site
for creating 2D games. Some interesting discussions have come up on the forums on 2d vs 3d game
making. I usually go with 3D saying that it is much better than 2D, and with todays modern games,
creating games in 2D is just going backwards. But I think most of us on trap17 are ....
Database With Mysql++
getting mySQL++ to work with trap17 (7) Hi, I'm trying to build an online game and figured the easiest way to do the server list would
be to make a mySQL database for it; however, I use the con() command on the IP i get from pinging my
website and I always get an abnormal program termination; however, it will work with the mySQL on my
own machine. The code is below: CODE #include <iostream> #include <iomanip>
#include <mysql++> #include "pass.h"//holds my password (i program at
school) int main(void) { Connection con("t3jem3_test","....
Mirror Dimensions
This wierd thing about mirrors (9) This is wierd. Why is that when you point a mirror at a mirror, you see an infinite number of
mirrors that stretch on to who knows where? It almost looks as if you could climb into the mirror
like a tunnel. When I was younger, I used to believe that there was another world on the other side
of a mirror. An alternate dimension where everything is the same but with a minor difference. Like
when you look into a mirror, you are looking at the other you. The only difference is that if you
had an earring in your left ear, he has onein his right. And all text is backwards in th....
I Am Very Much Addicted To Internet
addiction to anything is a bad thing (19) I AM VERY MUCH ADDICTED TO NET and my freinds used to call me net-eria(means a net being) i
couldn't concentrate on my studies at that time but i worked over it to overcome that addiction
now i only spend 10 hours a week on the net only. i think it is not addiction anymore relative to
50+ hours a week which i earlier used to spend on the net and that too on cheap sites. i think
maturity comes only after some experience. ....
What The Best Thing That Fit Your Resume For Mba
any idea about MBA (2) OK DOES anyone have nay idea on MBA , i have jus completed my graduation in mechanical
engineeering., i want to pursue a MBA program , but currently i am working in a software company as
a trainee, i m planning to hang aroung for another year or so , but later i wann pusrsue MBA , DO U
THINK shifting from mechanical to software will affect my resume , if it wil wat can i do to
minimise my loss.. ....
Religion And Science
Is Science Making God A Thing Of The Past? (5) Although science continues to advance to explain otherwise religiously explained ideas, I believe
that religion will always exist in our world. What do you think? Here's MY thoughts. I'd
love to hear yours /happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif"
/> Science has given explanations that, before, were only offered up in texts such as the Bible
were the only explanations. For example, the issue of how life came to be. Before, cultures from
around the world would attribute this phenomenon of life to some fable or myth rev....
Most Unnerving Thing About Noobs
(5) Ok. I started this thread becuz most of the time, i can deal with noobs, we all can. but sometimes,
they just push us over the edge. I'd like to know: what makes you cringe about a noob? for me,
it's when a random person just trades with you. I've had this happen. So I'm standing in
Varrock East bank, and i see "jizzle335 wishes to trade with you" in purple letters in the chat box.
So, bored, I trade with him. So the noob puts up a mith pick and just sits there, hoping i'll
buy it. so i viciously close the trade box and turn trade accept to 'of....
Strange Thing Happened To My Computer
(26) I was on my computer a couple nights ago. Chatting with some friends and email what have you. And
all of a sudden, It froze. I was like, Oh great. So i shut down the computer using the button. And
then i flipped it on. Nothing happend, it sounded like it turned on but the power light that stays
on all the time. Wasn't on. I tryed to shut down a couple more times with no succese. I thought
to my self, Oh my gosh! the mother of all virus's. I got one! I tryed one last time, but
i unpluged the power cord and then plugged it back in. It worked! Thank you&....
Truefusion Shoutbox
No Database required! (31) After several tests, i think it's good enough to be released. Please report any problems in
this topic. About the shoutbox: QUOTE It's supports many bbcodes that we're all used
to. Over 60 smileys. No database required for shout storage: All stored on flatfile. XHTML valid.
Installation is basically extract files, and chmod the files "shouts.log", "ipban.log",
"wordfilter.log" 666. Compatible with standard-compliant browsers, and Internet Explorer. Admin
Cpanel: Edit/delete shouts, IP ban/unban, Word Filter. Users can delete/edit their shouts within a....
Can You Add Images Into A Mysql Database?
Using Php? (20) I'm learning php in class right now, but I'm still not that good at it, what I'm
wondering is when I write the php so that it can connect with a database, can I at the same time
have it that it is able to display back images that I choose. Like, I want a search feature, where
you can search for a keyword, and it will bring back a list of all the possible entries with that
keyword, but each of these entries will have a photo associated with it. Now, do I put these image
files directly into the database, or do I write the code to link them from my files to th....
Connect To Remote Oracle Database With Toad
i'm lost (6) Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
connect to a remote oracle database using toad? When I read the docs for toad I get the impression
that I have to have a local oracle installation in order to use toad, but that just seems silly. I
guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
the configuration information it needs for the connection if I don't have any "Oracle Home"
directories. :crosses fingers: Peace!....
Mysql Database Size
related to the free database space (6) hi all! this is my first post /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> and i have a doubt, how much mysql space i am allowed to use... i mean how
much is available for my free account....
Import From Excel File Into Mysql Database
(7) Has anyone tried using the excel import function that comes with phpmyadmin
http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
to import the data to , there is a link on the bottom left corner which says "insert data from a
text file into the table" - although it says text file it still can be used to import an excel file.
When you click on this link you will be taken to a page where you will be asked for the file name
(the....
Getting Free Domain Names And Hosting
this is a pretty easy thing (6) hey you guys out there. there is a website where you can get free domain names by going here at
www.ezyrewards.com and you can get free web hosting here at http://www.ezyrewards.com/plus/ . The
hosting you can get has 2 choices both are free. you must first go to get a domain name from
www.ezyrewards.com first cause its one of the requirements for the basic hosting and the better
hosting. for the hosting plus250 you must have a domain name from www.ezyrewards.com and a amount of
unique hits per month. the basic hosting comes with 100mb of space and 2gb bandwidth and t....
Whats Your Favorite Thing To Do?
What is it? (39) My favorite thing to do is Either,Play football,Watch Football,play football as a Video game,or play
on the computer......I love football I wish to stick with it as long as I can.Which I hope will be
forever,Well I like the computer alot,but not as much as football.The computer is a hobby though it
is something to learn about since,I dont know much about Computers I would like to learn.........
Clicksor Ads
anoying but worth it (16) What do all u ppl think of clicksor ads. You can make a quite a bit of money out of them if you know
how. I found an option to turn the pop unders off /tongue.gif' border='0'
style='vertical-align:middle' alt='tongue.gif' /> /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> ....
Do You Think Popups Are A Bad Thing?
www.bpsite.tk (79) Well, do you? I think as long as you only have one or two, then they can be ok (but they still bug
me).....
The Most Idiotic Thing You Heard A Christian Say
(77) What the title says. What's the stupidest and most asinine statement you've ever heard from
a Christian? The pastor at the church my mother drags me too has said some truly dumb things in the
past, to the point where I was both pissed off and saddened about the religion. Here are a few
(paraphrased). A. "People say that the pastor brainwashes people. They're right. My job as a
pastor is to wash your brain." B. "Ever since you were born, you sinned."....
Looking for database, php, thing, worth, inexperianced
|
|
Searching Video's for database, php, thing, worth, inexperianced
|
advertisement
|
|