Jump to content

benanamen

Members
  • Posts

    2,134
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by benanamen

  1. Yes. font-awesome.min.css is not part of bootstrap or Laravel. Either download it or use a CDN. I updated my comment on that tutorial page. 

     

    CDN

    https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

     

    I got down on Laravel Authorization yesterday. Super easy to do. Laravel does all the work. Here is the tutorial I used. It is just a couple commands.

     

     http://www.hc-kr.com/2016/09/laravel-5-authentication-login-registration-form.html

     

    Moving on to Form to Email today.

  2. I just finished the following 5.3 CRUD tutorial. It gave me a quick idea of how to do basic database operations. There was only one small error which is now noted in the page comments.

     

    http://www.hc-kr.com/2016/10/laravel-5-crud-tutorial-ajax-bootstrap.html

     

    I don't have any framework experience to compare with, but I am liking the migrations feature to create the DB and track changes along with rolling back to a previous schema.

     

    I can see if you know how to use Laravel you could get something up and running pretty quickly.

  3. I just installed Laravel 5.3 (Current version) last night on Win7/Xammp. So far I am finding the official documentation much less than helpful. I had to go to a third party site just to figure out how to install it using composer.

     

    So far, the tutorials I have found even for version < 5.3 differ from the current release.

  4. Try this 

    SELECT
    	Count(ti.itemid) AS CountOfItemID,
    	col.collectiondesc
    FROM
    	tbl_items ti
    LEFT JOIN tbl_lu_categories cat ON ti.itemcategory = cat.itemcatid
    LEFT JOIN tbl_lu_collections col ON cat.collectionid = col.collectionid
    WHERE
    	ti.retailproduct = 1
    GROUP BY
    	col.collectiondesc;
    
  5. He has more problems than that. The code is vulnerable to an SQL Injection Attack. You NEVER EVER send user supplied data directly to the database. I could delete his entire database in 2 seconds.

     

    The query naming 123 is ridiculous and confusing. There are only two queries yet he has query #3?

  6. It sounds like you're taking on too much responsibility. You can't force people to learn.

     

    Actually not. If they want to learn, I have no problem spending the time to teach them. 

     

    If they don't want to learn, I don't waste my time on them as you can see from my history of posts. If they show up with mysql_*, I send them to a good PDO tutorial so they can come back asking about the right problems they may have. If they just want their obsolete code "to work", I don't waste my time.

  7. When they come to this site it is our opportunity to teach them correctly. As expert professionals I would even go so far as to say our responsibility to do it. If we don't, who will? Should we just cross our fingers and hope they learn it eventually somewhere else? I think not.

     

    Anyone with a real programmer mindset is going to want to know everything that is wrong with what they are doing so they can fix it and become better programmers. If they don't care and just want it to work we are not helping anyone and just wasting our time.

  8. Rather than copping an attitude at people that are trying to help you for FREE, why don't you just answer the question? From what you provided, it logically doesn't make sense, at least not to me. It appears to be an XY problem. You can see my signature for an explanation of that.

  9. Correct me if I am wrong, but shouldn't this line 

     

    if (!isset($_POST[$required_param]))

     

    be

     

    if (empty($_POST[$required_param]))

     

    isset checks if a variable isset AND is NOT NULL

     

    If the form is submitted without filling out a required field, the POST for that field will be isset with an empty string making it not null so it will never throw an error.

×
×
  • 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.