- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 15
- Posts with Upvotes
- 14
- Upvoting Members
- 10
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 2
- Interests
- Travelling ? Sport? Programming?
43 Posted Topics
Re: To hash ur password, function Hash($pwd, $salt = null){ if ($salt === null){ $salt = substr(md5(uniqid(rand(), true)), 0, 10); } else { $salt = substr($salt, 0, 10); } return $salt . sha1($pwd . $salt); } To check the hashed password is equivalent to the user keyin if ($database_hashed_password === Hash($user_key_pass,substr($database_hashed_password,0,10))) | |
Hello, I am still confusing how to differentiate with responsive website and mobile web apps. Responsive website can auto configure to fit into the browser. Currently I had developed responsive website. So how about mobile web app? Is mobile web app launch using browser? How can this mobile web app … | |
Hello, anyone have any idea on how to display selected image in popup box? and then upload. Currently, the basic way is to display the selected image in a <div> tag, and i want to change and display the image in popup/dialog/confirmation box. Below is the code to select image, … | |
Hello, i not sure what is the problem with my code. Below is my code. <?php if(isset($_SESSION["products"]) && count($_SESSION["products"])>0){ $total = 0; foreach($_SESSION["products"] as $product){ $product_name = $product["name"]; $product_price = $product["price"]; $product_code = $product["product_code"]; $product_qty = $product["product_qty"]; $currency = "RM "; $img = mysqli_query($link, "SELECT img FROM internet_shop where id=$product_code"); … | |
Hello, i want to know, is there any way to force user can only select the address provided in dropdown list? Currently everything working well, but user can proceed without select the address from the dropdown list, can anyone help? Thanks in advance <input type="text" class="form-control" id="address" name="address" required> <script> … | |
Hello, my bootstrap right panel cannot switching well. when i click #food link, it show the item, and when i click #drink link, it still ok to show the item, but, when i want to click #food link again, it doesnt work. Can anyone help me? <div class="panel-body"> <ul class="nav … | |
Hello, i faced some problem in building the android calculator. The problems like this: 1) If i click 2 + 3, it worked well, and screen will show the 5.** BUT! **when i clicked + and + and + and +...... it will continuosly add the answer. How can i … | |
Hello, i had some problem with the below code. How to change the 'Click to Read More' and 'Click to Hide' function by just click 'Step' to show and hide? page.php <blockquote class="bigtext"> <p class="title"><b>Step 1</b><hr class="style1"></p> <p></p> <p></p> </blockquote> javascript <script> $(function(){ var animspeed = 950; // animation speed … ![]() | |
I have no idea how to open extra chat box if room_id record more than 1 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin</title> <script type="text/javascript" src="js/jquery-1.9.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // load messages every 1000 milliseconds from server. (1 second = 1000milliseconds) var roomID = $('#room_id').val(); load_data … | |
Sorry, may i know what is the problem? load_data = {'fetch':1}; window.setInterval(function(){ $.post('shout.php', load_data, function(data) { $('.message_box').html(data); var scrolltoh = $('.message_box')[0].scrollHeight; $('.message_box').scrollTop(scrolltoh); }); }, 1000); $("#shout_message").keypress(function(evt) { if(evt.which == 13) { var iusername = $('#shout_username').val(); var imessage = $('#shout_message').val(); var roomID = $('#room_id').val(); post_data = {'username':iusername, 'message':imessage, 'roomID':roomID}; //send data … | |
Re: on line 11, u miss the <?php ?> | |
Re: Client MAC address not available to you, only if the client is on the same ethernet segment as the server. So, your client is on the same with u? | |
Re: you close ur while loop too early, try this <?php while($row = mysqli_fetch_assoc($query_cat)) { $h1 = $row["h1"]; $h2 = $row["h2"]; $span = $row["span"]; $catslide = $row["cat_slider"]; $ct_name = $row["cat_name"]; //} dont close here ?> ... <?php }} else { ?>//close here ![]() | |
Re: The Unicode Consortium develops the Unicode Standard. Their goal is to replace the existing character sets with its standard Unicode Transformation Format (UTF). You can refer here: [http://www.w3schools.com/charsets/ref_html_utf8.asp](http://www.w3schools.com/charsets/ref_html_utf8.asp) | |
Re: ul - unordered list (bulleted list) ol - ordered list (numbered list) | |
Hello, I want to ask, what going on for this. I try to implement form, user key in the username, it will trigger the function to check the username is existing or not. I tried to figure out the problem, but dont know what's going on... My Js file, jQuery(document).ready(function() … ![]() | |
Re: u didnt do anything to allow form to send email. | |
Re: From my view, i think u should put ur table body inside the while loop, <tr> <td> <?php echo $id; ?> </td> <td> <?php echo $user_firstname; ?> </td> <td> <?php echo $user_lastname; ?> </td> <td> <?php echo $user_email; ?> </td> <td> <?php echo $username; ?> </td> <td> <?php echo $userpassword; … ![]() | |
Re: try to skip the TRUE? if(in_array($uname, $username)) { | |
Re: using @media query method, for example: @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { } /* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { } /* iPads (portrait and landscape) ----------- */ @media only screen and … | |
Hello, anyone know how to display discount code at the paypal order summary?  | |
Re: Try to check following link, [http://stackoverflow.com/questions/12127407/write-arraylist-to-a-database-java](http://stackoverflow.com/questions/12127407/write-arraylist-to-a-database-java) | |
Re: Try this, <a href="page.html"><img src="img_to_the_path" alt="image_description"/></a> | |
Re: what is the error? everything save in db and the uploaded picture in the same directory? | |
Re: it's correct, but u modify it incorreclty, $to = "yahoo@gmail.com"; $subject = "Contact Form Submission; u should change it to @mail($to, $subject, $email_message, $headers); To display the success message, echo "Thank you for contacting us. We will be in touch with you very soon." }?> instead of ?> Thank you … | |
Re: Below code will give u some idea, try this code: window.onload = function(){ document.getElementById('hide').onclick = function(){ this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); return false; }; }; or $(document).ready(function() { $('#hide').on('click', function(e) { $('#div_to_hide').remove(); }); }); I havent try the code, but hope it help. :) | |
Re: Do u mean click on some button and trigger JS to store all value into db? | |
Re: can u post ur full query used for insert database? And do u add ") symbol at the end of $query? user_id = '$userid'") ; ![]() | |
Re: Try to replace ur s.replaceAll(s.charAt(i), s.toLowerCase()); To s.setCharAt(i, Character.toLowerCase(s.charAt(i))); | |
Re: u need to find and edit in bootstrap-combined.min.css find the div{} or u can specify by ur self, but should give a id or class for ur div and add this div{ margin-bottom:-10px; } | |
Re: seem like the size of div4 is high, and if move to below the div 1, overall height is not equivalent. To move the div 4 under div 1, using display: inline; and the size of div 1 and div 4 should change, it should be display in this way … | |
Re: all of ur javascript didnt work or just this? have u enable javacript to run in ur browser? | |
Re: u mean u want like 1st combobox selected with (computer science), then second combobox will display all semester for computer science, and last combobox display all the course for selected semester? can i know how is ur table designed? some example with value for your table for ur last part … | |
Re: Iz all the css design doesnt appear in your page? | |
Re: MySQLi Procedural or MySQLi Object-Oriented? Which one you want to use? ![]() | |
Re: Is this you want? (3 user level login for the code below) if ($_POST['doLogin']=='Login'){ //When click login foreach($_POST as $key => $value) { $data[$key] = filter($value); // post variables are filtered } $user_email = $data['usr_email']; $pass = $data['pwd']; if (strpos($user_email,'@') == false) { $user_cond = "user_name='$user_email'"; } else { $user_cond … | |
**Hello, please help me on this. I want to select from these table,** table name: User | Register_date | --------------- | 2015-02-04 | | 2015-02-04 | | 2015-02-14 | | 2015-03-14 | | 2015-04-04 | | 2015-04-14 | table name: Reservation | Order_date | Amount | ----------- | ------ | … ![]() | |
Re: Using javascript to handle. Make function like page protect, so if user login, redirect to home page, and if user logout, redirect to another page, include function page protect in the header to disable user access this page without login or after logout |
The End.