www.webdeveloper.com

Search:

Type: Posts; User: speghettiCode

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Instead of loops, what about:

    Instead of loops, what about:



    <?php
    echo 'here';
    $arr=array(
    array(
    'node' => 'description',
    'level' => 5
  2. Replies
    9
    Views
    1,095

    Hello, Thank you both for your suggestions. ...

    Hello,

    Thank you both for your suggestions.

    Thank you, NogDog for the idea to 'explain' the query. I did just that in phpMyAdmin and noticed that it was not using the index I had set up. In...
  3. Replies
    9
    Views
    1,095

    I've been trying different options and have run...

    I've been trying different options and have run into a (basic) question...I feel like I'm overlooking something too easy...

    When I use phpMyAdmin to query the database (SELECT * FROM `myInfo`...
  4. Are you using a Windows server? I've read that...

    Are you using a Windows server? I've read that setting up the internal mail function to use SMTP is only available on Windows.

    We use sendmail() https://www.sendmail.com/sm/open_source/download/...
  5. Replies
    9
    Views
    1,095

    Thank you all for your suggestions. So far, I...

    Thank you all for your suggestions.

    So far, I have tried NogDog's approach. I have tested queries on 1.1M rows which results in query times consistently around 0.8s which isn't fast enough,...
  6. Hello, Have you confirmed your SMTP port...

    Hello,

    Have you confirmed your SMTP port number?

    Also, have you tried connecting to a different server? For example, if you set up a Gmail account for testing, you could SMTP to it using one...
  7. Replies
    1
    Views
    492

    Hello, Only validating with jquery is not good...

    Hello,

    Only validating with jquery is not good - you leave your site open to all sorts of attacks. You must validate server-side.

    I'm not a jquery user, but I imagine it may be looking for...
  8. Replies
    9
    Views
    1,095

    Manipulating very large arrays

    Hello,

    Background: Consider spreadsheet grids with related data in 5,000 to 50,000 cells. Now consider 1000 of these spreadsheet grids ('documents') and a GUI to manipulate and research their...
  9. Replies
    12
    Views
    5,038

    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...
  10. 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.
  11. 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')...
  12. 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...
  13. 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?
  14. Replies
    12
    Views
    5,038

    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:...
  15. 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...
  16. Replies
    1
    Views
    912

    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...
  17. 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...
  18. Replies
    2
    Views
    835

    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...
  19. 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; ?>
  20. Replies
    1
    Views
    543

    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. ...
  21. 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;
  22. Replies
    3
    Views
    1,806

    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.
  23. Replies
    3
    Views
    1,806

    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...
  24. 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...
  25. Replies
    3
    Views
    790

    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...
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles