-
Posts
2,134 -
Joined
-
Last visited
-
Days Won
42
Everything posted by benanamen
-
For starters, when you are naming columns like some_column1, some_column2 etc, you are already heading the wrong direction. Look up and learn Database Normalization.
-
Route groups allow you to share route attributes, such as middleware or namespaces, across a large number of routes without needing to define those attributes on each individual route. Shared attributes are specified in an array format as the first parameter to the Route::group method. You can read about middleware here https://laravel.com/docs/5.3/middleware As far as when I was doing the Auth, sending emails either locally or through Gmail was very, very simple.
-
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.
-
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?
-
mail() not working anymore despite it working perfectly at one point
benanamen replied to Luker's topic in PHP Coding Help
Read @Jaques1 response here https://forums.phpfreaks.com/topic/302558-mail-function-stopped-working/?hl=%2Binjection+%2Bheader&do=findComment&comment=1539425 -
mail() not working anymore despite it working perfectly at one point
benanamen replied to Luker's topic in PHP Coding Help
You do realize you have some real security issues with this code right? -
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.
-
Add form submission to database and send an email too
benanamen replied to VipulK's topic in PHP Coding Help
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? -
Add form submission to database and send an email too
benanamen replied to VipulK's topic in PHP Coding Help
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. https://phpdelusions.net/pdo
-
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.
-
Isn't that the real problem? Where is the logic in that?
-
Pull up last entries on a product inventory table
benanamen replied to LambPatch's topic in MySQL Help
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?