<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003366" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003366</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014784</link>
    <description> &lt;p&gt;I can get SHH (secure telnet access I think) but I need to provide an IP address, and my ISP dynamaticly assigns them &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I have got the phpmysqladmin thing, it&#039;s just been installed on my server, so I&#039;ll have a mess about with that and see what happens&lt;/p&gt;
&lt;p&gt;Thanx.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Dan&lt;br /&gt;
&lt;a href=&quot;http://www.theworldofdan.co.uk&quot; class=&quot;bb-url&quot;&gt;The World of Dan&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2000 09:29:00 +0000</pubDate>
 <dc:creator>The World of Dan</dc:creator>
 <guid isPermaLink="false">comment 1014784 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014783</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;developing scripts without telnet/ssh access is very painfull and inefficient.&lt;br /&gt;
If your hosting company doesn&#039;t provide it, use another one.&lt;/p&gt;
&lt;p&gt;You can use phpMysqlAdmin to create the database.&lt;/p&gt;
&lt;p&gt;Since you are using a RDBMS (mysql) you don&#039;t have to care about the file extension.&lt;/p&gt;
&lt;p&gt;btw:&lt;br /&gt;
The php and mysql homepages both have links to very good tutorials for this, including examples.&lt;/p&gt;
&lt;p&gt;I just started using PHP today, but my mySQL+PHP user-manager already works ...&lt;/p&gt;
&lt;p&gt;ciao&lt;br /&gt;
Anti&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 May 2000 18:03:00 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1014783 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014782</link>
    <description> &lt;p&gt;What would the databases file extention be?&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 May 2000 10:39:00 +0000</pubDate>
 <dc:creator>The World of Dan</dc:creator>
 <guid isPermaLink="false">comment 1014782 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014781</link>
    <description> &lt;p&gt;This is cool, but I have a slight problem, I don&#039;t have telnet access, I think I might be able to get it, but i&#039;d prefer to do it another way if it&#039;s possable.&lt;/p&gt;
&lt;p&gt;Any suggestions??&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Dan&lt;br /&gt;
&lt;a href=&quot;http://www.theworldofdan.co.uk&quot; class=&quot;bb-url&quot;&gt;The World of Dan&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 May 2000 09:34:00 +0000</pubDate>
 <dc:creator>The World of Dan</dc:creator>
 <guid isPermaLink="false">comment 1014781 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014780</link>
    <description> &lt;p&gt;First you will need to create the database if you havent already. So you login through telnet, login to mysql and copy/paste&lt;/p&gt;
&lt;p&gt;CREATE DATABASE databasename;&lt;/p&gt;
&lt;p&gt;Than you will need to create the table where the input data will be stored.&lt;/p&gt;
&lt;p&gt;CREATE TABLE peopleinfo(&lt;br /&gt;
ID INT(5) NOT NULL AUTO_INCREMENT,&lt;br /&gt;
Name VARCHAR(40),&lt;br /&gt;
Address1 VARCHAR(40),&lt;br /&gt;
Address2 VARCHAR(40),&lt;br /&gt;
Address3 VARCHAR(40),&lt;br /&gt;
Email VARCHAR(40),&lt;br /&gt;
Phone int(15),&lt;br /&gt;
PRIMARY KEY (ID)&lt;br /&gt;
);&lt;/p&gt;
&lt;p&gt;Inside the scriptname.php3&lt;br /&gt;
have the following:&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
&amp;lt;?
#Define variables
$host = &quot;localhost&quot;;
$lpassword = &quot;pword&quot;;
$login = &quot;login&quot;;
$database = &quot;databasename&quot;;
$table = &quot;peopleinfo&quot;;


#Make the connection to the mysql server	
$db =  mysql_connect(&quot;$host&quot;,&quot;$login&quot;,&quot;$lpassword&quot;);
mysql_select_db(&quot;$database&quot;, $db);	
	
#Make sure the important variables are not empty
if($name &amp;amp; $address1 &amp;amp; $email &amp;amp; $phone)
{
	#The variables needed are not empty, lets add them to the database
	$query=&quot;INSERT INTO $table (Name,Address1,Address2,Address3,Email,Phone) VALUES (&#039;$name&#039;,&#039;$address1&#039;,&#039;$address2&#039;,&#039;$address3&#039;,&#039;$email&#039;,&#039;$phone&#039;)&quot;;
	$result = mysql_query($query);
	if($result)
	{
		echo &quot;The following was added to the database:&amp;lt;br&amp;gt;$name,$address1,$address2,$address3,$email,$phone&quot;;
	}
	else
	{
		echo &quot;An error occured while trying to add the data to the database&quot;;
	}
}
else
{	
	echo &quot;You did not enter in all of the data required&quot;;
}
#closing mysql connection
mysql_close();
?&amp;gt;
&amp;lt;form action=&quot;&amp;lt;? echo $PHP_SELF ?&amp;gt;&quot; method=&quot;get&quot;&amp;gt;Name&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;name&quot;&amp;gt;&amp;lt;br&amp;gt;Address&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;address1&quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;address2&quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;address3&quot;&amp;gt;&amp;lt;br&amp;gt;E-mail Address&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;email&quot;&amp;gt;&amp;lt;br&amp;gt;Phone Number&amp;lt;br&amp;gt;&amp;lt;input type=&quot;text&quot; name=&quot;phone&quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;input type=&quot;submit&quot; value=&quot;Send&quot;&amp;gt;&amp;lt;/form&amp;gt;
[/code]

Please not that I have not tested this code, so if anoyne else find errors in my code, please inform me.

When creating the new table, you can define how long each columns should be, by editing the numbers inside VARCHAR(##) or INT(##).

Hope that helps a little.

------------------
&lt;a href=&quot;http://www.wiredstart.com&quot; class=&quot;bb-url&quot;&gt;http://www.wiredstart.com&lt;/a&gt;  : The Technology Start Page


[This message has been edited by robp (edited 10 May 2000).] &lt;/pre&gt;</description>
     <pubDate>Wed, 10 May 2000 20:22:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1014780 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-database-using-php#comment-1014778</link>
    <description> &lt;p&gt;Hi guys, I need some help here, I&#039;m totally new to PHP and MySQL, however i&#039;m trying to develop a site based arround these two things.&lt;/p&gt;
&lt;p&gt;I normally pick things up quite easily, but I need examples to work from.&lt;/p&gt;
&lt;p&gt;Can someone please help me by telling me the code to do the following.&lt;/p&gt;
&lt;p&gt;Lets say I want to create a database called info.???&lt;/p&gt;
&lt;p&gt;The database will have the following fields in it:&lt;/p&gt;
&lt;p&gt;name&lt;br /&gt;
address1&lt;br /&gt;
address2&lt;br /&gt;
address3&lt;br /&gt;
email&lt;br /&gt;
phone&lt;/p&gt;
&lt;p&gt;The information will be sent to the service via a form on the site (which I can develop)&lt;/p&gt;
&lt;p&gt;Can someone please give me an example of the code needed to do this.&lt;/p&gt;
&lt;p&gt;Thanx&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Dan&lt;br /&gt;
&lt;a href=&quot;http://www.theworldofdan.co.uk&quot; class=&quot;bb-url&quot;&gt;The World of Dan&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 May 2000 15:44:00 +0000</pubDate>
 <dc:creator>The World of Dan</dc:creator>
 <guid isPermaLink="false">comment 1014778 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
