<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043346" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043346</link>
    <description></description>
    <language>en</language>
          <item>
    <title>It was great information for</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1289857</link>
    <description> &lt;p&gt;It was great information for everyone to inrease the knowledge for  MySQL&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Jul 2015 07:07:24 +0000</pubDate>
 <dc:creator>dzoapps</dc:creator>
 <guid isPermaLink="false">comment 1289857 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>i am developing chat</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1289568</link>
    <description> &lt;p&gt;i am developing chat application..&lt;br /&gt;
what is my problem here by.&lt;/p&gt;
&lt;p&gt;i am unable to passing messages to particular user.if  am passing any message that store default on db and seeing same message in all what ever users logined on chat.&lt;/p&gt;
&lt;p&gt;please give me solutions for it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Apr 2015 12:57:39 +0000</pubDate>
 <dc:creator>anilkumar123</dc:creator>
 <guid isPermaLink="false">comment 1289568 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>&lt;?php //create connection</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1289326</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//create connection into a database then&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;conn.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO tablename (first,second) VALUES (&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;first&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;second&#039;]&#039;)&#039;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;// if successfully insert data into database, displays message &quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Successful&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;. &lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;){&lt;br /&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Successful&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;;&lt;br /&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;BR&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else {&lt;br /&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ERROR&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 22 Jan 2015 03:08:10 +0000</pubDate>
 <dc:creator>james21</dc:creator>
 <guid isPermaLink="false">comment 1289326 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Ricky nkonya wrote:mysql&gt;</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1286913</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;Ricky nkonya&lt;/em&gt; wrote:&lt;/div&gt;mysql&amp;gt; select * from customers;&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
| userID| fname  | sname  |&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
|      1    | Erick      | nkonya|&lt;br /&gt;
|      3    | magreth | jay      |&lt;br /&gt;
|      4    | amina   | joseph  |&lt;br /&gt;
|      5    | kenedy  | john     |&lt;br /&gt;
|      6 | martha  | garet       |&lt;br /&gt;
|      7 | masawe  | mushi    |&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
7 rows in set (0.00 sec)&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;mysql&amp;gt; select * from link;&lt;br /&gt;
+--------+----------+----&lt;br /&gt;
| userID | memberID |&lt;br /&gt;
+--------+----------+----&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
+--------+----------+-----&lt;br /&gt;
5 rows in set (0.00 sec)&lt;/p&gt;
&lt;p&gt;mysql&amp;gt; select * from list;&lt;br /&gt;
+----------+--------+-------+--------+--------+------&lt;br /&gt;
|memberID| userID| title | fnem   | midnem |&lt;br /&gt;
+----------+--------+-------+--------+--------+------&lt;br /&gt;
|        1    |      0      | Dr   | madee| j      |&lt;br /&gt;
|        2    |      0      | Ms  | janeth | R     |&lt;br /&gt;
|        3    |      0      | Ms  | jane    | m    |&lt;br /&gt;
+----------+--------+-------+--------+-----&lt;/p&gt;
&lt;p&gt;i have three tables CUSTOMERS,LIST,LINK... my problem is that i have a table called LINK that has the userID(which is the primary key for the CUSTOMERS table) and memberID(which is the primary key for the LIST table) when i insert information in the customers table am expecting the userID and the memberID in the LINK table to be filled with the values that appear in the CUSTOMERS table.But when i add the information there is no any connection between the three tables... WHAT is the appropriate query to accomplish the joint.&lt;/p&gt;
 </description>
     <pubDate>Sun, 08 Sep 2013 07:52:43 +0000</pubDate>
 <dc:creator>latif pala</dc:creator>
 <guid isPermaLink="false">comment 1286913 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thank you guys. Special</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1286912</link>
    <description> &lt;p&gt;Thank you guys. Special thanks to pr0gr4mm3r. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; This was very helpful.&lt;/p&gt;
 </description>
     <pubDate>Sun, 08 Sep 2013 05:35:22 +0000</pubDate>
 <dc:creator>selvamraja</dc:creator>
 <guid isPermaLink="false">comment 1286912 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>mysql&gt; select * from</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1274891</link>
    <description> &lt;p&gt;mysql&amp;gt; select * from customers;&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
