dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: invision

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Storing form field id in a variable during file upload

    Hello!

    I have a basic script that allows me to upload multiple files to my server - yay!

    Now, I'd like to be able to associate a variable with the input element that holds that particular...
  2. Target Images directly in jQuery Slideshow

    Hi,

    I love the way this script works: http://demo.marcofolio.net/bgimg_slideshow/

    However, I was wondering, is there a way to to target each image in the slideshow directly?

    So, I could...
  3. Replies
    1
    Views
    1,333

    Split Array values over 2 s

    Hi,

    I'm currently converting my Array into an Unordered List using the following:



    $delimiter = ", ";
    $array = explode($delimiter, $entries['0']['features']);
    if ($array !=...
  4. Replies
    6
    Views
    1,881

    And just like that, we're cooking with gas!!! ...

    And just like that, we're cooking with gas!!!

    Many thanks NogDog. I really should have spotted that myself. Whoops.


    Thanks again
  5. Replies
    6
    Views
    1,881

    Hi Nog, Thanks for your patience with this. ...

    Hi Nog,

    Thanks for your patience with this.

    I've tried the above, but get this error:



    Notice: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server...
  6. Replies
    6
    Views
    1,881

    Hi Nog, Thanks for the reply. Unfortunately...

    Hi Nog,

    Thanks for the reply.

    Unfortunately that doesn't work, and it seems to stop the script from doing the previous function (checking and visible equals 'Y') correctly.


    Any ideas?
  7. Replies
    6
    Views
    1,881

    Updating multiple rows in MySQL table

    Hi,

    I currently have a small area of my site that allows a user to edit which logos are displayed on the Home Page.

    It almost all works. You check the checkbox and submit and the SQL Table is...
  8. Replies
    12
    Views
    1,620

    Hey NogDog, Just an update, I managed to get...

    Hey NogDog,

    Just an update, I managed to get it working.

    Problem was:

    public function editEntry($title, $id)

    had to be:
  9. Replies
    12
    Views
    1,620

    Hey NogDog, Thanks for the reply. Code...

    Hey NogDog,

    Thanks for the reply.

    Code snippet now reads:


    if ($stmt->rowCount() == 0) {
    user_error("No rows updated.");
    error_log(print_r($stmt->debugDumpParams() , 1));
  10. Replies
    12
    Views
    1,620

    Just to confirm, where have I to use this sample...

    Just to confirm, where have I to use this sample code:



    $test = new Example();
    $result = $test->editEntry($_POST['id'], $_POST['title']);
    if(!$result)
    {
    // do whatever you want to do if...
  11. Replies
    12
    Views
    1,620

    Hi again :) Where would I echo the...

    Hi again :)



    Where would I echo the $id/$title. Would this be in my class somewhere?

    Sorry for the small questions again, really appreciate the help.
  12. Replies
    12
    Views
    1,620

    Many thanks again for your help NogDog, couldn't...

    Many thanks again for your help NogDog, couldn't do it without you :)

    My Notice when I try to update the entry:



    Notice: No rows updated. in...
  13. Replies
    12
    Views
    1,620

    Hey NogDog, Many thanks for the reply. Can...

    Hey NogDog,

    Many thanks for the reply.

    Can you show me in code terms how to achieve that debugging? To check the return value of execute() ?



    Could you possibly show me an example of...
  14. Replies
    12
    Views
    1,620

    [RESOLVED] A little OOP help...?

    Hi,

    I'm very new to OOP style of programming with PHP, but very excited by the results so far. Have been able to add data to a database with only a few lines of code, so much better than...
  15. Replies
    2
    Views
    743

    Can you post a link to your version?

    Can you post a link to your version?
  16. Replies
    5
    Views
    1,202

    Hi NogDog, Just a follow-up. I realise it's...

    Hi NogDog,

    Just a follow-up.

    I realise it's a pretty big script to dissect, so is there anyway you could help me to even just place the following snippet into a function:



    //...
  17. Replies
    5
    Views
    1,202

    Hi NogDog, Many thanks for taking a look. ...

    Hi NogDog,

    Many thanks for taking a look.

    These are great tips, which I can adapt my current script to.

    If you ever get a chance, I'd super appreciate if you could perhaps note which areas...
  18. Replies
    5
    Views
    1,202

    Hehe, mucho appreciatedo :)

    Hehe, mucho appreciatedo :)



    <?php
    ob_start();
    // include shared code
    include '../lib/common.php';
    require_once '../lib/db.php';
    include '../lib/functions.php';
  19. Replies
    5
    Views
    1,202

    Re-factoring my Login script

    Hi,

    I've just built a Login script for my web site, using procedural php/mysql, nothing too fancy.

    I was hoping I'd possibly be able to post the code to this thread and a kind gent may be able...
  20. Replies
    8
    Views
    9,787

    Wow, that's perfect Andreas. So my final...

    Wow, that's perfect Andreas.

    So my final script could be:




    //i am not using in_array but array_search
    //.doc, .docx, .rtf or .pdf
    $listtype = array(
  21. Replies
    8
    Views
    9,787

    Hi Andre, Thanks again. I just wanted to...

    Hi Andre,

    Thanks again.

    I just wanted to get the file extension and append it to the new file name I create.

    I then wanted to check this extension was either .doc, .docx, .rtf or .pdf. This...
  22. Replies
    8
    Views
    9,787

    Many thanks for your help, Andre. Really...

    Many thanks for your help, Andre. Really appreciate it.

    Is 'fileinfo' the best route for more security?

    Should I use in_array() to check if it's a DOC, RTF or PDF ?

    I think instead of:

    ...
  23. Replies
    8
    Views
    9,787

    Many thanks, Andre. Can you possibly show me...

    Many thanks, Andre.

    Can you possibly show me how I could incorporate into my code so far?

    Would I place 2 IF Statements straight after the opening IF statement?

    Any examples would mean a...
  24. Replies
    8
    Views
    9,787

    Check file type/size of uploaded file?

    Hi,

    I'm currently moving files from my client to the server using the following method:



    // Upload CV File
    // Check File Size & MIME Type
    if ( is_uploaded_file(...
  25. Replies
    5
    Views
    692

    Aaaah sounds good. I'm just a little concerned...

    Aaaah sounds good.

    I'm just a little concerned how this will fit into my current solution.

    I suppose it shouldn't be too taxing, instead of splitting the string, I'll just use min/max.

    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles