• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:32
CET 18:32
KST 02:32
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview7RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3
StarCraft 2
General
RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Tenacious Turtle Tussle 2025 RSL Offline Finals Dates + Ticket Sales! Sparkling Tuna Cup - Weekly Open Tournament StarCraft2.fi 15th Anniversary Cup
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle Let's talk about Metropolis
Tourneys
[ASL20] Grand Finals [BSL21] RO8 - Day 2 - Sunday 21:00 CET [BSL21] RO8 - Day 1 - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Fighting Spirit mining rates Current Meta
Other Games
General Games
Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread Awesome Games Done Quick 2026! Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
How Sleep Deprivation Affect…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1678 users

PHP SQL FML

Blogs > Osmoses
Post a Reply
Osmoses
Profile Blog Joined October 2008
Sweden5302 Posts
March 25 2009 22:06 GMT
#1
Alright, so I will be graduating from my university in May. Things have been going pretty well these past four years I think, I failed few classes and got pretty good grades in the ones I passed. Now, in this, my last semester, I am supposed to do a senior project. Basically I was to find a company or organization who wanted me to create something for them for free. Needless to say, 100% of the class is doing shit for friends and family and the rest (including me) are doing shit for faculty. Every single project is a database, and we are all totally fucking psyched to be apart of this intese, realistic system development experience.

My problem is that I've finally run out of steam. I've been in school all my life, and this first half of the semester I've been unsuccessfully attempting to remember what little I knew about ASP and server side scripting. I can't study anymore, I just go limp and start frothing at the mouth. I've studied computer science at this university for four years and they want me to make a goddamn database for my final project? Death by dullness, I can't muster the strength to learn another boring database interface, because I'm just too spent.

I found a webspace provider where I could fiddle around and try to figure stuff out, but it's just been so long since I did this stuff that I keep getting error messages or scripts that translate to pure code on the page. So far, I've tried something as simple as a page for updating an existing SQL database through PHP scripting as well as querying it. Both have given me very little to nothing, as I just don't know what the hell I'm doing.

I've googled hundreds of tutorials and crawled myself through about half of them, trying their little snippets of code that don't work and not understanding what the hell they are talking about. For starters, the one class I took on this subject was in ASP but my webhosting only has PHP, and I don't even know what the significance of that is! I'm just so completely burned out, but I have to make this final sprint to the finish line!

Tl:dr,

So, I am begging for help. I'm not asking to be teached, I've tried that and I can't handle it anymore. I'm asking for the basic code for a web interface to

Update an SQL database through one or more textboxes and a button and

Query this database through the use of drop down lists.

If I can get those two vital building blocks going, I believe I have enough knowledge to figure the rest out on my own. I know how databases work, I know SQL, I just don't know how to use it with PHP on a webpage.

Please help me out, I just want to get this incredibly dull load off my shoulders so I can concentrate on my other classes and graduate this summer.

*
Excuse me hun, but what is your name? Vivian? I woke up next to you naked and, uh, did we, um?
Sirakor
Profile Joined April 2003
Great Britain455 Posts
March 25 2009 22:19 GMT
#2
No offense, but you've been studying comp sci at uni for > 4 years and you ask for help about this?!!!!!
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
March 25 2009 22:33 GMT
#3
Four years and you don't know the difference between ASP and PHP? Sounds like you need to retake a few classes, especially since two of your courses were on database and web development.
AdministratorTwitter: @R1CH_TL
TL+ Member
meathook
Profile Joined December 2007
1289 Posts
March 25 2009 22:51 GMT
#4
On March 26 2009 07:06 Osmoses wrote:
I've googled hundreds of tutorials and crawled myself through about half of them, trying their little snippets of code that don't work and not understanding what the hell they are talking about. For starters, the one class I took on this subject was in ASP but my webhosting only has PHP, and I don't even know what the significance of that is!

Tell your teacher that you want to redo the four years.
An ugly planet. A bug planet.
PokePill
Profile Blog Joined March 2009
United States1048 Posts
Last Edited: 2009-03-25 23:04:11
March 25 2009 23:03 GMT
#5
I'm an IS major and know SQL/PHP/etc pretty well and barely any C++/C#/etc. I assumed computer science majors are the exact opposite, so how can you expect them to work in a language that is the least related to their field? (I could be mistaken here)

So, I am begging for help. I'm not asking to be teached, I've tried that and I can't handle it anymore. I'm asking for the basic code for a web interface to

Update an SQL database through one or more textboxes and a button and

Query this database through the use of drop down lists.


Just use codeigniter http://www.codeigniter.com

As long as you understand the basics you can pretty much code whatever you want with ease
Random()
Profile Blog Joined August 2004
Kyrgyz Republic1462 Posts
March 25 2009 23:05 GMT
#6
You "know" SQL, but you can't figure out a 3 lines long PHP script that executes a statement on a database?

You spent 4 years "studying" computer science and you can't understand a simple PHP tutorial?

PHP+SQL is easily one of the most popular subjects on the web, there are hundreds of tutorials doing exactly what you want, and you ask people to put it down here for you?

