I am new to PHP and MySQL, can I get a smiple example of how to write the connection string, getting the results from a table with some columns and displaying them? Thank you!
2
-
2I know I am being a JERK, but have you just tried googling "php mysql example"? This thing is OVER documented.Jakub– Jakub2010-11-11 13:05:37 +00:00Commented Nov 11, 2010 at 13:05
-
Google is still better than SO for such questions... if SO is better, then google will show you SO... means Google is always better for such questions.markus– markus2010-11-11 13:26:51 +00:00Commented Nov 11, 2010 at 13:26
Add a comment
|
2 Answers
The PHP manual has full working examples.
http://php.net/mysql_connect
http://php.net/mysql_select_db
http://php.net/mysql_query
in that order. :)