Jump to content

priti

Members
  • Posts

    461
  • Joined

  • Last visited

Posts posted by priti

  1. will following code will work for you

     

    echo '<td><a href="javascript:myclick(0)">$number</a></td>';

     

    this with

     

    for($i=0;$i<4;$i++)

    {

      echo '<td><a href="javascript:myclick('.$i.')">$number</a></td>';

    }

     

    you want to increment '0' or $number ???

  2. Hello richards,

     

    Why don't you use

     

    <input type="submit" value='".$file."'>".$file."</button>

     

    $file =urlencode($file)

     

    then for process you can get back the original value by urldecode($file)

     

    ?>

    <FORM align="Center" action="<?php echo $PHP_SELF ?>" method="GET">

    <input type="submit" name="Button" value="<?php echo $file ?>" />

    </form>

     

    Will this help you ?

     

     

  3. hassank , i will recommend don't get in to multiple request becoz at time due to network slow down because of high traffic you will get trap in "Race condition" and unexpected behaviors .

     

    create signle request and handle you choice at server side based on selection do it. and still if you want to go for multiple request then take care of them well.

  4. The database is setup fine, it's a mysql_query() error

     

    Hey, I keep getting this error for my insert query, it's driving me nuts because I can't find any problem.

    mysql_query("INSERT INTO order (userid) VALUES('".$userid."')") or die(mysql_error());

     

     

    ERROR:

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (userid) VALUES('126')' at line 1

     

    Is your userid datatype is varchar ... if not please remove '' i.e '123' instead it should be 123 if not numeric .

     

     

    I will also suggest you to run your query in PHPMyAdmin interface.

     

    what happen if you run following query in sql mode.

     

    INSERT INTO order (userid) VALUES(123);

  5. Hey, I keep getting this error for my insert query, it's driving me nuts because I can't find any problem.

    mysql_query("INSERT INTO order (userid) VALUES('".$userid."')") or die(mysql_error());

     

     

    ERROR:

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (userid) VALUES('126')' at line 1

     

    Is your userid datatype is varchar ... if not please remove '' i.e '123' instead it should be 123 if not numeric .

     

  6. Make sure following things:

     

    1. $usernameF is not empty.

    2. print this query and try to run it on sql mode to make sure it is behaving as expected.

    3.why

     

    <script>

    location.href='?display=Member%20Password%20Sent&menu=nonmenu';

    </script>"; ?????

     

    they to redirect to a correct page after login with header() in php.

     

    Thanks

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.