• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:08
CET 22:08
KST 06:08
  • 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
ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (March 9-15): herO, Clem, ByuN win02026 KungFu Cup Announcement5BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains17Weekly Cups (March 2-8): ByuN overcomes PvT block4
StarCraft 2
General
Potential Updates Coming to the SC2 CN Server Blizzard Classic Cup - Tastosis announced as captains Weekly Cups (March 9-15): herO, Clem, ByuN win GSL CK - New online series BGE Stara Zagora 2026 cancelled
Tourneys
2026 KungFu Cup Announcement [GSL CK] #2: Team Classic vs. Team Solar [GSL CK] #1: Team Maru vs. Team herO RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea BSL 22 Map Contest — Submissions OPEN to March 10 Are you ready for ASL 21? Hype VIDEO
Tourneys
ASL Season 21 Qualifiers March 7-8 [Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here!
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Path of Exile Nintendo Switch Thread PC Games Sales Thread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Mexico's Drug War Russo-Ukrainian War Thread NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread Tokyo Olympics 2021 Thread Formula 1 Discussion General nutrition recommendations Cricket [SPORT]
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 3066 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
Netherlands10342 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
Netherlands10342 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 14h 52m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 435
IndyStarCraft 265
JuggernautJason120
UpATreeSC 115
StarCraft: Brood War
Bonyth 94
sorry 86
Nal_rA 29
Dota 2
monkeys_forever338
canceldota79
League of Legends
JimRising 534
Counter-Strike
tarik_tv6125
pashabiceps2753
fl0m1244
Other Games
summit1g8515
Grubby4047
Beastyqt601
shahzam337
KnowMe214
ArmadaUGS141
C9.Mang0136
Livibee51
Trikslyr47
Mew2King37
Organizations
Dota 2
PGL Dota 2 - Main Stream436
Other Games
BasetradeTV114
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• kabyraGe 206
• Reevou 10
• IndyKCrew
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• intothetv
• Kozan
StarCraft: Brood War
• Eskiya23 7
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2571
• WagamamaTV302
League of Legends
• Scarra1407
• TFBlade1240
Other Games
• imaqtpie1261
• Shiphtur214
Upcoming Events
WardiTV Team League
14h 52m
PiGosaur Cup
1d 2h
Kung Fu Cup
1d 13h
OSC
2 days
The PondCast
2 days
KCM Race Survival
2 days
WardiTV Team League
2 days
Replay Cast
3 days
KCM Race Survival
3 days
WardiTV Team League
3 days
[ Show More ]
Korean StarCraft League
4 days
RSL Revival
4 days
Maru vs Zoun
Cure vs ByuN
uThermal 2v2 Circuit
4 days
BSL
4 days
RSL Revival
5 days
herO vs MaxPax
Rogue vs TriGGeR
BSL
5 days
Replay Cast
6 days
Replay Cast
6 days
Afreeca Starleague
6 days
Sharp vs Scan
Rain vs Mong
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Proleague 2026-03-15
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
CSL Elite League 2026
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
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 © 2026 TLnet. All Rights Reserved.