• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 14:46
CET 20:46
KST 04:46
  • 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
Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)38
StarCraft 2
General
StarCraft 2 not at the Esports World Cup 2026 Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win Oliveira Would Have Returned If EWC Continued herO wins SC2 All-Star Invitational PhD study /w SC2 - help with a survey!
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 510 Safety Violation Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained
Brood War
General
Potential ASL qualifier breakthroughs? BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Bleak Future After Failed ProGaming Career [ASL21] Potential Map Candidates
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 Azhi's Colosseum - Season 2 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Simple Questions, Simple Answers Zealot bombing is no longer popular? Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Battle Aces/David Kim RTS Megathread Path of Exile Nintendo Switch Thread Mobile Legends: Bang Bang Beyond All Reason
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
How Esports Advertising Shap…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1755 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 16h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
JuggernautJason228
ProTech143
BRAT_OK 104
Livibee 27
StarCraft: Brood War
Rain 5393
Larva 1045
BeSt 180
Dewaltoss 161
Shuttle 124
League of Legends
C9.Mang081
Counter-Strike
fl0m4171
pashabiceps1431
kRYSTAL_20
Heroes of the Storm
Liquid`Hasu415
Other Games
gofns14912
Grubby3842
FrodaN1730
ToD211
QueenE154
ArmadaUGS144
mouzStarbuck96
Mew2King89
KnowMe33
fpsfer 1
Organizations
StarCraft 2
angryscii 44
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• StrangeGG 59
• Adnapsc2 14
• intothetv
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• 80smullet 29
• blackmanpl 28
• FirePhoenix2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV652
League of Legends
• Nemesis5338
• imaqtpie1807
• TFBlade1526
• Shiphtur314
Upcoming Events
HomeStory Cup
16h 14m
Korean StarCraft League
1d 7h
HomeStory Cup
1d 16h
Replay Cast
2 days
HomeStory Cup
2 days
Replay Cast
3 days
Replay Cast
4 days
Wardi Open
4 days
WardiTV Invitational
5 days
The PondCast
6 days
[ Show More ]
WardiTV Invitational
6 days
Liquipedia Results

Completed

Proleague 2026-01-28
OSC Championship Season 13
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025

Upcoming

Escore Tournament S1: W6
Escore Tournament S1: W7
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
LiuLi Cup: 2025 Grand Finals
HSC XXVIII
Nations Cup 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 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.