Hi!
I am new here and wonder if anyone could help me with a problem in my community.
The adress is http://trashankarna.net/community/default.php
I can't figure this out. I get this message when I choose to read a message in my
outbox/utkorg:
Warning: 1 is not a valid MySQL-Link resource in
C:\apache\htdocs\community\meddelanden\lasaut.php on line 69
I can read the message, anyway.
My lasaut.php looks like this:
<?php @session_start();
@$user = $iwcuser;
@$pass = $iwcpass;
if(!$user) {
echo("<script language=JavaScript>");
echo("self.location.replace('http://trashankarna.net/community/login/ouch.php')");
echo("</script>");
}
$open = mysql_connect("localhost", "community", "tarot");
$info = mysql_db_query("iwcusers", "SELECT * FROM users WHERE username =
'$user'", $open);
$rad = mysql_fetch_array($info);
if($user == $rad["username"] & $pass == $rad["password"]) { ?>
<?php // top.inc ?>
<?php require ('c:\\apache\htdocs\community\_inc\top.inc'); ?>
<?php // Inneh�ll ?>
<table cellpadding="0" cellspacing="0" style="border-width: 1pt; border-color:
#000000; border-style: solid" align="left">
<tr>
<td class="menux" width="20"></td>
<td class="menux"><br><span class="rubrik">L�s e-postmeddelande</span><br><img
src="/community/_media/line.gif" vspace="5" height="1" width="100%"></td>
<td class="menux" width="10"></td>
</tr>
<tr>
<td class="menux" width="10"></td>
<td class="menux" width="600" height="200" valign="top"><span class="brodtext">
<a href="/community/meddelanden/skriv.php" class="bodylank">Skriv ett
e-postmeddelande</a> |
<a href="/community/meddelanden/adressbok.php" class="bodylank">Min adressbok</a> |
<a href="/community/meddelanden/mappar.php" class="bodylank">Skapa mapp</a> |
<p>
<?php $open = mysql_connect("localhost", "community", "tarot");
$db = mysql_db_query("iwepost", "SELECT * FROM meddelanden WHERE id = '$id'");
$rad = mysql_fetch_array ($db);
print $rad["subject"];
print " | ";
print $rad["datum"];
print "<br><br>";
print "<pre class=body>";
print $rad["body"];
print "</pre>";
print "Tillbaka till <a href=/community/meddelanden/default.php
class=bodylank>inkorgen</a>";
mysql_close($open);
?>
<p>
<?php // bottom.inc ?>
<?php require ('c:\\apache\htdocs\community\_inc\bottom.inc'); ?>
<?php mysql_close($open); ?>
<?php } ?>
My lasa.php looks like this:
<?php @session_start();
@$user = $iwcuser;
@$pass = $iwcpass;
if(!$user) {
echo("<script language=JavaScript>");
echo("self.location.replace('http://trashankarna.net/community/login/ouch.php')");
echo("</script>");
}
$open = mysql_connect("localhost", "community", "tarot");
$info = mysql_db_query("iwcusers", "SELECT * FROM users WHERE username =
'$user'", $open);
$rad = mysql_fetch_array($info);
if($user == $rad["username"] & $pass == $rad["password"]) { ?>
<?php // top.inc ?>
<?php require ('c:\\apache\htdocs\community\_inc\top.inc'); ?>
<?php // Inneh�ll ?>
<table cellpadding="0" cellspacing="0" style="border-width: 1pt; border-color:
#000000; border-style: solid" align="left">
<tr>
<td class="menux" width="20"></td>
<td class="menux"><br><span class="rubrik">L�s e-postmeddelande</span><br><img
src="/community/_media/line.gif" vspace="5" height="1" width="100%"></td>
<td class="menux" width="10"></td>
</tr>
<tr>
<td class="menux" width="10"></td>
<td class="menux" width="600" height="200" valign="top"><span class="brodtext">
<a href="/community/meddelanden/skriv.php" class="bodylank">Skriv ett
e-postmeddelande</a> |
<a href="/community/meddelanden/adressbok.php" class="bodylank">Min adressbok</a> |
<a href="/community/meddelanden/mappar.php" class="bodylank">Skapa mapp</a> |
<p>
<?php $open = mysql_connect("localhost", "community", "tarot");
$db = mysql_db_query("iwepost", "SELECT * FROM meddelanden WHERE id = '$id'");
$rad = mysql_fetch_array ($db);
print $rad["subject"];
print " | ";
print $rad["datum"];
print "<br><br>";
print "<pre class=body>";
print $rad["body"];
print "</pre>";
print "Tillbaka till <a href=/community/meddelanden/default.php
class=bodylank>inkorgen</a>";
mysql_close($open);
$open = mysql_connect("localhost", "community", "tarot");
mysql_db_query("iwepost", "UPDATE meddelanden SET last = 'j' WHERE id =
'$id'");
?>
<p>
<?php // bottom.inc ?>
<?php require ('c:\\apache\htdocs\community\_inc\bottom.inc'); ?>
<?php mysql_close($open); ?>
<?php } ?>
Someone has tried my community from another computer that isn't within the network,
and every seem to work, but not E-post. When they did choose to read a message in the
inbox they got this message:
Warning: MySQL Connection Failed: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES) in
C:\apache\htdocs\community\meddelanden\lasa.php on line 43
I have made changes from localhost to my domain http://trashankarna.net in the
httpd.conf file, so this might work now, but I can check it from my own computer.
I have made two sign in names cassandra and cassandra33 with passwords 123456 that you
can use to check it if you want to help me.
Thanks/Cassandra