www.webdeveloper.com

Search:

Type: Posts; User: speghettiCode

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,424

    Those characters are part of a UTF-8 character...

    Those characters are part of a UTF-8 character set. To set the default character set via PHP, include the following line at the top of your page:


    ini_set('default_charset','UTF-8');

    Also, it...
  2. That link is now bookmarked! Thank you for the...

    That link is now bookmarked! Thank you for the thorough explanation and class example. I really appreciate it.
  3. Thanks for the explanation, NogDog! Rhetorical...

    Thanks for the explanation, NogDog!

    Rhetorical questions:
    Why does it cast 'x' to an integer (resulting in true) instead of casting 0 to a string (resulting in false)? For example, ('x'=='y')...
  4. Hello Jamie, Is it possible to replace...

    Hello Jamie,

    Is it possible to replace ".$CFG->db_name." with a static database name and see if the issue persists?

    If it does, is there a new error message?

    If there is no error with a...
  5. Hello firesnaker, Thank you for your reply. I...

    Hello firesnaker,

    Thank you for your reply. I understand the shorthand.

    My question, though, was why does 0=='x' evaluate to TRUE?
  6. Replies
    12
    Views
    1,424

    Maybe I'm mis-interpreting the original question,...

    Maybe I'm mis-interpreting the original question, but in case anyone else is reading this thread and interprets it the way I did...

    If you have a url like the one given:...
  7. At the moment, I'm the only one posting in this...

    At the moment, I'm the only one posting in this forum anyways so I'm not trying to bump this thread...but I discovered something about my question above that might be of interest in helping to answer...
  8. Replies
    1
    Views
    380

    I cut and pasted your code and it doesn't throw...

    I cut and pasted your code and it doesn't throw the error for me. It says "An email has been successfully sent!"


    For me, an 'unexpected T_STRING' error often means that I'm missing a semi-colon...
  9. Don't forget to add session_start(); to the top...

    Don't forget to add session_start(); to the top of this script. Otherwise, I'm not even sure how you're able to access any of the session variables.

    For clarity, could you include selectorder.php...
  10. Replies
    2
    Views
    477

    You might receive better answers if you could...

    You might receive better answers if you could include more detail in your question (i.e. what information, code, etc. you already have).

    If you have a database table set up...something with a...
  11. I think you could use PHP to dynamically insert...

    I think you could use PHP to dynamically insert the JS code you need.

    Here's what I would do...



    <table>
    <tr>
    <td id="que" colspan="2">
    <?php echo $question; ?>
  12. Replies
    1
    Views
    278

    Just thinking aloud...and these might not be the...

    Just thinking aloud...and these might not be the best solutions for your application but here it goes...

    In our software, we give users the option to receive email notices for various things. ...
  13. What does the variable actually contain?

    Hello,

    I have no idea why these scripts echo "ex" instead of "zero". Seems straight forward but it's got me stumped. Any ideas?



    $ws=0;
    echo $ws.','.($ws=='x'?'ex':'zero');
    exit;
  14. Replies
    3
    Views
    849

    Hi NogDog, Thanks for confirming and for the...

    Hi NogDog,

    Thanks for confirming and for the example. That's what ended up doing (for a little over 2000 query strings. fun!)

    Thanks again for your help.
  15. Replies
    3
    Views
    849

    OK. PHP.net has a post (...

    OK. PHP.net has a post ( http://us3.php.net/manual/en/book.pdo.php#69304 ) that says a table name cannot be a bound parameter.

    While that answer only appears to be in a user post, I cannot seem...
  16. I'm not sure if I'm missing something but does...

    I'm not sure if I'm missing something but does the following do it?


    $query = "select * from totals ORDER BY RAINFALL DESC";

    I'm not fantastic with database queries myself (I have a post up...
  17. Replies
    3
    Views
    711

    There are 2 sides to this: 1. The user interface...

    There are 2 sides to this:
    1. The user interface
    2. The database/back-end

    PHP is a back-end/server-side language. In simple terms, it means that the PHP code is run at the server and the server...
  18. Replies
    3
    Views
    849

    simple PDO bindParam not working

    Hello,
    I have this simple PDO query that's just not working:

    $pKey='myCol';
    $myTable='someTable;

    $q=$dbh->prepare("SELECT :pKey FROM :myTable");

    $q->bindParam(':pKey',$pKey);...
  19. hi coothead, yes, it does. I was just about...

    hi coothead,

    yes, it does. I was just about to post that same answer. That method will work well, actually.

    Thanks for the help.
  20. hmm. is there an alternative? The reason being...

    hmm. is there an alternative? The reason being is that I have the class for the div defined on its own because I use it outside of the myID element as well (it's a style for a 'button').

    Is...
  21. I searched "current page css" in a popular search...

    I searched "current page css" in a popular search engine and found this: http://hicksdesign.co.uk/journal/highlighting-current-page-with-css

    It seems to do what you're looking for.

    I,...
  22. Div insists on inheriting properties

    Hello,

    I have a stylesheet with something like the follwing:


    #myID div{background:url(myImg.png);}
    .myCssClass{background:url(someOtherImg.png);}


    It does exactly what i need it to do...
  23. Ah! Thanks for your help bionoid. I had...

    Ah! Thanks for your help bionoid.

    I had something nearly identical to that:

    &$arr = $arr[$key];
    (which didn't work) instead of

    $arr = &$arr[$key];

    That makes sense and will get the job...
  24. Thanks for the response bionoid. Your second...

    Thanks for the response bionoid.

    Your second example is what I am looking to do. The trouble is that I don't know how many levels there will be in the array or what the keys will be. So I need...
  25. Still struggling with this...here's another way...

    Still struggling with this...here's another way of asking the question:

    If I have
    $keys=array('a','ab','abc'); How can I tell if $arr['a']['ab]['abc'] exists if the keys are dynamic?

    For...
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles