Might as well post here. >.>
Fail - Demo
This is a discussion on FailPHP within the Habbo Development forums, part of the Habbo Hotel category; You should go back to your first method on the news articles and check that there actually is existing news ...
You should go back to your first method on the news articles and check that there actually is existing news articles.
Here:
PHP Code:<?php
$query = mysql_query("SELECT title,story,author,published FROM news LIMIT 5");
if ( mysql_num_rows( $query ) === 0 )
{
echo "No news articles";
}
else
{
while($show = mysql_fetch_array($query)) {
?>
<div class="body-container-bubble">
<div class="body-container-header grey"><?php echo $show["title"]; ?></div>
<div style="padding:5px 0;">Posted <?php echo date("M d, Y",$show["published"]); ?></div>
<div><?php echo $show["story"]; ?></div>
<br />
<div style="font-weight:bold;">- <?php echo $show["author"]; ?></div>
</div>
<?php
}
}
?>
Might as well post here. >.>
Fail - Demo
After registering is complete why is my session not started? After registering I am redirected back to Fail with the message
should consider starting the users session as soon as they register. Other wise they'll just forget their user, leave and probably never return.PHP Code:Register complete. You may now login with the account you just registered with
Helping those who deserve to be helped.
Just because you can edit 2 lines of PHP code and change a variable does not mean you're a programmer. And just because you can follow a tutorial on how to set up IIS does not make you a server technician or manager.
This isn't really an error, but you should consider doing something with mod_rewrite... it makes things look that much neater not having the .php on the end and stuff.
Tried the Demo site, looks pretty good.
OFT: You know that layout you released, made some good ;)
![]()
![]()
![]()
Atleast someone supports your work! Good luck matey.
EDIT:
Housekeeping:
![]()
![]()
![]()
Lawl.
Last edited by Livar; 07-11-11 at 09:14 PM. Reason: HK.
lol, what ?
You must pass a variable in your register page or class, whatever. All you have to do is, is:
session_start();
$var = whateverbool($_SESSION['value']);
.. or whatever. I'm to tired to do a proper example. Password encryption should not affect the session. Do you have any idea as to what you're actually doing?
Helping those who deserve to be helped.
Just because you can edit 2 lines of PHP code and change a variable does not mean you're a programmer. And just because you can follow a tutorial on how to set up IIS does not make you a server technician or manager.