| userID| fname  | sname  |&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
|      1    | Erick      | nkonya|&lt;br /&gt;
|      3    | magreth | jay      |&lt;br /&gt;
|      4    | amina   | joseph  |&lt;br /&gt;
|      5    | kenedy  | john     |&lt;br /&gt;
|      6 | martha  | garet       |&lt;br /&gt;
|      7 | masawe  | mushi    |&lt;br /&gt;
+--------+---------+--------+--&lt;br /&gt;
7 rows in set (0.00 sec)&lt;/p&gt;
&lt;p&gt;mysql&amp;gt; select * from link;&lt;br /&gt;
+--------+----------+----&lt;br /&gt;
| userID | memberID |&lt;br /&gt;
+--------+----------+----&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
|      0 |        0 |&lt;br /&gt;
+--------+----------+-----&lt;br /&gt;
5 rows in set (0.00 sec)&lt;/p&gt;
&lt;p&gt;mysql&amp;gt; select * from list;&lt;br /&gt;
+----------+--------+-------+--------+--------+------&lt;br /&gt;
|memberID| userID| title | fnem   | midnem |&lt;br /&gt;
+----------+--------+-------+--------+--------+------&lt;br /&gt;
|        1    |      0      | Dr   | madee| j      |&lt;br /&gt;
|        2    |      0      | Ms  | janeth | R     |&lt;br /&gt;
|        3    |      0      | Ms  | jane    | m    |&lt;br /&gt;
+----------+--------+-------+--------+-----&lt;/p&gt;
&lt;p&gt;i have three tables CUSTOMERS,LIST,LINK... my problem is that i have a table called LINK that has the userID(which is the primary key for the CUSTOMERS table) and memberID(which is the primary key for the LIST table) when i insert information in the customers table am expecting the userID and the memberID in the LINK table to be filled with the values that appear in the CUSTOMERS table.But when i add the information there is no any connection between the three tables... WHAT is the appropriate query to accomplish the joint.&lt;/p&gt;
 </description>
     <pubDate>Fri, 20 Apr 2012 15:05:01 +0000</pubDate>
 <dc:creator>Ricky nkonya</dc:creator>
 <guid isPermaLink="false">comment 1274891 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This is great , thanks to you</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1273960</link>
    <description> &lt;p&gt;This is great , thanks to you I got this information. I appreciate your work, thanks for taking this opportunity to discuss this, the thread is really helpful.&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 Mar 2012 12:12:38 +0000</pubDate>
 <dc:creator>David26</dc:creator>
 <guid isPermaLink="false">comment 1273960 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You might be able to setup a</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1272547</link>
    <description> &lt;p&gt;You might be able to setup a view with the appropriate joins, and insert into the view. I&#039;ve tried it a few times, and it seems to work ok.&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Jan 2012 14:20:58 +0000</pubDate>
 <dc:creator>iigwk</dc:creator>
 <guid isPermaLink="false">comment 1272547 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Here is my php code i want</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1272058</link>
    <description> &lt;p&gt;Here is my php code i want that whenever i run my HTML page new enter will get stored in my database, please help me in this code ,here below is my  PHP  code.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;ozone2412&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;could not connect: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;());&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_select_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;gurneet&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO login(Username , Password, Id, Role) VALUES (&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;role&#039;]&#039;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;or die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;data not inserted&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$exec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql_1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO login(Username , Password , Id ,Role) VALUES (&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;role&#039;]&#039;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$exec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql_1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;ERROR: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;());&lt;br /&gt;}&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1 record added&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_close&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Jan 2012 06:42:11 +0000</pubDate>
 <dc:creator>Guru</dc:creator>
 <guid isPermaLink="false">comment 1272058 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Here is my php code i want</title>
    <link>https://www.webmaster-forums.net/web-database-development/using-php-how-do-you-insert-data-multiple-tables-mysql#comment-1272057</link>
    <description> &lt;p&gt;Here is my php code i want that whenever i run my HTML page new enter will get stored in my database, please help me in this code ,here below is my  PHP  code.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_connect&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;ozone2412&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;could not connect: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;());&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_select_db&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;gurneet&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO login(Username , Password, Id, Role) VALUES (&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;role&#039;]&#039;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;or die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;data not inserted&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$exec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql_1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;INSERT INTO login(Username , Password , Id ,Role) VALUES (&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;password&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;id&#039;]&#039;,&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;role&#039;]&#039;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$exec&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql_1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&amp;nbsp; die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;ERROR: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;());&lt;br /&gt;}&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1 record added&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_close&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$con&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 12 Jan 2012 06:42:00 +0000</pubDate>
 <dc:creator>Guru</dc:creator>
 <guid isPermaLink="false">comment 1272057 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
