note 106883 added to language.basic-syntax
| From: | thethinker at osu1 dot php dot net | Date: | Thu, 15 Dec 2011 14:19:03 +0000 |
| Subject: | note 106883 added to language.basic-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185076@lists.php.net to get a copy of this message | ||
A simple PHP-MYSQL interogation for beginers:
<?php
$con = mysql_connect("localhost","aName","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM aTable");
while($row = mysql_fetch_array($result))
{
echo $row['ColumnHeader1'] . " " . $row['ColumnHeader2'];
echo "<br />";
}
mysql_close($con);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 193.231.19.18
----
Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php
Edit -- https://master.php.net/note/edit/106883
Del: integrated -- https://master.php.net/note/delete/106883/integrated
Del: useless -- https://master.php.net/note/delete/106883/useless
Del: bad code -- https://master.php.net/note/delete/106883/bad+code
Del: spam -- https://master.php.net/note/delete/106883/spam
Del: non-english -- https://master.php.net/note/delete/106883/non-english
Del: in docs -- https://master.php.net/note/delete/106883/in+docs
Del: other reasons-- https://master.php.net/note/delete/106883
Reject -- https://master.php.net/note/reject/106883
Search -- https://master.php.net/manage/user-notes.php