|
#1
|
|||
|
|||
|
I've got an email link that I want to have a subject header, but I can't see to get it to work. I've got
Code:
print ("<p>");
PRINT "<b1>Username: </b1> ";
print $row["usern"];
print ("<br>");
PRINT "<b> Account number: </b> ";
print $row["ID"]." ";
PRINT "<b> Password: </b> ";
print $row["password"]." ";
print "<a href='mailto:info@myemailaddy.com?subject=Reference: .$row["usern"].'> Apply</a>" ;
The error I get is Quote:
Code:
}$id = $_GET['ID'];
$ok1 = @mysql_query("DELETE FROM members WHERE " . "ID='$id'");
if ($ok1) {
echo '<p>member deleted successfully</p>';
} else {
echo '<p>Error.' . mysql_error() . '</p>';
Quote:
Code:
$result = mysql_query("SELECT * FROM users");
echo "<table width='100%' border='1'>
<tr>
<th>Account number</th>
<th>Username</th>
<th> Password </th>
<th>Email</th>
<th>Joined</th>
<th>Real Name</th>
<th></th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
$id = $users['ID'];
echo "<td>" . $row['ID'] . "</td>";
echo "<td>" . $row['usern'] . "</td>";
echo "<td>" . $row['password'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "<td>" . $row['date'] . "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td><a href='deleteuser.php?id=$id'>Delete user</a></td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
|
|
#2
|
||||
|
||||
|
For one, where is $users being defined in which is in this line:
Code:
$id =
Code:
$ok1 = @mysql_query("DELETE FROM members WHERE
Code:
$ok1 = @mysql_query("DELETE FROM members WHERE
Code:
print "<a href='mailto:info@myemailaddy.com?subject=Reference:
Code:
print "<a href='mailto:info@myemailaddy.com?subject=Reference:
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#3
|
|||
|
|||
|
Thanks for helping, I'm starting to understand it a bit more - albeit slowly
Quote:
$result = mysql_query("SELECT * FROM users"); ) Is that not right? Quote:
Quote:
Last edited by thehappyappy; 06-29-2008 at 12:50 PM. |
|
#4
|
||||
|
||||
|
Sorry, didn't see you replied until just now. Anyways, I believe that if you change $users['ID'] to $row['ID'] all should be well. Let me know if you need anything else.
Hope this helps.
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
|
#5
|
|||
|
|||
|
yep you're right. Thanks
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|