- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 4
- Interests
- programming
50 Posted Topics
Re: <?php //query insert new record //if(//inserted successfully){ //send email if(//email_was_sent){ //inform_user } } else{ } ?> | |
Re: ....?? no solution? | |
Hi guys, i am currently stuck at live update the data fetched from mysql. The problem now is, if the table has thousand of data, the webpage will hang/lag because of the setInterval() are fetching the data over and over again. My question is, what is the best solution for … | |
Re: is it same as?: setInterval(function() { $("#balance_view").load("balance.php"); }, 500); | |
| |
Re: maybe this help: index.php <?php session_start(); $user = $_SESSION["user_id"]; $pass = $_SESSION["password"]; ?> <form name="booking" method="post" action="booking.php"> <table width="213" border="0"> <tr> <td width="300" height="34">Select School</td> </tr> <tr> <td><select name="school"> <option value="1">SMK Seri Pantai</option> <option value="2">SMK Tengku Sulaiman</option> <option value="3">SMK Convent Butterworth</option> <option value="4">SMK Dato' Megat Khas</option> </select> </td> </tr> <tr> … | |
Re: yes, you cant send without internet connection, here is an example of my site: http://din87.com/ | |
Re: always happened to me, the best way is: 1. Uninstall xampp 2. Re-install xampp but make sure back-up all the files | |
Re: 1. Error in form, you cannot wrap <style> within the body I alter it, hope it working :) --------------------------------------------------------------------------------------- 1. form.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Change Password</title> <style type="text/css"> body, table {font-family:Arial, Helvetica, sans-serif; font-size: 12px; color: #000 ;} </style> <body> <form action="form_p.php" method="post"> <table> <tr> <td>Enter … | |
Re: use javascript | |
is it nice if we can view each member's photo of daniweb? facebook-alike or something | |
Re: <style> #center_me{width:500px; position:relative; margin:0 auto} </style> <div id="center_me"><img src="images/image.jpg"></div> <!-- or --> <center><img src="images/image.jpg"></center> | |
Re: use jvalidate plugin http://www.jsvalidate.com/ | |
Re: maybe the plugin of the player is from the online website so, when you are offline there is no plugin link to. the best way is, save the plugin into your local web root. | |
Re: use ui datepicker http://jqueryui.com/datepicker/ | |
Re: use wordwrap: [CODE]<?php echo wordwrap(nl2br($your_message), 50, "<br>\n", TRUE); ?>[/CODE] | |
Re: use plugin colorbox http://www.jacklmoore.com/colorbox | |
Re: <?php echo wordwrap(nl2br(htmlentities($text)), 100, "<br>\n", TRUE); ?> | |
can anyone share with, how to set the default windows size? i mean, want my web page with fixed size of 1368px x 768px.. i do not want other size, or my web looks weird... | |
Re: you forget session_start() [CODE] if($count==1){ //session_start — Initialize session data session_start(); $_SESSION['login_email'] = $emailin; $_SESSION['login_password'] = $passwordin; session_register("emailin"); session_register("passwordin"); //Add additional member to cookie array as per requirement setcookie("email", $_SESSION['login_email'], time()+60*60*24*100, "/"); header("location:profile.php"); } else { echo "Wrong Email or Password"; } [/CODE] | |
i am newbie in javascript... i have problem here, i want to pass the value (date) to database script (php) i want only the matched keyword will be displayed. i try several method but still did not get the right result as desrved. someone please alter my code. tq index.html … | |
Does anyone can share with the javascript how to book a table (restaurant). 1. when user click on image of table (assume) restaurant directory, value will pass to process.. | |
hey guys, does anybody has the sample of, how to insert smiley/icon in the message board (php or javascript) i have the simple one: [CODE]//character typed $typed_chars = array('X(', '8)', 'oO'); //to_be_replace $icon_set = array("<img src=\"../smiley/smiley 1/fire24.png\">", "<img src=\"../smiley/smiley 1/icon_cool24.png\">", "<img src=\"../smiley/smiley 1/startle24.png\">"); //convert $message = str_replace($typed_chars, $icon_set, $message);[/CODE] I … | |
Re: [CODE]<?php echo str_replace(":)", "47.gif", "<img src=\":)\">"); ?>[/CODE] | |
I have a code to trim the long word for the specific length and replace it with '...' but, it has a problem, where, if user's name dont have space, its will look wierd.. heres the code: [ICODE] <? function truncateString($string, $length, $append = '...') { $length -= strlen($append); // … | |
i have created a board so user can post comment but, some error occured: the special character ' is not recognize it come like this: correct word: Hey I'm your life turned to: Hey I�m your life This is because, i used: [CODE]<?php echo wordwrap(nl2br(htmlentities($message)), 200, "<br>\n", TRUE); ?>[/CODE] htmlentities() … | |
Re: Missed: [CODE]11. alert("Good Job!");[/CODE] | |
Re: How to hide the popup box, so user can directly view the print page behind? because if we close the pop up box, the printing view also disappeared. please [CODE]var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; [/CODE] | |
Re: Re-Edit :) [CODE] <?php $browser_ver = get_browser(null,true); if($browser_ver['browser'] == 'IE') { ?> <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>pdf print test</title> <style> html { height:100%; } </style> <script> function printIt(id){ var pdf = document.getElementById("samplePDF"); pdf.click(); pdf.setActive(); pdf.focus(); pdf.print(); } </script> </head> <body style="margin:0; height:100%;"> <embed id="samplePDF" type="application/pdf" src="Building … | |
Can someone share the use of .htaccess and the sample of the code.. Is this .htaccess really usefull? :?: | |
Could someone fixed this codes, i want the value inside the text fields will empty after submit the form.. huhu...:?: [CODE]<script type="text/javascript"> $(document).ready( function() { $('#submit_id').click(function(){ doUpload(); }); $('#uploadprogress').hide(); }); function doUpload() { // STEP 2. Create the iframe object var iframe; try { iframe = document.createElement('<iframe name="uploadiframe">'); } catch … ![]() | |
I have upload files over the live domain. and some files are process files. how I can limit the permission of the files so user cannot type that file's name on the url address bar? example of file permission code, 0755, 0644 Can someone gives me the list, and the … | |
Re: Just edited, anyway, nice posted Shanti :) [B]index.html[/B] [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Send email with Attachment</title> </head> <body> <h2>Send email with Attachment</h2> <form action="process.php" method="post" enctype="multipart/form-data"> To:<input type="text" name="email" /><br /> File: <input type="file" name="file" id="file" /> … | |
can anybody share, the best encryption and decryption technique in PHP. here i just found 3 ways. are that any better technique? [QUOTE][ICODE]<?php //1 $password = 'mothafucka'; $sSalt = '8*S&AsEc4qUs'; $sHash = hash( 'whirlpool', $password . $sSalt ); echo $sHash."<br><br>"; //2 $password = "palancau87"; $password = sha1($password); $password = md5($password); … | |
Re: [QUOTE=mschroeder;812413]The hash function is a function that allows you to utilize numerous kinds of algorithms. if you run [icode]print_r(hash_algos());[/icode] it will give you an array of the hash algorithms available on your system. Whirlpool is just one type of hash, like MD5, SHA1 and CRN32 A salt is basically adding … | |
I have problem with text area where, after loading a page which contains TEXT AREA, the text area auto tab in the field. Its looks ugly because I have put a watermark on the field to lets user know what is text area for. The css: textarea { font-size:12px; width:500px; … | |
Re: You just a BATMAN.. | |
Re: it his hard to send via mail() function, unless you have paid domain. hey, why dont you just save the problem in database, just use INSERT command | |
Re: all the best, i also doing the internship program and i do not know either i will present to the director or not..huhuuhuh | |
hi there, i just joined this site. i am from petaling jaya, selangor, malaysia i am 24 years old, training student at Universiti malaya. i am interested in php..hope you guys can share your knowledge with me. tq.:icon_razz: | |
Re: hope you can modify from below code, by type... //take student table $student = $_POST['student']; $password = $_POST['password']; $type = $_POST['type']; //connect to db $connection = mysql_connect("$localhost", "root", ""); //check connection if(!$connection) echo die(mysql_error()); else echo "Connected"; //select database mysql_select_db("my_db", "$connection"); //query $sql_login = mysql_query(SELECT * FROM tbl_stud where username … | |
Re: php? i think you better try for jQuery/javascript for video (youtube).. ![]() | |
Re: hey, i also from malaysia, i am from PJ. nice to meet some guy from same country |
The End.