-
Posts
2,134 -
Joined
-
Last visited
-
Days Won
42
Posts posted by benanamen
-
-
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.
-
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.
-
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;
-
You don't ever edit the bootstrap CSS file. Include your own custom CSS file that overrides the bootstrap class.
The reason being, when you update the bootstrap version, you will lose all your changes or have do the mods all over again.
-
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?
-
-
You do realize you have some real security issues with this code right?
-
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.
-
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.
-
The demo doesn't work. You would get a better critique if you posted code.
-
Why are you generating your own query id? You should be using prepared queries as well.
Where is the code that sends the email? Is this even the same code you mention in your first post?
-
To answer your question yes. You shouldn't need to schedule emails being sent from a form submission. Post the code you have so we can review it. It is simple to do what you have asked and is very basic.
-
OP already stated in another thread that she doesn't care about programming or if it's right as long as it works. Fellow experts are just wasting your time with this.
-
You're seriously wasting your time with this obsolete insecure code.
-
We are not going to do your homework for you. What have you tried?
-
You need to talk to your professor or whoever and tell them they are teaching you code that has been deprecated for over a decade and won't even work at all in the current version of Php.
-
Your code is junk. Toss it. It is obsolete and insecure and vulnerable to an SQL Injection Attack and has been completely removed form Php. You need to use PDO. It is not fixable.
-
Good idea. Now we just have to convince people that the badge isn't the username either.
What do you mean Guru?
-
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.
-
The id column is not unique i have several identical enstries and the name is also not unique and has several identical entries:
Isn't that the real problem? Where is the logic in that?
-
Try
SELECT DISTINCT product_name_column, total FROM products
-
No one is going to be able to solve your problem with the code YOU think we need to see. I won't even get into why you should not be using IIS as your server.
Also, what changed yesterday from the day before?
-
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.
-
That tutorial is complete obsolete junk. Throw it away now and don't spend another second with it. You need to use PDO. They also want you to use MD5 to "encrypt" your password which is also very bad.
There is no 'fixing' this code. That 'tutorial' should be removed from the internet.
What do you think about Laravel?
in Frameworks
Posted · Edited by benanamen
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.