Storing information in MySQL

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
pauls74462
Forum Newbie
Posts: 16
Joined: Tue Jun 10, 2008 8:13 pm

Storing information in MySQL

Post by pauls74462 »

Using this information I connect to my db.
$link = mysql_connect('localhost', 'xyz_me', 'This_That&TheOtherThing');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
It works good. But I need to know how to store information in the db from a web page and also read it to show up on a web page.

I'm learning php db
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Storing information in MySQL

Post by Christopher »

(#10850)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Storing information in MySQL

Post by califdon »

pauls74462 wrote:Using this information I connect to my db.
$link = mysql_connect('localhost', 'xyz_me', 'This_That&TheOtherThing');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
It works good. But I need to know how to store information in the db from a web page and also read it to show up on a web page.

I'm learning php db
Paul,

We're happy to see newcomers learning PHP and MySQL, but a forum is the worst place you could come to learn about broad subjects like that. You need to study tutorials that start at the beginning and work through the basics. Then when you get stuck and find that something doesn't work like you expect it to, then is when you should come to a forum like this and ask a very specific question. Good luck and have fun.
pauls74462
Forum Newbie
Posts: 16
Joined: Tue Jun 10, 2008 8:13 pm

Re: Storing information in MySQL

Post by pauls74462 »

Where is a good study tutorials found at?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Storing information in MySQL

Post by califdon »

pauls74462 wrote:Where is a good study tutorials found at?
I'd start with http://w3schools.com
Post Reply