Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - PoeFacedKilla

Pages: 1 2 3 [4] 5 6 ... 13
61
Coding / Another PHP Problem
« on: May 15, 2007, 01:05:49 am »
I am building a members db, and when i try to add a user, it doesn't insert it into the db:
Code: [Select]
<? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout /top.php"; ?>
<?
$nr = $_GET['nr'];
if($nr=='') {
?>
<form action="/black_site/register.php?nr=0" method="post">
Username: <input type="text" name="user"><br />
Password: <input type="password" name="pass"><br />
Email: <input type="text" name="email"><br />
<input type="submit" value="Go!">
</form>
<?
} else if($nr=='0') {
$user = $_POST['user'];
$pass = $_POST['pass'];
$email = $_POST['email'];
$result = mysql_query("SELECT (username) FROM users WHERE username='$user'");
if(mysql_num_rows($result)==1) {
print "Username is Taken";
} else {
mysql_query("INSERT INTO `users` (`username`,`password`,`email`,`class`) VALUES ('$user','$pass','$email','member')");
mysql_query("INSET INTO `user_pro` (`name`,`msn`,`yaim`,`icq`,`site`,`site_link`
,`date_born`,`age`,`class`,`position`) VALUES ('$user','N/A','N/A','N/A','N/A','N/A','N/A',
'N/A','Member','N/A')");
print "You Have Been Registered";
}
}
?>
<? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout /bottum.php"; ?>

62
Coding / Re: Viewing Profile in PHP
« on: May 14, 2007, 09:08:03 pm »
the error is:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\black_site\profile.php on line 5
but i've corrected the script:
Code: [Select]
<? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/top.php"; ?>
<?
$user = $_GET['user'];
$query = mysql_query("SELECT * FROM users_pro WHERE name='$user'");
while ($row = mysql_fetch_array($query)) {
?>
<table border="1" width="500">
<tr>
<td width="250">
MSN: <? print $row['msn']; ?>
</td>
<td width="250">
ICQ: <? print $row['icq']; ?>
</td>
</tr>
<tr>
<td width="250">
Yahoo IM: <? print $row['yaim']; ?>
</td>
<td width="250">
Website: <a href="<? print $row['site']; ?>"><? print $row['site_name']; ?></a>
</td>
</tr>
<tr>
<td width="250">
Age: <? print $row['age']; ?>
</td>
<td width="250">
Date of Birth: <? print $row['date_born']; ?>
</td>
</tr>
<tr>
<td width="250">
Ocupation: <? print $row['class']; ?>
</td>
<td width="250">
Interests:<br />
<? print $row['position']; ?>
</td>
</tr>
</table>
<?
}
include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/bottum.php"; ?>
and i still get the same error

63
Coding / Re: Viewing Profile in PHP
« on: May 14, 2007, 08:59:28 pm »
Code: [Select]
WHERE username='$useri'm sure you can see what's wrong there
yeah i fixed that, but i still get the same error

64
Coding / Viewing Profile in PHP
« on: May 14, 2007, 01:05:04 am »
I get this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\black_site\profile.php on line 5

whenever i use this script:
Code: [Select]
<? include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/top.php"; ?>
<?
$user = $_GET['username'];
$query = mysql_query("SELECT `id`, `username`, `email`, `class`, `msn`, `icq`, `yaim`, `site`, `site_name`, `age`, `date_born`, `interests`, `ocupation`, `postition` FROM user_pro WHERE username='$user");
while ($row = mysql_fetch_array($query)) {
?>
<table border="1" width="500">
<tr>
<td width="250">
MSN: <? print $msn; ?>
</td>
<td width="250">
ICQ: <? print $icq; ?>
</td>
</tr>
<tr>
<td width="250">
Yahoo IM: <? print $row['yaim']; ?>
</td>
<td width="250">
Website: <a href="<? print $row['site']; ?>"><? print $row['site_name']; ?></a>
</td>
</tr>
<tr>
<td width="250">
Age: <? print $row['age']; ?>
</td>
<td width="250">
Date of Birth: <? print $row['dob']; ?>
</td>
</tr>
<tr>
<td width="250">
Ocupation: <? print $row['ocupation']; ?>
</td>
<td width="250">
Interests:<br />
<? print $row['interests']; ?>
</td>
</tr>
</table>
<?
}
include $_SERVER['DOCUMENT_ROOT']."/black_site/layout/bottum.php"; ?>
does anyone know whats wrong?

