Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
30% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
4
2 Commented Posts
~29.2K People Reached
Interests
programming
Favorite Tags

50 Posted Topics

Member Avatar for theflashbr

<?php //query insert new record //if(//inserted successfully){ //send email if(//email_was_sent){ //inform_user } } else{ } ?>

Member Avatar for dean8710
0
471
Member Avatar for abhi10kumar
Member Avatar for dean8710

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 …

Member Avatar for pritaeas
0
104
Member Avatar for jakizak

is it same as?: setInterval(function() { $("#balance_view").load("balance.php"); }, 500);

Member Avatar for dean8710
0
2K
Member Avatar for iAssistant
Member Avatar for hudhasama

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

Member Avatar for hudhasama
0
503
Member Avatar for Fiorentino01^

yes, you cant send without internet connection, here is an example of my site: http://din87.com/

Member Avatar for moneeshot
0
233
Member Avatar for itsmeurdude

always happened to me, the best way is: 1. Uninstall xampp 2. Re-install xampp but make sure back-up all the files

Member Avatar for veedeoo
0
387
Member Avatar for RaeesIqbal

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 …

Member Avatar for simplypixie
0
250
Member Avatar for Azmah
Member Avatar for dean8710

is it nice if we can view each member's photo of daniweb? facebook-alike or something

Member Avatar for deceptikon
0
160
Member Avatar for chade25

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

Member Avatar for dean8710
0
71
Member Avatar for ello
Member Avatar for growlboy

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.

Member Avatar for dean8710
0
136
Member Avatar for drumichael87
Member Avatar for Squit

use wordwrap: [CODE]<?php echo wordwrap(nl2br($your_message), 50, "<br>\n", TRUE); ?>[/CODE]

Member Avatar for SautinSoft
0
2K
Member Avatar for jacob21
Member Avatar for dwlamb

<?php echo wordwrap(nl2br(htmlentities($text)), 100, "<br>\n", TRUE); ?>

Member Avatar for dean8710
0
109
Member Avatar for dean8710

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

Member Avatar for dean8710
0
102
Member Avatar for Aser Gado

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]

Member Avatar for Aser Gado
0
89
Member Avatar for dean8710

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 …

0
92
Member Avatar for dean8710

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

1
130
Member Avatar for clerisy
Member Avatar for dean8710

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 …

Member Avatar for dean8710
0
155
Member Avatar for nikuki
Member Avatar for dean8710
0
192
Member Avatar for dean8710

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

Member Avatar for dean8710
0
156
Member Avatar for dean8710

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

Member Avatar for cereal
0
121
Member Avatar for vinc88
Member Avatar for davy_yg
Member Avatar for rukshilag

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]

Member Avatar for dean8710
0
385
Member Avatar for raphie

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 …

Member Avatar for dean8710
0
2K
Member Avatar for dean8710

Can someone share the use of .htaccess and the sample of the code.. Is this .htaccess really usefull? :?:

Member Avatar for dean8710
0
343
Member Avatar for cliffcc
Member Avatar for dean8710

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 …

Member Avatar for stbuchok
0
273
Member Avatar for abhi10kumar
Member Avatar for divyakrishnan
Member Avatar for dean8710

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 …

Member Avatar for dean8710
0
192
Member Avatar for jithusdani

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

Member Avatar for dean8710
0
164
Member Avatar for dean8710

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

Member Avatar for dean8710
0
173
Member Avatar for OmniX

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

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for dean8710

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

Member Avatar for dean8710
0
146
Member Avatar for chris_j_haines
Member Avatar for jacksantho

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

Member Avatar for dean8710
0
319
Member Avatar for mrnutty

all the best, i also doing the internship program and i do not know either i will present to the director or not..huhuuhuh

Member Avatar for iAssistant
0
179
Member Avatar for dean8710

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:

Member Avatar for jingda
0
43
Member Avatar for AccurateAG
Member Avatar for obimobs

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 …

Member Avatar for dean8710
0
108
Member Avatar for ashokseo
Member Avatar for manzoor.ilahi77
Member Avatar for Cuzzie

hey, i also from malaysia, i am from PJ. nice to meet some guy from same country

Member Avatar for dean8710
0
169

The End.