Jump to content

awjudd

Staff Alumni
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by awjudd

  1. Does your $query variable's query return any results?  i.e. if you throw it into phpmyadmin then do you see the user id and usernames?

     

    I disagree with Ivan's suggestion of using the {} I personally prefer if I'm doing it that way either string concatenation or using sprintf.

     

    $sql2 = sprintf ( "INSERT INTO mailbox VALUES ( '', 'locked', '', '%s', '', NOW(), '', 'locked', '')", mysql_real_escape_string ( $_POST [ 'username' ] ) );

     

    You are adding in lots of empty strings could those not be NULL?

     

    ~juddster

  2. It looks like you might have been previously using registered_globals.  I don't see anywhere in your code where you set the variable $ca_id.

     

    You are going to need to adjust the code so that it does grab that value.

    $ca_id = $_GET['ca_id'];

     

    My guess is that your old host had it enabled but your new one does not.

     

    ~juddster

  3. PHP is server side, jQuery is client side.  There is no way to directly use the PHP variables in JavaScript.

     

    Indirectly, you could do something like this:

    <script type="text/javascript">
        var foo = "<?php echo $superSpecialVariable; ?>";
    </script>

     

    To assign client-side variables at run time.

     

    ~juddster

  4. Are you trying to use PHP values in your JavaScript call?  If yes, then you don't have access to them since JavaScript is all client-side.  Your best bet would be to assign the values of your PHP variables to values in your JavaScript.

     

    <script type="text/javascript">
        var foo = "<?php echo $superSpecialVariable; ?>";
    </script>
    

     

    Or I completely misread your post ...

     

    ~juddster

×
×
  • 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.