-
Posts
2,134 -
Joined
-
Last visited
-
Days Won
42
Everything posted by benanamen
-
Md5 is insecure. Dont use it for passwords period. There are several threads on this forum that will give you details about what you should be using.
-
You are concatenating the first $headers2. $headers2 .= Why are you posting the same exact thing to this forum when you were already provided answers on another site forum? The answers are not going to be any different here.
-
You need to learn about JOINS. You are also using deprecated code that will not work at all in the latest version of Php. You need to use PDO with prepared statements. I believe your database design may be wrong as well. Post an SQL dump of your database.
-
Only when it is checked? If so, look here: http://jsfiddle.net/QqVCu/14/
-
You posted before I deleted it. I got confused seeing the makepass function in his post which appears to have nothing whatsoever to do with this thread.
-
*Edit: Confused answer with the makePass function.
-
#wine_club_selection { height:200px; width:800px; border: thin solid #F00; }
-
Why would you even create such a cluster <?=str_rot13("shpx"); ?> ?
-
If someone is signed up, are they not logged in when they make a purchase?
-
Why do you need paypal to send you information you already have?
-
The column type should be 'date' and the date should be in the format YYY-MM-DD, ie. 2015-12-25. You can use Mysql's STR_TO_DATE to update the data in your DB and then change the column type.
-
Best way to design these tables and query them?
benanamen replied to GuitarGod's topic in MySQL Help
Lets start with the DB design. What are Students and what are Administrators? They are People. Depending on exactly what your doing and what you may do in the future, you could have problems splitting 'People' into two tables which it seems you are already at. Students and Administrators are roles the people play. It is very possible for an Administrator to be a Student and a Student to be an Administrator. The result of that would be duplicating data which violates Database Normalization. What you would want to do is have a 'persons' table with all the people in it, a role table with Administrator and Student as role options, person_role table with the person.person_id and role.role_id. This will allow for unlimited persons with unlimited roles to grow infinitely just by adding a new person and a new role. Get to this point and we can go from there. -
Here is where we are going for a simple problem Rube Goldberg anyone?
-
For gawd sake, why do you people continue to insist to do things the wrong way. You have a whole team with a combined hundreds of years of expertise at your fingertips telling you how things need to be done right and you still insist to do it the wrong way and then want to attack the people that are helping you for FREE! SHAME ON YOU!
-
It means exactly what it says. There is no table with that name. Replace that with a table name that exists or create a new table. Try blog_members
-
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
Complete working demo: <html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="http://pingendo.github.io/pingendo-bootstrap/themes/default/bootstrap.css" rel="stylesheet" type="text/css"> </head><body> <div> <!-- Nav tabs --> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li> <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li> <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li> <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="home">Home</div> <div role="tabpanel" class="tab-pane" id="profile">Profile</div> <div role="tabpanel" class="tab-pane" id="messages">Messages</div> <div role="tabpanel" class="tab-pane" id="settings">Settings</div> </div> </div> <p> * Links must be copy/pasted to address bar. Will not work clicking here.<br> <a href="#home">Home Link From Outside</a><br> <a href="#profile">Profile Link From Outside</a><br> <a href="#mesages">Messages Link From Outside</a><br> <a href="#settings">Settings Link From Outside</a> </p> <script> var hash = window.location.hash; hash && $('ul.nav a[href="' + hash + '"]').tab('show'); $('.nav-tabs a').click(function (e) { $(this).tab('show'); var scrollmem = $('body').scrollTop(); window.location.hash = this.hash; $('html,body').scrollTop(scrollmem); }); </script> </body></html> -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
Okay, my bad. The tabs are not standard bookmarks. Add this Java-script to your page, then doing a normal bookmark URL as previously talked about will work. I have tested this. First new thing I learned this year. <script> var hash = window.location.hash; hash && $('ul.nav a[href="' + hash + '"]').tab('show'); $('.nav-tabs a').click(function (e) { $(this).tab('show'); var scrollmem = $('body').scrollTop(); window.location.hash = this.hash; $('html,body').scrollTop(scrollmem); }); </script> -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
` -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
Why, oh why do people not pay attention on here. You have a tab problem all by it self, let alone any redirecting. -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
The problem is his bootstrap tab code is wrong. Nothing to do with the redirect. OP, Your bootstrap tab code is wrong. Start with the code sample provided by bootstrap and make sure Tabs are working with the default tab code, then you can integrate your additional code. -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
Post the ENTIRE code so I can run it on my end. -
@Ani123, No, no, no! You dont loop through the data twice.
-
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
I dont know what this redirect is you have. It should be header with Location. You have not shown how you have the bookmark setup. If this doesnt work, your bookmarks are not done correctly. Bookmarks are simple. Bookmark Link: <a href="#C4">Jump to Chapter 4</a> Bookmark Target: <h2 id="C4">Chapter 4</h2> die(header("Location: edit_project.php?id={$project['id']}#bookmark")); -
Help with redirecting to specific nav-pill on same page
benanamen replied to rodb's topic in PHP Coding Help
He is using bootstrap. Op, look up and learn how to use a html bookmarks and linking to them. That is the answer to your question. Basically your URL will be page.php#bookmark Or page.php?id=123#bookmark