Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
85% Quality Score
Upvotes Received
15
Posts with Upvotes
14
Upvoting Members
10
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
2
5 Commented Posts
0 Endorsements
Ranked #1K
~46.5K People Reached
Interests
Travelling ? Sport? Programming?
Favorite Tags

43 Posted Topics

Member Avatar for UK-1991

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)))

Member Avatar for tejpal_3
0
2K
Member Avatar for Lau_1

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 …

Member Avatar for Lau_1
0
621
Member Avatar for Lau_1

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, …

Member Avatar for AleMonteiro
0
1K
Member Avatar for Lau_1

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"); …

0
227
Member Avatar for Lau_1

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> …

Member Avatar for AleMonteiro
0
1K
Member Avatar for Lau_1

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 …

Member Avatar for Lau_1
0
237
Member Avatar for Lau_1

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 …

Member Avatar for BenWard
0
426
Member Avatar for Lau_1

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 …

Member Avatar for diafol
0
355
Member Avatar for AntonyRayan
Member Avatar for Lau_1

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 …

0
105
Member Avatar for Lau_1

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 …

Member Avatar for Lau_1
0
375
Member Avatar for Ventech_IT
Member Avatar for Harsh_5

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?

Member Avatar for Harsh_5
0
103
Member Avatar for UK-1991

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

Member Avatar for diafol
0
152
Member Avatar for AntonyRayan

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)

Member Avatar for Latrell_vie
-1
135
Member Avatar for AntonyRayan
Member Avatar for Oliver Realize
0
537
Member Avatar for Lau_1

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() …

Member Avatar for diafol
0
253
Member Avatar for pctechconcierge
Member Avatar for Ian_7

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; …

Member Avatar for diafol
0
2K
Member Avatar for UK-1991
Member Avatar for SimonIoa

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 …

Member Avatar for SimonIoa
0
192
Member Avatar for Lau_1

Hello, anyone know how to display discount code at the paypal order summary? ![paypal.PNG](/attachments/small/4/8abddac7b536dd761ea964f20f7213ce.PNG "align-left")

Member Avatar for Lau_1
0
313
Member Avatar for vivekH

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)

Member Avatar for jwenting
0
237
Member Avatar for Elvi

Try this, <a href="page.html"><img src="img_to_the_path" alt="image_description"/></a>

Member Avatar for cereal
0
167
Member Avatar for isaac.iji.5

what is the error? everything save in db and the uploaded picture in the same directory?

Member Avatar for isaac.iji.5
0
208
Member Avatar for <M/>

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 …

Member Avatar for <M/>
0
515
Member Avatar for Stefce

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. :)

Member Avatar for Lau_1
0
924
Member Avatar for Ritesh_4
Member Avatar for Lau_1
0
298
Member Avatar for cagrifromearth
Member Avatar for janicemurby

can u post ur full query used for insert database? And do u add ") symbol at the end of $query? user_id = '$userid'") ;

Member Avatar for diafol
0
289
Member Avatar for johnnny

Try to replace ur s.replaceAll(s.charAt(i), s.toLowerCase()); To s.setCharAt(i, Character.toLowerCase(s.charAt(i)));

Member Avatar for Lau_1
0
193
Member Avatar for EvaBozh

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; }

Member Avatar for Lau_1
0
191
Member Avatar for narendrakiit

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 …

Member Avatar for Lau_1
0
183
Member Avatar for SimonIoa

all of ur javascript didnt work or just this? have u enable javacript to run in ur browser?

Member Avatar for SimonIoa
0
435
Member Avatar for Stephano
Member Avatar for Nima_1
Member Avatar for Muhammad_92

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 …

Member Avatar for lps
0
134
Member Avatar for asutechltd
Member Avatar for DocTech25
Member Avatar for nitos

MySQLi Procedural or MySQLi Object-Oriented? Which one you want to use?

Member Avatar for diafol
0
280
Member Avatar for Chanda_1

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 …

Member Avatar for Lau_1
0
186
Member Avatar for Lau_1

**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 | ----------- | ------ | …

Member Avatar for diafol
0
29K
Member Avatar for Vaibhav_6

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

Member Avatar for Lau_1
0
117

The End.