www.webdeveloper.com

Search:

Type: Posts; User: NoasIT

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Turns out to be a permission issue. So can anyone...

    Turns out to be a permission issue. So can anyone tell me how to make sure the images have the right permissions? TIA
  2. Image upload or rather the viewing of it problem..

    I have an image upload script which seems to be working fine:

    // Process new images. Resize to thumbnail and gallery.
    $path = $picpath . $_POST['gallery'] . '/';
    if( !is_dir($path) )...
  3. Replies
    6
    Views
    1,842

    Released 5.3.8...

    Released 5.3.8 http://www.php.net/archive/2011.php#id2011-08-23-1
  4. Replies
    4
    Views
    1,414

    you could do a replacement: $query =...

    you could do a replacement:



    $query = 'SELECT * FROM bike_geometry WHERE name="'.$user_model.'"';
    $result = mysql_query($query);
    $row = mysql_fetch_array($result);
    $model_geometry_long =...
  5. Replies
    6
    Views
    1,842

    Apparently I'm two back on all 3 of my servers!...

    Apparently I'm two back on all 3 of my servers! 5.3.5!
  6. Replies
    5
    Views
    3,733

    Check your ini settings for allow_url_fopen and...

    Check your ini settings for allow_url_fopen and make sure it is turned on. Otherwise there is some problem with the way your script or server is set up outside of that. Because the code posted by you...
  7. Replies
    6
    Views
    1,948

    PHP and MySQL are processed server side to output...

    PHP and MySQL are processed server side to output stuff to the user.
    HTML, CSS, and JavaScript are client side, they are processed by the browser to create pretty pages (or un-pretty if poorly made!)
  8. I think you need 15 or 20 posts to edit and you...

    I think you need 15 or 20 posts to edit and you have to do it within X number of minutes (dunno the actual time, it may change by post count)..

    Anyway... have you tried echoing $sql where you are...
  9. Replies
    3
    Views
    1,454

    OMG lmgtfy best thing ever!

    OMG lmgtfy best thing ever!
  10. My original function now looks like: ...

    My original function now looks like:


    function required($fields) {
    if( is_array($fields) ) {
    foreach( $fields as $field ) {
    if( !isset($_POST[$field]) || is_empty($_POST[$field]) )...
  11. Found the following function while searching to...

    Found the following function while searching to replace the empty call.



    function is_empty($var, $allow_false = false, $allow_ws = false) {
    if (!isset($var) || is_null($var) || ($allow_ws...
  12. [RESOLVED] Checking required fields fails if value is 0

    I wrote a function to check for required fields in a form, however when the value is 0 it fails. I wrote this page to test it, and its working in the broken manner www.noas.com/test.php



    <?php...
  13. Thread: opp help !

    by NoasIT
    Replies
    5
    Views
    588

    Well this line: if( !$this->result > 0 )...

    Well this line:


    if( !$this->result > 0 ) die('Query returned no results.');


    shoulda been:


    if( !mysql_num_rows($this->result) > 0 ) die('Query returned no results.');
  14. Thread: opp help !

    by NoasIT
    Replies
    5
    Views
    588

    There's no checking for valid return: class...

    There's no checking for valid return:


    class project0 {

    public function mysql_connection() {
    $host = 'localhost';
    $user = 'root';
    $password = '';
    $db = 'om';
  15. Thread: opp help !

    by NoasIT
    Replies
    5
    Views
    588

    Please use the boards [html [/html] [code [/code]...

    Please use the boards [html [/html] [code [/code] and/or
    tags where applicable when posting code. Also:

    [php]
    class project0 {

    public function mysql_connection() {
    $host = 'localhost';...
  16. Table Sales need to be groupable if individual

    Ok, we have an event coming up and I'm trying to create a management system to make it much easier for our administrative team to stay organized. We have tables of 8 in a restaurant for sale, but...
  17. Replies
    4
    Views
    1,836

    $foo = new Foo(new Bar(new FooBar(new Class())));...

    $foo = new Foo(new Bar(new FooBar(new Class()))); FTW!
  18. Replies
    11
    Views
    1,523

    The difference here is, everything you write for...

    The difference here is, everything you write for jquery gets sent to the browser and interpreted client side. Everything in php is processed ahead of time, therefore you aren't worried about...
  19. Replies
    1
    Views
    2,555

    Woops I mean to say I tried changing to SSL as...

    Woops I mean to say I tried changing to SSL as such:


    $mail->SMTPSecure = "ssl";
    $mail->Host = "smtp.gmail.com";
    $mail->Port = 465;


    To no avail. sorry.
  20. Replies
    1
    Views
    2,555

    PHPMailer + Gmail - No route to host (113)

    Ok So I'm trying to update old code to use SMTP authentication through our GMail hosted company email. I'm running into the following error:



    My code is (note some things sanitized for public...
  21. Replies
    4
    Views
    2,282

    you are just assuming that all the post data is...

    you are just assuming that all the post data is there because addme is present. One thing to do is check if its set before assigning to a variable. This is especially import with checkboxes, as they...
  22. Replies
    10
    Views
    2,754

    I don't know what editor your use, or how your...

    I don't know what editor your use, or how your variables are currently placed into the queries. But if they are inserted in a standard way thru all scripts and you use Komodo Edit you could create...
  23. Replies
    10
    Views
    2,754

    Personally I sanitize everything that can be...

    Personally I sanitize everything that can be found in a superglobal array, IE: $_GET, $_POST, $_COOKIE, and even $_SESSION tho the last may not be truly necessary. Anything hard coded, such as the...
  24. Replies
    10
    Views
    2,754

    using the proper escape_string function (in this...

    using the proper escape_string function (in this case mysql_real_escape_string) along with building the query via sprintf is very acceptable way to sanitize input, just make sure you are typecasting...
  25. Replies
    4
    Views
    1,174

    Just personal preferance but I would have done it...

    Just personal preferance but I would have done it as such:


    $states = array( 'AL' => 'Alabama','AK' => 'Arkansas',...);
    foreach( $states as $abbr => $name ) {
    $result = mysql_query("SELECT *...
Results 1 to 25 of 136
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles