Jump to content


Member Since 20 May 2008
Offline Last Active Aug 16 2015 05:32 AM

Topics I've Started

random value change on next page

23 July 2015 - 04:06 AM

Hi all.

I generated a random number and assigned it a variable to be used through out the session but on getting to the next page, the value changes. It is regenerating another number which isnt the intention. I have tried severally but no way!

i really cannot figure out why the value changes in my second page.

$loan =  mt_rand(1000, 9999);
$name = "John";
$_SESSION['num'] = $number;
$sql = ("INSERT INTO table (name, token_number) VALUES(:name, :token_number)
header("location: nextpage.php");
echo "Something went wrong";

login issue again

16 July 2015 - 04:15 AM



why does the site keep logging me out even when the details provided are correct? i even asked for a reset and no mail was sent to me but it recognizes my email address.



display text

15 July 2015 - 05:48 AM

hi all

i dont know what it is called so i dont know what to goggle cos all my search result have not yielded desired result.

i have a table and space for initials. i want so that when i type on the form field it will display on the table. just like the example used on jquery modal form



convert day to date format

14 July 2015 - 10:26 PM

hi all.

having a hard time figuring this out.

i have:


Payment frequency: weekly(7days) twice-monthly(14days) monthly(30days)
First payday: 8th
Next payday: first payday + payment frequency

Date of transaction: 2015-07-14 (today)

Date difference: difference between date of transaction(today) and next payday:

Due date ?


For argument sake:

Payment frequency = 30(Monthly)

First payday = 8th

Next payday = 38th ( 8th of next month)

Date of transaction: 2015-07-14 (today)

Date difference = 8th next month - today


My problem is how to express 8th of next month in date format.




$first_payday = 8;
$today = date('Y-m-d');
if($pay_frequency == "Monthly"){
    $new_pay_frequency = 30;
}elseif($pay_frequency == "Twice_monthly"){
    $new_pay_frequency = 14;
}elseif($pay_frequency == "Weekly"){
        $new_pay_frequency = 7;
echo "Payment frequency: " . $new_pay_frequency;
echo "<br>";
echo "First payday: " . $first_payday;
echo "<br>";
$next_payday = $new_pay_frequency + $first_payday;
echo "Next payday: " .$next_payday;

Login Issue

23 June 2015 - 04:35 AM



I tried to login to my account but it say i am not recognised but i am sure my password is correct. i tried to reset the password via forgot password. after filling the form no reset mail was sent to me. tried it a couple of times still no reset mail and so i had to open a new account. can my old account be retrieved back?


i'd loved badly to have my account back. my username is funkyfela. i had to add 2 to the new one to differentiate with old one.