65
Zelda Projects / Re: Hall of the Dead
« on: May 02, 2007, 10:51:19 pm »
No one asked my question yet... How do I get to the Sand Dungeon.
i'm having the same problem

66
Discussion / Re: Critique my website please!
« on: March 25, 2007, 02:02:18 am »
well the layout probably gets around a 6 or 7, but what exactly does the website do? does it sell web templates?

67
Entertainment / Re: 300
« on: March 18, 2007, 04:54:41 am »
I saw it today, it was an awesome movie, much better than Sin City, it was like a 2 hour battle scene

68
Coding / Re: PHP: Image Editing
« on: March 16, 2007, 03:25:36 am »

69
Coding / Re: PHP: Displaying From a DB
« on: March 16, 2007, 02:55:31 am »
just so your aware its better to do something like
Code: [Select]
$result = mysql_query($query) or die(mysql_error());so if there's a problem with your sql it'll pick up on it and tell you what the actually problem is

yeh i know that, i wrote that at like 5 in the morning, so i am going back through all of it and fixing the errors.

70
Coding / Re: PHP: Displaying From a DB
« on: March 16, 2007, 02:38:32 am »
i have already fixed it, it was because 'from' is a taken SQL variable.

71
Coding / PHP: Displaying From a DB
« on: March 15, 2007, 07:55:18 pm »
I am working on a private messaging system for my new site, but for some reason, i get an error when i try to make an inbox:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/zelda38/public_html/mw383/Private/index.php on line 6

here's my pm SQL query:

CREATE TABLE `private_m` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` TEXT NOT NULL ,
`from` TEXT NOT NULL ,
`title` TEXT NOT NULL ,
`message` TEXT NOT NULL
) ENGINE = MYISAM ;


here's the inbox script:
Code: [Select]
<? include $_SERVER['DOCUMENT_ROOT']."/includes/layout.top.php"; ?>
<ol>
<?
$query = sprintf("SELECT id, name, from, title, message FROM private_m ORDER BY `id` DESC WHERE name='$memusername'" );
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result)) {
?>
<li><a href="pmView.php?id=<? print $row['id']; ?>"><? print $row['title']; ?></a> from: <? print $row['from']; ?></li>
<?
}
?>
<? include $_SERVER['DOCUMENT_ROOT']."/includes/layout.bottom.php"; ?>

72
Discussion / Re: Would you play TP2D?
« on: March 15, 2007, 07:30:40 pm »
no i wouldn't, didn't like the original one in 3D, why would i play it in 2D, where it will be without game elements that are needed to get the real feel of it. 

73
Zelda Projects / Re: Hall of the Dead
« on: March 12, 2007, 06:51:18 pm »
The maps and style remind me of your other game... I forgot what it was. It was the sequal to your completed one.
Autumn Rune, i believe that was the name.

74
Zelda Projects / Re: Hall of the Dead
« on: March 11, 2007, 02:23:43 am »
so you finally made a new topic, i like that screen of the boss.

75
Discussion / Re: GM7 Key
« on: March 08, 2007, 01:32:45 am »
my key is not working

76
Discussion / GM7 Key
« on: March 07, 2007, 12:57:19 am »
If i have GM6 is it possible for me to transfer that key to GM7?

77
Other Discussion / Re: Windows Vista = Win (Edit: Running Vista, OMFG)
« on: February 11, 2007, 03:22:40 am »
no I actually have it, swear, but not on this computer, i was just showing you what i was talking about

78
Other Discussion / Re: Windows Vista = Win (Edit: Running Vista, OMFG)
« on: February 11, 2007, 02:57:13 am »
I already got Vista, had it for awhile, it is just basically XP only looks way better, and the thing where you scroll over the bottum tabs and the image pops up of it, :P, awesome. (if i confused you heres what i am talking about <= http://www.zelda383.net/dylan/myVista.PNG)

79
Graphics / Re: Help with Models ; )
« on: February 11, 2007, 02:43:40 am »
i don't believe that this is the right forum for that, that should be in Graphic Arts

80
Other Projects / Re: Panlex 1.0 (Internet Browser)
« on: February 09, 2007, 02:09:02 am »
The browser DLL name gives it away, linkthemaster.
oh sorry didn't see the name

Pages: 1 2 3 [4] 5 6 ... 13

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.574 seconds with 35 queries.