• Member Avatar for mexabet
    mexabet

    Edited How do I merge two insert queries into a database table?

    I'm coding a registration form that includes a file upload field. Basically, there are two queries that need to be simultaneously inserted into a database. But unfortunately, I don't know …
  • Member Avatar for mexabet
    mexabet

    Created How do I merge two insert queries into a database table?

    I'm coding a registration form that includes a file upload field. Basically, there are two queries that need to be simultaneously inserted into a database. But unfortunately, I don't know …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in How do I fetch data from table into dropdown in mysql

    You have to use the foreach statement to populate the form via autocomplete. Eg: <?php foreach ($stocks as $symbol) { printf("<option value='$symbol'>" . $symbol . "</option>"); } ?>
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Issue with image upload, resize and store path in MySQL

    @veedeoo, A million thanks for agreeing to help me out. I've just donated a little sum to the Daniweb cause. I downloaded the the latest upload_class.php from http://www.finalwebsites.com/snippets.php?id=7 However, I …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Issue with image upload, resize and store path in MySQL

    @veedeoo, You're totally correct; the class was written for a very old version of PHP, and the thought has always worried me. However, I'm not fluent enough to rewrite class. …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Issue with image upload, resize and store path in MySQL

    Thanks, but I need to get the script I posted to work, as it works on a site I know.
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Issue with image upload, resize and store path in MySQL

    @gabrielcastillo, Thanks for your contribution. The form is as follows: <form enctype="multipart/form-data" action="register.php" method="post"> <fieldset> <div class="form-group"> <input autofocus class="form-control" name="firstname" placeholder="First Name" type="text"/> </div> <div class="form-group"> <input autofocus class="form-control" …
  • Member Avatar for mexabet
    mexabet

    Created Issue with image upload, resize and store path in MySQL

    I'm trying to code a registration form. But I'm stuck at adding a borrowed code of image upload, resize, save and store its path in MySQL database. The error message …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Modify password issue

    @diafol, Thanks.
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Modify password issue

    @cereal; A million thanks; I'll work on your suggestions and see what happens.
  • Member Avatar for mexabet
    mexabet

    Gave Reputation to cereal in Modify password issue

    Hi, It seems you're using some **user defined** functions: `apologize()`, `query()`, `render()` and `redirect()` are not PHP functions, so we cannot help much. Check the included file at the top …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Modify password issue

    @arunmagar, There seems to be a syntax error somewhere else in the code, but not in the render portion (render("modifypass-form.php", ["title" => "Reset Password"]);), which you pointed.
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in Modify password issue

    @arunmagar, Sorry, but you don't know what you're talking about. There's no syntax error in the code section you pointed at.
  • Member Avatar for mexabet
    mexabet

    Created Modify password issue

    I'm having an issue with coding a script that enables a logged in user to change his/her password. But when the form is submitted, a strange, blank page is displayed. …
  • Member Avatar for mexabet
    mexabet

    Marked Solved Status for Prevent user from using more than the funds in his accoun

    I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the …
  • Member Avatar for mexabet
    mexabet

    Edited Prevent user from using more than the funds in his accoun

    I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the …
  • Member Avatar for mexabet
    mexabet

    Created Prevent user from using more than the funds in his accoun

    I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the …
  • Member Avatar for mexabet
    mexabet

    Marked Solved Status for I need your help to fix 2 bugs

    My script has a two bugs, which I've been unable to fix. So, I need your help. Here is the file: <?php // configuration require("../includes/config.php"); // check if form was …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in I need your help to fix 2 bugs

    Found a fix. Resolved.
  • Member Avatar for mexabet
    mexabet

    Created I need your help to fix 2 bugs

    My script has a two bugs, which I've been unable to fix. So, I need your help. Here is the file: <?php // configuration require("../includes/config.php"); // check if form was …
  • Member Avatar for mexabet
    mexabet

    Marked Solved Status for How do I make this C program to accept a negative input

    I'm creating a basic C program that I want to accept both positive and negative inputs. However, as it is it doesn't accept negative inputs. Any help on how to …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in How do I make this C program to accept a negative input

    Thanks guys for your input. I've managed to resolve it on my own.
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in How do I make this C program to accept a negative input

    Thanks for replying. As follows is the source code of the header file that defines GetFloat: #ifndef _CS50_H #define _CS50_H #include <float.h> #include <limits.h> #include <stdbool.h> #include <stdlib.h> /* * …
  • Member Avatar for mexabet
    mexabet

    Replied To a Post in How do I make this C program to accept a negative input

    Thanks for your response. The program include custom library file that defines the GetFloat function, and this is what it does: /* * Reads a line of text from standard …
  • Member Avatar for mexabet
    mexabet

    Created How do I make this C program to accept a negative input

    I'm creating a basic C program that I want to accept both positive and negative inputs. However, as it is it doesn't accept negative inputs. Any help on how to …

The End.