<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1026845" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1026845</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/it-code-server-or-database#comment-1161660</link>
    <description> &lt;p&gt;Does the new server have a different version of PHP?  It may not have register_globals on.&lt;/p&gt;
&lt;p&gt;Try:&lt;br /&gt;
$username = strtolower( $_POST[&#039;username&#039;] );&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Nov 2004 03:06:08 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1161660 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/it-code-server-or-database#comment-1160963</link>
    <description> &lt;p&gt;put your session register variables below the listing of the database variables&lt;/p&gt;
&lt;p&gt;$sid_user = $data-&amp;gt;realname;&lt;br /&gt;
$sid_email = $data-&amp;gt;email;&lt;br /&gt;
$curr = $data-&amp;gt;currency;&lt;br /&gt;
 session_start();&lt;br /&gt;
session_register( &quot;sid_user&quot; );&lt;br /&gt;
session_register( &quot;sid_email&quot; );&lt;br /&gt;
session_register( &quot;curr&quot; );&lt;/p&gt;
&lt;p&gt;you can also do the session register with one variable: session_register(&quot;sid_user&quot;,&quot;sid_email&quot;,&quot;curr&quot;);&lt;/p&gt;
 </description>
     <pubDate>Mon, 01 Nov 2004 10:13:44 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1160963 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/it-code-server-or-database#comment-1160942</link>
    <description> &lt;p&gt;I think the problem is with the way the session anf URL variables are being handled... I have tried to put actual data into the query&lt;br /&gt;
eg&lt;br /&gt;
$result = mysql_query( &quot;select * from users where username=&#039;test&#039; and password=&#039;test&#039;&quot;);&lt;/p&gt;
&lt;p&gt;It logs me in fine though it does not carry the session variables for the name and the like... any ideas what the problem could be?&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 20:01:45 +0000</pubDate>
 <dc:creator>mizzy</dc:creator>
 <guid isPermaLink="false">comment 1160942 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/it-code-server-or-database#comment-1160911</link>
    <description> &lt;p&gt;break this down into two lines : $result = mysql_query( &quot;select * from users where username=&#039;$username&#039; and password=&#039;$password&#039;&quot;);&lt;/p&gt;
&lt;p&gt;something like:&lt;br /&gt;
$query = &quot;select * from users where username=&#039;$username&#039; and password=&#039;$password&#039;&quot;;&lt;br /&gt;
$result = mysql_query($query);&lt;/p&gt;
&lt;p&gt;then you can display the query: echo $query;&lt;/p&gt;
&lt;p&gt;can also try:&lt;br /&gt;
$query = &quot;select * from users where username=&#039;&quot;.$username.&quot;&#039; and password=&#039;&quot;.$password.&quot;&#039;&quot;;&lt;/p&gt;
 </description>
     <pubDate>Sat, 30 Oct 2004 21:25:41 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1160911 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
