Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

  • Days Won


jcbones last won the day on June 27 2015

jcbones had the most liked content!

About jcbones

  • Birthday 05/16/1975

Profile Information

  • Gender
  • Location
    North Carolina

jcbones's Achievements


Newbie (1/5)



  1. The problem is in index.php BEFORE the "require()" that includes boot.php.
  2. Nice find fastsol, although, I really don't like the way it is set up. A lot of redundant data input, which leads to great chances of data corruption.
  3. Yes, Paypal has an API that handles everything. You send the total amount of the sale, along with the sale items, then the payer approves the sale. I haven't used the new API, as it has been a few years since I did paypal integration. I just looked over the API, and it seems to be more complex than it used to be (payments are now 3 step processes). So, yeah, have fun with that. Things to think about: Do you want Paypal to handle credit card info? If not, does your site have SSL? (it will need to). Anyway, start here http://https://developer.paypal.com/docs/integration/web/accept-paypal-payment/
  4. I'm voting a no ban. I love to see people blow up because they can't follow directions.
  5. Have you run the query in mysql console, or phpmyadmin or other interface, to see what it returns?
  6. Did you read the post that Barand made, and you quoted? He gave you a script, called im_rotate.php, then he gave you TWO different image elements. One image element called the image, the other called the script.
  7. You will never "have that skill", unless you first try and make that skill. Don't doubt yourself, push through that, know that you can. Follow the syntax, and it will all come together for you. http://https://dev.mysql.com/doc/refman/5.0/en/join.html PS. The reason you are only getting one row, is you are only asking for one row. You haven't ask for the rest from the resource.
  8. You also have an error in your sql syntax. $query_image = "SELECT * FROM acc_images acc_ id='$id'"; Should be: $query_image = "SELECT * FROM acc_images WHERE acc_ id='$id'";
  9. You cannot mix mysql functions with mysqli functions. They are two different libraries. You should be using mysqli, and NOT mysql.
  10. These are all notices, and are being shown because the code is written, well, poorly. All of these are just notices that the script is trying to use variables/indexes that do not exist. The author did not check the variables before trying to use them. You have a few choices: A: ask the author to fix the script (recommended). B: fix the script yourself, by adding in some validation. C: suppress the notices through the php.ini and hope everything works fine (not recommended). Example $std = $option['std']; //this is one of the indexes listed in the notices. //a more proper way is to check if this index exists before using it. $std = !empty($option['std']) ? $option['std'] : null; //if the index 'std' in the $options array is not empty, then assign it to $std, otherwise assign 'null' to the variable $std.
  11. Yes you can use 'and', it is just a lower precedence than &&. http://http://php.net/manual/en/language.operators.logical.php
  12. The REQUEST_URI you are wanting is being populated via the $_SERVER superglobal. You can get it directly by calling $_SERVER['REQUEST_URI'] instead of trying to find it in a multidimensional array. As far as parsing it? Who knows, I have no idea what you are wanting out of it. I am going to guess that you want the uri query string parsed into an array. If so, this will give you that, NOTING however, that if the value is empty, the key will not be in the array. From your string given, this would be caller_zipcode, etc. Array held in $parsed_uri $pattern = '/(?<key>[a-zA-Z]+?)(?=\=[^&])\=(?<value>.[^&]+)/'; $string = $_SERVER['REQUEST_URI']; preg_match_all($pattern,$string,$matches); $count = count($matches[0]); for($i = 0; $i < $count; $i++) { $parsed_uri[$matches['key'][$i]] = $matches['value'][$i]; } unset($matches); echo '<pre>' . print_r($parsed_uri,true) . '</pre>';
  13. To cancel a script if no form was submitted, this will do. Applies to scripts that do nothing but form processing. if($_SERVER['REQUEST_METHOD'] != 'POST') { exit(); }
  14. You don't need to use exit(), unless you want the script to stop running. Otherwise, you are on the right track.
  15. Of course you don't have to put all classes in one file. That is what include is for.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.