Don E

  • Content count

  • Joined

  • Last visited

  • Days Won


Don E last won the day on March 14 2016

Don E had the most liked content!

Community Reputation

120 Excellent

About Don E

  • Rank
    Invested Member
  • Birthday November 3

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Location
  1. You can place the file.php in a directory other than the public_html directory since everything in the public_html directory is accessible by the public. For example, you can create a folder(directory) for cron job files in your home or username directory and call the file from there for the cron job: /usr/local/cpanel/bin/jailshell -q /home/my_username/cron_jobs/file.php
  2. Are you running the first cron job with the colons? /usr/local/cpanel/bin/jailshell: -c: /home/my_username/public_html/folder/file.php" Try removing the colons and also the double quote at the ends of the cron jobs.
  3. Something is telling me they are serious.
  4. Just thought I'd share this video course on JavaScript for those who may be interested. The course original price is $175 but there is a sale going on until Mar 1 where you can get it for $10. I'm not affiliated with udemy or anything. Just thought maybe someone would like to take advantage of the sale. It's a very good course for those who want to delve deep into JavaScript or enhance their JavaScript knowledge for a little cost. 👍🏼
  5. Yes good point, I agree when it comes to time.
  6. Kind of sounds like you're implying those who write HTML, CSS by hand today haven't progressed because they aren't using libraries, Wix, toolkits, CMS, etc?
  7. If PHP is properly set up on the server, no, you wouldn't be able to see the code. You'd only see the output of the code(if any), but not the actual code like the above.
  8. Just to note and I wondered this for some time.. it seems most linux distros use dated versions of PHP. I read somewhere along time ago that this has to do with stability. Whenever they update I noticed, it's an update to the current version and usually not to a newer version. Here is a current list of some linux distros and their PHP versions: (From 2013 but the list gets updated) If on a shared host, it would be probably difficult to get your host to upgrade your PHP just for you. Usually for shared hosts, everyone uses the same version from what I understand. Of course you can get dedicated and install your own new version of PHP but again as some have mentioned via the net, it's easier to manage server software via the software package manager that comes with your distro and whatever updates you get from the distro. Long story short, I was once on a shared host. I needed a particular software to be the latest. I contacted the host and they said "We cannot manually update that particular software only what the distribution has to offer at the moment." At the time I didn't understand but after research etc, I mostly understand.
  9. Good to know! Glad you figured it out!
  10. Have you tried doing a simple select to see if it returns anything like the following with description: SELECT description FROM stock or SELECT description FROM stock WHERE icode = 1 or SELECT item,sid,catid,oqty,unitid,sprice,pprice,description FROM stock WHERE icode = 1 Good luck.
  11. Try adding $stmt->store_result(); after $stmt->bind_result() and then add/check if $stmt->num_rows returns anything. i.e.: $stmt->bind_param('ssi', $icode, $icode, $cid); $stmt->execute(); $stmt->bind_result($item,$sid,$catid,$oqty,$unitid,$sprice,$pprice,$description); $stmt->store_result(); if($stmt->num_rows) { echo $stmt->num_rows; //test to see if num_rows //if any num_rows returned, then fetch.... // if you know a single row is returned: $stmt->fetch(); //if multiple rows....: while($stmt->fetch()) {} } else { echo 'no rows returned'; }
  12. The default max execution time for PHP scripts is 30 seconds. If ran longer than that, you get an error like the one you saw. You can increase the execution time in your php.ini file by increasing the max_execution_time directive.
  13. This is an old topic but instead of making a new one, I thought I'd ask here again. Would it also be advisable to use prepared state for SELECTING as well instead of just for INSERTING/UPDATING. Currently I am doing that for selecting as well but just thought I'd ask. Thanks.
  14. Are you seeing any errors anywhere? Try and remove @ from @mysql_query so that errors are not suppressed. If the columns confermato and id_studente are of type int, you do need single quotes for the value. Side note, if you're going to use MySQL, it's recommended to use MySQLi instead along with prepared statements.
  15. On line 74 in: .table-striped tbody > tr:nth-child(2n+1) > td, .table-striped tbody > tr:nth-child(2n+1) > th { background-color: #f8f8f8; } If you remove the background color (above), green background appears with the header titles. That CSS file may be minified. You may want to override that table header rule by creating your own CSS file and place it last after your other CSS files for that page. You can then try to target it like the following: form#adminForm table tbody tr th { color: #fff; font-weight: 500; padding: 15px 8px; text-align: center; } The above gives you the green background with white lettering: