Search Results

Search found 4 results on 1 pages for 'aliov'.

Page 1/1 | 1 

  • Why do these nested while loops not work?

    - by aliov
    I tried and tried and tried to get this code to work and kept coming up with zilch. So I decided to try it using "for loops" instead and it worked first try. Could somebody tell me why this code is no good? <?php $x = $y = 10; while ($x < 100) { while ($y < 100) { $num = $x * $y; $numstr = strval($num); if ($numstr == strrev($numstr)) { $pals[] = $numstr; } $y++; } $x++; } ?>

    Read the article

  • Why do I get a Warning and a Fatal error when I use ../ ?

    - by aliov
    When I use ../mysqlConnect.php I get the following messages. Warning: require_once(../mysqlConnect.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/etc... Fatal error: require_once() [function.require]: Failed opening required '../mysqlConnect.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/etc... When I use the directory name - mydir/mysqlConnect.php - everything works fine.

    Read the article

  • Have problem changing a value in an array

    - by aliov
    I have a multi-dimensional array with 4 entries in each value - (1st name, last name, email, password). I am trying to format the password value so I can insert it into a database. As you can see, my results are not what I need. Why is this the result and what should I do to get my intended result? Thanks php > $newlines[1][3] = "PASSWORD($newlines[1][3)]"; php > echo $newlines[1][3]; PASSWORD(Array[3)]

    Read the article

  • include() Why should I not use it?

    - by aliov
    I am working through an older php mysql book written in 2003. The author uses the include() function to construct html pages by including header.inc, footer.inc, main.inc files, etc. Now I find out that this is not allowed in the default ini settings, (allow_url_include is set to Off) after I got many warnings from the server. I noticed also that you can use include without the parenthesis. I tried this and it works and I get no error messages or warnings. Are the two different? That is, is include() different from include ?

    Read the article

1