Hi.
I cannot work out what I've missed as I am using pretty much the same code as elsewhere in my site. I have a login check, which has been working fine, regenerating sessions and writing them to the database as needed.
I have just added a header redirect and my session contents vanished...
Hi.
I have this scripts to update my database totals:
while ($mppaycount <= 8)
{
$mpref=$_SESSION[refs][$mppaycount];
$mprefpay=$_SESSION[refpay][$mppaycount];
$mppayrefs=mysql_query("UPDATE members SET tottokens = tottokens+$mprefpay, tokens = tokens+$mprefpay, newtokens =...
Managed to stay away for a while..lol. Lots of progress and overcome many problems, but cant work this one out..
Have not really used functions before, but now I have a need. Have written this :
<?php
function paylvlbonus($userid,$amount)
{
$t1paid=0;
$t2paid=0;
while...
Am having lots of questions pop up, so am posting them as I think them..hope you don't mind :)
Having read that ideally, you should not use SELECT * and specify which columns you want instead, e.g.
SELECT column1, column2 FROM...
I have successfully changed all my coding accordingly with...
I have been reading up a lot on hashing and site security recently.
I have always had a few doubts about hashing though most likely just due to lack of understanding...
1. If a database is stolen, then surely all of a users information (except the password) is readily available for an...
First, please see here as I originally thought this to be a php issue.
Am almost at the pulling hair out stage...lol. I have 5 dynamically chosen tables to write to depending on user input.
If plan1 is chosen, all info is updated in the database perfectly. If any other plan number is chosen...
Hi. I am trying to save myself some coding. I think this is a php question rather than sql...
I have 5 tables in database called plan1, plan2 etc.. with each one having 9 columns (tot1, tot2, tot3, tot4, etc..)
I am wondering if there is a way to do something like the following :
$c=1...
Hi. I started a thread in sql forum thinking this was my issue. please see it here.
I am starting to believe this is a "bug" of sorts... I have merged the two databases into one. I have also put all of the contents into one page (removing the need for "require") to help source the problem.
I...
Hi. I am developing a site with two databases - one is for customers to apply to join as members, the other is a members database. Everything seemed to be working well, until I tried "bug hunting".
When a new member signs up, they are deleted from the first db and added to the second. If that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.