It is "too dull" for you, is it? Sorry, but you don't deserve to graduate if you are that useless.
PokePill
Profile Blog Joined March 2009
United States1048 Posts
March 25 2009 23:12 GMT
#7
Also I will send you a project I already have complete for $1000 if you are interested
Insane
Profile Blog Joined November 2003
United States4991 Posts
Last Edited: 2009-03-25 23:25:04
March 25 2009 23:18 GMT
#8
???
Why don't you just use phpmyadmin if you're using mysql, or the equivalent for whatever db you are using? (most commercial webhosting will come with this btw)
Also echoing what R1CH said, lol.

Setting up something so anyone can execute queries from a textbox is massively insecure

fyi if you want to pursue original thing look up mysql_connect, mysql_query, and mysql_fetch_object. Those are probably the only PHP/mysql functions you will need to use.
e: well you'll need to use those anyway if you are using the database in your page I guess, lol.

Or I'll write you your little query thing for 50 bucks if you can't figure it out, rofl.
Random()
Profile Blog Joined August 2004
Kyrgyz Republic1462 Posts
March 25 2009 23:20 GMT
#9
On March 26 2009 08:03 PokePill wrote:
I'm an IS major and know SQL/PHP/etc pretty well and barely any C++/C#/etc. I assumed computer science majors are the exact opposite, so how can you expect them to work in a language that is the least related to their field? (I could be mistaken here)


If you know one mainstream programming language well enough, you already know 80% of what there is to know about all other languages. The basic concepts, algorithms, control structures are all the same regardless of what language you are using.

Especially if your main language is C/C++. Syntax of PHP/PERL/C++/C#/Java etc. is directly derived from C, and you don't need to delve into more advanced aspects of a given language if your task is so simple.
h3r1n6
Profile Blog Joined September 2007
Iceland2039 Posts
March 26 2009 01:09 GMT
#10
Have you actualy ever programmed or have you just dodged those parts? It is the only possible way I can think of, that would explain you having problems with something like that.
Osmoses
Profile Blog Joined October 2008
Sweden5302 Posts
March 26 2009 01:51 GMT
#11
I have been studying computer science for 4 years, but I did all my programming classes in the first two, after that it was a mix between my graphics art minor and various hardware classes. That being said, I am a pretty good programmer in Java, Actionscript and C/C++ (though it's been a while with C too). But the one, ONE class I had on database driven websites was over two years ago and it was in ASP, and the professor was a useless fake who has since been kicked from the university, so the material wasn't exactly top notch. He gave us the ASP and told us to do the SQL, and that along with my database Access class is what made me know SQL but not ASP, and certainly not PHP.

As pokepill said, internet networking and database driven websites isn't exactly the main subject of my major. So no, I don't know how ASP and PHP work differently, excuse me so fucking much. I barely know how ASP works, as the one class I had two years ago was utter shit, really fucking sorry. I have never used PHPmyadmin or mysql, only the sql language itself, and like I said, I'm burned out. If I am given the basics, I usually learn by doing from there, but right now I can't take learning a new language. If I wasn't stressed out of my head trying to keep up with six other classes this semester I might've had more success, but no such luck.

Making database driven websites was not why I got into Computer Science, it was for programming applications, which is part of the reason I am so overjoyed at getting to do a database for my final project.

It is "too dull" for you, is it? Sorry, but you don't deserve to graduate if you are that useless.

Thanks, go to hell. Obviously you've never had a subject you didn't give a shit about be a part of your core curriculum.
Excuse me hun, but what is your name? Vivian? I woke up next to you naked and, uh, did we, um?
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
March 26 2009 02:15 GMT
#12
A large number of applications need to store data in some way, you can't really avoid databases.
AdministratorTwitter: @R1CH_TL
TL+ Member
Aerox
Profile Blog Joined September 2004
Malaysia1213 Posts
March 26 2009 02:44 GMT
#13
You cannot NOT GIVE A SHIT ABOUT a subject in CS. You will die but not as horribly as those who do it in their engineering courses.

I don't believe you only used one language to mess with databases in your course. And besides you're suppose to use stuffs you're good at as much as possible in your senior project. Does it have to be in PHP? PHP is going to be a little more hassle because of validation and anti-hack checks. Giving you PHP codes is not gonna really help IMO. I'm still recommending to learn it yourself. You can't run! (Well, you can but you'll fail the subject)
"Eyes in the sky."
ibutoss
Profile Blog Joined June 2005
Australia341 Posts
March 26 2009 02:52 GMT
#14
Nothing against codeigniter, it's a great php framework but when your learning the basics of php/sql I think it's better to keep it as simple as possible to begin with

First up your bible :
http://www.php.net/docs.php

This basic guestbook tutorial should teach you the basics of updating a db through a button/textbox.
http://www.awtrey.com/tutorials/dbeweb/
(I haven't actually done this one since my course has a better one but it's only accessible at uni but remember it may not be suitable coding practise, always remember to not trust user input and use appropriate server/client-side validations.)

