I have written lots of php dealing with html strings, but it's my first time trying to get a very simple page to function. It has a textarea, and I guess that all I need to do is get the text into the database on the server. I really have no idea how to go about this, and I'm so frustrated that I can't find what I'm looking for. It's simple (again, guessing) as all there is, for now, is the text area. The client (user) types in some text, sends it, after previewing it through my nifty string work :-) and it goes to the database. It would be very nice of someone to walk me through this. I'm the type of learner who needs guidance over "solutions". Sorry if I seem dumb, but I just need help. I'm only a hobbyist programmer.
tefflox
2
Junior Poster
Recommended Answers
Jump to PostI need help with retrieving the data. This is mainly copynpaste code, but it's a start. I get an unknown category error. The table has two columns, the int key and a text field.
<?php $username = "root"; $password = "-------"; $database = "grav"; $host = "localhost"; # …
Jump to Postso,that's why I am wondering on where did you get that SQL statement.Actually mysql_fetch_array is another way of displaying data but for me my way of displaying data is what I have shown.But anyway,it's still the same!
All 6 Replies
tefflox
2
Junior Poster
tefflox
2
Junior Poster
ryan_vietnow
13
Posting Pro
tefflox
commented:
thanks
+2
tefflox
2
Junior Poster
tefflox
2
Junior Poster
ryan_vietnow
13
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.