www.webdeveloper.com

Search:

Type: Posts; User: Sheldon

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    5
    Views
    1,357

    what about your code is NOT OLD AND INSECURE ? ...

    what about your code is NOT OLD AND INSECURE ?

    HTTP_POST_VARS == NO

    tables == NO

    JS validation == NO
  2. Replies
    2
    Views
    885

    I think your issue is with your query, which...

    I think your issue is with your query, which really you should use Mootools.

    put if you print_r($_REQUEST);

    you would get better results.
  3. Replies
    4
    Views
    1,013

    Ignore jQuery or any JavaScript solution. ...

    Ignore jQuery or any JavaScript solution.
    @NogDog is right.

    simple




    if($count = count($files = glob(getcwd('*.jpg')) > 0):
  4. Replies
    4
    Views
    800

    View Post

    <?php copy($original, $newfile);
  5. you know this is a PHP Forum right ? also,...

    you know this is a PHP Forum right ?

    also, your fixed div needs a higher z-index.
  6. Replies
    1
    Views
    1,260

    CI has a good upload helper class, upload, store...

    CI has a good upload helper class, upload, store them in your filesyststem and store the file name, owner and path in a database.
  7. Replies
    4
    Views
    1,009

    View Post

    <?php
    // no output should be sent before starting a session - or sending a header redirect ( below )
    session_start();

    // make this safe
    $self =...
  8. Replies
    6
    Views
    1,649

    Where are you setting '$aImageName' ? ...

    Where are you setting '$aImageName' ?

    http://php.net/manual/en/function.unlink.php
  9. Thread: PHP Gallery

    by Sheldon
    Replies
    5
    Views
    3,225

    Your issue is here; In your GalleryManager...

    Your issue is here;

    In your GalleryManager Class you are creating an array based on the Database ID, and image path

    $aGallery[$aImage['id']] = $aImage['imagePath'];

    In your Gallery Class...
  10. Thread: PHP Gallery

    by Sheldon
    Replies
    5
    Views
    3,225

    View Post

    <?php
    define('IMG_PATH', 'includes/images/Gallery/');

    include('class.galleryManager.php');

    class Gallery{

    private $imgRoot = IMG_PATH;

    public function getGalleryImages(){
  11. Thread: PHP Gallery

    by Sheldon
    Replies
    5
    Views
    3,225

    I see a possible issue; your function ...

    I see a possible issue;

    your function GalleryManager::getAllImages(); has all mis-matched variable names.
  12. Replies
    1
    Views
    1,732

    rederencing other sub classes inside class

    Hi,

    I am making a simple PHP framework, this has a 'base' class, then includes other classes, like a database abstraction class and a form validation class.

    I have got the classes all working...
  13. Replies
    10
    Views
    2,413

    Try something like this: $img =...

    Try something like this:




    $img = imagecreatetruecolor(100, 100);
    // 127 is fully tranparent, 0 would be solid red, 63 would be 50&#37; transparent :)
    $background =...
  14. Replies
    2
    Views
    1,139

    Make sure your font paths are correct for the...

    Make sure your font paths are correct for the server type.
    If that fails, make sure with a phpinfo() that the server has the GD Lib extensions installed
  15. Replies
    0
    Views
    3,142

    mySQL MATCH across multiple tables

    Hi,

    I am trying to search against multiple mySQL tables, Can any one point me to where I am wrong ?

    Below is my query, and my DB structure.


    SELECT
    categories.name AS category,
    ...
  16. Replies
    0
    Views
    1,288

    Pass PArent Query Data in to SUBSELECT Query

    Hi,

    I am trying the below query, I want to get a field of a value, and a total of the same field where the value is < 3,

    I need to pass in the 'student_id' in to my subselect or maybe some...
  17. Hi, Thanks for your responses, @Fang, that...

    Hi,

    Thanks for your responses,

    @Fang, that link does not work ?

    It still seams to clear the TD classes.

    http://www.langsretreat.co.nz/common/script-bak.js
  18. Javascript Date Selection only works in FireFox

    Hi,

    I have a simple calendar script, that when either selecting a date in drop downs, or clicking that date on the calendar itself, it will allow you to select a range of dates.

    It worked...
  19. If you look at the link NogDog provided, it has...

    If you look at the link NogDog provided, it has an easy usage example.


    bool checkdate ( int $month , int $day , int $year )


    In your case, it is hard to tell as you have not wrapped...
  20. Replies
    5
    Views
    1,118

    Do you have a link to this? It doesn't seam like...

    Do you have a link to this? It doesn't seam like a browser issue ?
  21. Replies
    5
    Views
    4,605

    You can call a function directly in HEREDOC, you...

    You can call a function directly in HEREDOC, you can call it before, setting it as a variable and then call that in the function.

    What you have about should work?


    <?php

    /* HEREDOC /...
  22. Replies
    5
    Views
    842

    try print_r'ing the $parts? if (preg_match...

    try print_r'ing the $parts?


    if (preg_match ("/^([0-9]{2})/([0-9]{2})/([0-9]{4})$/", $birth, $parts)){
    echo("<pre>");
    print_r($parts);
    die("</pre>");
  23. so your are getting the success message. "Your...

    so your are getting the success message.
    "Your mail was sent successfully"

    try changing your $to to $email

    if(mail($email, $subject, $msg, $headers)){
  24. you could do it dynamically with a foreach loop....

    you could do it dynamically with a foreach loop.

    <?php
    // connect before you use this function !!

    // escape each var
    foreach($position as $key => $value){
    $position[$key] =...
  25. What error are you getting? the "We...

    What error are you getting?

    the "We encountered an error sending your mail" or a PHP Error?
    Are you sure that the mail is being sent, but flagged as spam?



    $msg = "Please click the link...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles