dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: djstrictlylegit

Search: Search took 0.00 seconds.

  1. Thank you everyone for your help. Problem has...

    Thank you everyone for your help. Problem has been solved!

    I believe the issue was caused by PHP Bug #18251 which causes lost variables from post action. Further down in the code where the...
  2. Okay, I've manage to identify where the problem...

    Okay, I've manage to identify where the problem is happening. When I echo out the $taskid variable above the
    if (isset($_POST['submit'])) { to check if the form is submitted, the correct ID is...
  3. Sorry if it's a bit vague currently, to provide a...

    Sorry if it's a bit vague currently, to provide a better idea about the problem I am posting the code (ommitting unnecessary and unrelated html and php).

    Please let me know if you spot any...
  4. I can confirm if I hard code the values in the...

    I can confirm if I hard code the values in the query executes correctly.

    For instance if I run the following query:

    $updatelist = "UPDATE list SET name='".$_POST['name']."' WHERE taskid = '1'";...
  5. Thanks for all the replies, they've been...

    Thanks for all the replies, they've been massively helpful. Just to confirm I've tried declaring the variable directly before the update statement, but it doesn't get the value:



    $taskid =...
  6. PHP refuses to read one of my variables in a MySQL query

    I'm using $_GET to grab an id from the URL and then storing this in a variable called $taskid like so:

    $taskid = $_GET['id'];

    This works fine, however earlier in my code I have an UPDATE SQL...
  7. Replies
    5
    Views
    5,152

    Thank you very much, you're a life saver, that's...

    Thank you very much, you're a life saver, that's exactly what I'm looking for!
  8. Replies
    5
    Views
    5,152

    Thank's alot for your help, this works a treat at...

    Thank's alot for your help, this works a treat at resizing the image.

    However, how can I then save the scaled image so that it can be used instead of the original one that was uploaded?
  9. Replies
    5
    Views
    5,152

    Resize image on upload - PHP

    Hello all,

    I have created a fairly simple script that accompanies a form enabling a user to upload an image to my website. The problem I have is I want to scale the image on upload so that it is...
  10. Replies
    0
    Views
    2,958

    PHP Scale / Resize Image on upload

    Hello all,

    I have created a fairly simple script that accompanies a form enabling a user to upload an image to my website. This works fine.

    The problem I have is I want to scale the image on...
  11. Thank's for all of your feedback Mindzai, it's...

    Thank's for all of your feedback Mindzai, it's really useful. I think I'm sorted now, just in the process of implementing all of the changes that you suggested! :)
  12. Hi again, thank's for continuing to help, here is...

    Hi again, thank's for continuing to help, here is the full code:



    <?php
    include("scripts/dbconnection.php"); //start database connection

    //checks cookies to make sure they are logged in...
  13. Thank's for your helpful response, I've tried...

    Thank's for your helpful response, I've tried placing the $userid variable in a function and calling it but the value that is sent is still null.

    If on the other hand I specify a value above the...
  14. First off apologies for not enabling error...

    First off apologies for not enabling error reporting, I posted before I read your post, next time I will use the quote tags to properly format the code.

    Thank's for helping out, do you know how I...
  15. Bulk of the Code Extract

    Okay, here is the full code:

    <?php
    include("scripts/dbconnection.php"); //start database connection

    //checks cookies to make sure they are logged in
    if(isset($_COOKIE['ID_my_site']))
    {...
  16. userid is indeed an int. I tried your...

    userid is indeed an int.

    I tried your suggestion '$query = "INSERT INTO rota (userid, person) VALUES (".$userid.", '".db_escape($_POST['person'])."')";'

    but it returned an SQL error:

    An...
  17. Thanks to all of you for your replies. Before...

    Thanks to all of you for your replies.

    Before the query, I gather the value of the user id, when I echo it, the correct value of 65 is returned. This code is as follows:

    $useridquery = "SELECT...
  18. Re: php variable insert problem

    sorry, I meant to say var_dump returns NULL Any ideas?

    Thanks alot!

    Sam
  19. Re:

    Hi again,

    Many thanks for your reply!

    It returns the following:

    65NULL
  20. Insert PHP variable in to MySQL database?

    Hello all,

    I have an integer stored in a variable named $userid and am trying to insert it in to a MySQL database.

    I have been trying to use the following query:

    $query = "INSERT INTO rota...
  21. Thank's for getting back to me. The only thing...

    Thank's for getting back to me.

    The only thing is, each image is a different part of a cleaning rota which will need to be scheduled to change on a particular day in the week.

    Is it not...
  22. I do indeed, there are four images in total and I...

    I do indeed, there are four images in total and I would like the image to change every Sunday. The first week of each month I would like image 1 to show, the second week, image 2 to show, the third...
  23. Javascript to change image once a week?

    Hello all,

    I need to write a script that changes an image once a week on the same day every week (for instance, every sunday).

    So far I have written code that changes the image on the correct...
Results 1 to 23 of 23
HTML5 Development Center



Recent Articles