Some php tips/common use things :
http://www.onlamp.com/pub/a/onlamp/2002/04/04/webdb.html

More php tutorials :
http://www.onlamp.com/php/

gl hf

Nada got Yooned
Osmoses
Profile Blog Joined October 2008
Sweden5302 Posts
Last Edited: 2009-03-26 02:58:00
March 26 2009 02:56 GMT
#15
I know, I don't really have a problem with databases per se, storing and retrieving data is powerful tool and I'll most likely be using it in the future, but I had planned on freshening up on that among other things in the fall, before I got a job. And like I said, I know how to use SQL to work with databases in for example access, but I've never used it with PHP before so I don't even know where to start. I am right now plowing through w3schools again raging over how nothing works and I only just realized I have to name my php files .php. They were .html before and I was kinda curious (in a raging kind of way) as to why I didn't get so much as an error message. PHP syntax seem very close to C, but then I'm not really concerned about PHP as much as using it to be able to use SQL databases.

I've learned how to create a database and a table now, but I just lost my marbles and I need to lie down.

edit: thanks for the links
Excuse me hun, but what is your name? Vivian? I woke up next to you naked and, uh, did we, um?
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
March 26 2009 03:01 GMT
#16
Don't spout off bullshit about being burned out, you will need to be learning new things constantly even after you graduate. It's really not that hard - just take it one step at a time, and I bet once you get going you'll be enjoying yourself.

I do feel your pain though. I built a C#/ASP back end that called some mySQL stored procedures during a summer internship, which was fine once as a learning experience, but I'd rather not do it again since I'm focused on theory / AI.
ibutoss
Profile Blog Joined June 2005
Australia341 Posts
March 26 2009 03:01 GMT
#17
On March 26 2009 11:56 Osmoses wrote:
+ Show Spoiler +
I know, I don't really have a problem with databases per se, storing and retrieving data is powerful tool and I'll most likely be using it in the future, but I had planned on freshening up on that among other things in the fall, before I got a job. And like I said, I know how to use SQL to work with databases in for example access, but I've never used it with PHP before so I don't even know where to start. I am right now plowing through w3schools again raging over how nothing works and I only just realized I have to name my php files .php. They were .html before and I was kinda curious (in a raging kind of way) as to why I didn't get so much as an error message. PHP syntax seem very close to C, but then I'm not really concerned about PHP as much as using it to be able to use SQL databases.

I've learned how to create a database and a table now, but I just lost my marbles and I need to lie down.



php is very forgiving when it comes to syntax which is why some people hate it. Also make sure you give your php scripts appropriate file access permissions. Remember to keep your mysql connection details outside of public_html too.
Nada got Yooned
haduken
Profile Blog Joined April 2003
Australia8267 Posts
March 26 2009 04:40 GMT
#18
Computer Sci majors don't need to know every domain / languages but he should have the ability to seek and find the information that he requires~!..
Rillanon.au
Spartan
Profile Blog Joined July 2005
United States2030 Posts
March 26 2009 05:02 GMT
#19
I've taken zero CS classes, bought zero books, and am completely self-taught. And now I've pretty much near-mastered PHP/MySQL. You say you have enough background knowledge to figure out the rest.. then why don't you spend the few minute it takes to at least use Google to find out how to do what you need first.
# http://nkspartan.com (web engineer)
# TL member since July 2005; CEO of Vile Gaming; President of Team Vile
cgrinker
Profile Blog Joined December 2007
United States3824 Posts
March 26 2009 05:20 GMT
#20
Sorry that you are still getting tore about this since this morning man, though break
Please log in or register to reply.
Live Events Refresh
Next event in 2h 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 88
BRAT_OK 78
MindelVK 52
JuggernautJason51
Railgan 32
StarCraft: Brood War
Britney 24492
Calm 2776
Jaedong 672
Horang2 498
Hyuk 346
EffOrt 205
Mini 200
Last 151
Hyun 95
Zeus 76
[ Show more ]
scan(afreeca) 50
Mong 36
Aegong 34
ggaemo 33
Noble 8
Dota 2
Gorgc6091
singsing3733
qojqva2320
Counter-Strike
fl0m15346
byalli488
chrisJcsgo32
Heroes of the Storm
Khaldor578
Liquid`Hasu416
Other Games
B2W.Neo773
Beastyqt763
ToD159
XaKoH 89
ArmadaUGS74
Mew2King24
OptimusSC21
Organizations
Other Games
WardiTV1512
StarCraft 2
ComeBackTV 994
angryscii 18
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• HeavenSC 23
• Adnapsc2 8
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis2615
Other Games
• Shiphtur547
Upcoming Events
IPSL
2h 29m
Sziky vs JDConan
BSL 21
2h 29m
Tech vs Cross
Bonyth vs eOnzErG
Replay Cast
15h 29m
Wardi Open
18h 29m
Monday Night Weeklies
23h 29m
Sparkling Tuna Cup
1d 16h
Replay Cast
3 days
The PondCast
3 days
CranKy Ducklings
5 days
SC Evo League
5 days
[ Show More ]
BSL 21
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Revival: Season 3
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.