320 Posted Topics

Member Avatar for dudzkie

Please post your table structure and the code with code tags that you are trying. This'll help us more to help you.

Member Avatar for vibhaJ
0
359
Member Avatar for sha1023012

[QUOTE=reksss;1581813]<? php /* Shuawna Norris June 13, 2011 Part two Working with money */ [COLOR="Red"]echo “<[/COLOR]body>[COLOR="red"]”;[/COLOR] echo ” <h1>Balance</h1>”; $balance=55.75; $newShirtCost=15.75; $earns=20.00; $bar=.55; echo ”<TABLE border=’1’>”; echo “<tr>"Starting balance:$balance";</tr>”; $balance= $balance -$newShirtCost; echo "<p>Purchase: Clothing Store:".sprintf("$%.2f",$balance)."</p>"; $balance=$balance+$earn; echo "<p>ATM Deposit:".sprintf("$%.2f",$balance)."</p>"; $balance=$balance/2; echo "<p>Balance after split with wife:".sprintf("$%.2f",$balance)."</p>" echo “</TABLE>”; ?> …

Member Avatar for karthik_ppts
0
143
Member Avatar for MasterGberry

[url]http://www.w3schools.com/php/default.asp[/url] This is best for PHP beginners

Member Avatar for chrishea
0
542
Member Avatar for sarz87
Member Avatar for altarek

[QUOTE=altarek;1572404]I have database entrys that have a date column ( mySQL date type ) in this format(2011-5-30). I want to compare that date with the current server date and with 3 days before that day, to automatically send an email to a specified address.[/QUOTE] [CODE] select * from tbl_name where …

Member Avatar for karthik_ppts
0
177
Member Avatar for karthik_ppts

Hi Frendz, How to check whether the given point(latitude,longitude) is in polyline or not using php? I have set of latitude and longitude points of polyline in my database.

Member Avatar for Narue
0
181
Member Avatar for saravanan@daniw

Pass the id of the row in query string with the next page link as follows. [CODE=php] <a href="apply.php?row_id=<? echo $item['id']; ?>">Apply</a> [/CODE] Using GET[] method get all the data of the row associated with that row_id and display in your required fields.

Member Avatar for karthik_ppts
0
75
Member Avatar for unversity top

View this thread for sending mail. [url]http://www.daniweb.com/web-development/php/threads/364290[/url] Please use code tags to post your codes which help for easy readability.

Member Avatar for karthik_ppts
0
175
Member Avatar for abusive

[QUOTE=abusive;1567022]But for file location there is a ":" After the hdd letter wont it attempt to split "C" and "\" ?[/QUOTE] In this case use explode function to split. The $part[0] is your Label ad the remaining parts are your value. You can use count() to find the umber of …

Member Avatar for diafol
0
292
Member Avatar for eduardc
Member Avatar for abhi10kumar

[QUOTE=abhi10kumar;1568222]I am no submitting form (i.e. no button usage), then How I can preserve the value of a control. I am using pagination.[/QUOTE] Please post your code here and mention where you required this functionality.

Member Avatar for ko ko
0
98
Member Avatar for kali Annan

Just echo your count value and see the result [CODE=php] echo "count=".$count = mysql_num_rows($namecheck); [/CODE]

Member Avatar for karthik_ppts
-1
163
Member Avatar for karthik_ppts

How to add control for marking area using points,lines and polygons on google map and how to store that area in mysql db? Becoz i need to give alert message when my vehicle cross that area in my vehicle tracking system.

Member Avatar for karthik_ppts
0
164
Member Avatar for veledrom

As thanhtam3277 said, better use header() function after inserting the data.

Member Avatar for diafol
0
179
Member Avatar for cliffcc

Use flag variable in the user's profile table of your database. When the user login to the system update the field with value 1 and update 0 when he/the log out from the system. Then display a green light icon if that field in database is 1 else show gray …

Member Avatar for rayidi
0
526
Member Avatar for jacob21

Try this [CODE=php] <?php if(isset($_POST["send"])) { sendSMS('999999999','Message','432322245','pass','xxxxxx'); } ?> <!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 Mail</title> </head> <body> <form action="" method="post" name="frm_mail"> <table> <tr> <td colspan="3" align="center"><input type="submit" name="send" value="send"/> </td> </tr> </table> </form> </body> </html> <?php function sendSMS($mobile, …

Member Avatar for karthik_ppts
0
7K
Member Avatar for jacksantho

Try this [CODE=php] $mark=$Worksheet->Cells->Item($i,2); $marks = round($mark); echo $marks; [/CODE]

Member Avatar for almostbob
0
207
Member Avatar for thijscream

Just define $countz as follows [CODE=php] $countz=0; while(list($count) = mysql_fetch_array($result, MYSQL_NUM)) { $countz = $count; } $count = number_format($countz / 10, 2); [/CODE]

Member Avatar for thijscream
0
169
Member Avatar for karthik_ppts

Hi frendz, In my vehicle tracking project, I need to draw the route (polyline) of my vehicle in google map. When the vehicle is moving away from that route, it should give alert msg. So how to specify the route line on google map?

Member Avatar for karthik_ppts
0
537
Member Avatar for jacob21
Member Avatar for Sinderone

See my post on this thread for datepicker. [url]http://www.daniweb.com/web-development/php/threads/365085[/url]

Member Avatar for karthik_ppts
0
66
Member Avatar for sharathg.satya
Member Avatar for lifeplayer
Member Avatar for phpDave

Does the $colname_Recordset1 value come here? [CODE] echo $colname_Recordset1 = $_SERVER['QUERY_STRING']; [/CODE]

Member Avatar for phpDave
0
126
Member Avatar for dineshsurve

Yes as SRocks said update query does not return any database row. So just replace the following line 38 [CODE=php] $result=mysql_query($query,$link); if(mysql_num_rows($result) ==1) //line no 38. { echo $UserID. ' , Your Password has Changed Successfully. <a href="WelcomeUser.php?PT=0">Back</a>'; } [/CODE] with [CODE] $result=mysql_query($query,$link); if($result) //line no 38. { echo $UserID. …

Member Avatar for vibhaJ
0
269
Member Avatar for holmiboii

Use the following code to send mail [CODE=php] <?php extract($_POST); if($submit) { $fromemail= "info@infernixe.com"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $fromemail \r\n"; $mailto = "admin@infernixe.com"; $subject= "Your Subject"; $message = '<center> <div> <label for="name"><strong><h1>Name:</h1></strong></label><br /> <br /> '.$contactname.' </div></center><br /> <center><div> <label for="phone"><strong><h1>Company:</h1></strong></label><br /> …

Member Avatar for holmiboii
0
370
Member Avatar for karthik_ppts

Hi Frendz, I need to include speedometer application in my vehicle tracking system. Actually the current speed of the vehicle is stored in database. I need to show that speed in analog speedometer. If anyone have experienced with speedometer application in php then help me.

Member Avatar for karthik_ppts
0
295
Member Avatar for karthik_ppts

how to add circle marker on google map by giving latitude,longitude and radius in KM?

Member Avatar for karthik_ppts
0
245
Member Avatar for ben.matthews18

Try this [CODE=php] <?php if(isset($_POST["send"])) { <-- Your Mail Code --> $msg="Mail has been sent successfully!"; } <form id="form1" name="form1" method="post" action=""> <table width="362" border="0" align="center" class="tbltxt"> <?php if(isset($msg) && $msg!="") { ?> <tr> <td height="30" colspan="2" style="color:#ff0000;"><?php echo $msg; ?></td> </tr> <?php } ?> <tr> <td height="30" colspan="2" style="color:#174AA8; …

Member Avatar for vibhaJ
0
524
Member Avatar for mangel.murti

[CODE=html] <body> <DIV align="center" id="prepage" style="position:fixed; left:0px; top:0px; height:122px; width:132px; margin-left:45%;margin-top:20%;"> <table width=100%><tr><td align="center"><img src="images/Processing.gif" border="0" alt="Processing" /></td></tr></table> </DIV> ------------ ------------ <input type="submit" name="search" id="search" value="Search" class="button" onclick="showProcessing()" /> </body> </html> <script type="text/javascript"> function showProcessing() { document.getElementById("prepage").style.display=''; } document.getElementById("prepage").style.display='none'; </script> [/CODE]

Member Avatar for mangel.murti
0
888
Member Avatar for TotoTitus

Do you receive any error like this? [QUOTE] "Fatal error: Call to undefined function curl_init() in ....../xxxx.php [/QUOTE]

Member Avatar for TotoTitus
0
2K
Member Avatar for abhi10kumar
Member Avatar for rpv_sen

If you need pop up means JS is the best way. You can use Js within PHP as follows [CODE=php] $pqty = $bdatam["sum(curr_qty)"]; $pamt = $bdatam["sum(curr_amount)"]; $btotal= $bgtqty+$pqty; echo '<script>alert("Tota="'.$btotal.')</script>'; [/CODE]

Member Avatar for rpv_sen
0
238
Member Avatar for prajesh2

There should be error in your query. Just echo your query as follows [CODE] echo "SELECT 'timestamp','name','email','message' FROM 'entries' ORDER BY 'timestamp' DESC"; $entries = mysql_query("SELECT 'timestamp','name','email','message' FROM 'entries' ORDER BY 'timestamp' DESC"); [/CODE] and in output page copy that query and paste it in the sql section of your …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for slrobinson1983

Yes As chrishea said its look like [CODE=php] <?php $duration="2:15"; $duration_arr=explode(":",$duration); $seconds=$duration_arr[0]*60+$duration_arr[1]; echo $seconds; ?> [/CODE]

Member Avatar for slrobinson1983
0
298
Member Avatar for jeordy

Echo out your query as follows [CODE=php] echo $query = "SELECT * FROM CLIENT WHERE id = '$id'"; [/CODE] Copy that query and place it in the SQL section of phpMyAdmin. Execute it and see what is the result....

Member Avatar for TySkby
0
148
Member Avatar for karthik_ppts
Member Avatar for karthik_ppts
-2
172
Member Avatar for happytogether

I used the following code to generate xls file from php code. I just share the code here. [CODE=php] $result=mysql_query("select * from tbl_sms order by id asc"); function xlsBOF() { echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); return; } function xlsEOF() { echo pack("ss", 0x0A, 0x00); return; } function …

Member Avatar for happytogether
0
874
Member Avatar for vishalpala
Member Avatar for RazorRamon

You can use like this [CODE=php] <?php function greeting() { if($greetings == hello) { echo "Hello"; } else { echo "goodbye"; } } [/CODE] [CODE=php] if($occupancy > 0) { greeting(); } else { echo "Nobody is home"; } ?> [/CODE] just remove the function keyword in function call and place …

Member Avatar for twiss
0
325
Member Avatar for karthik_ppts

Hi Frendz, I have placed my custom marker on google map in my application. But it displays default marker. Whats going wrong with this code? [CODE=javascript] var icon = new GIcon(); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1); icon.image = 'images/car_blue.png'; var marker = new GMarker(point, icon); …

Member Avatar for karthik_ppts
0
301
Member Avatar for vijaysoft1

This is the simplest form validation [CODE=javascript] <script type="text/javascript"> function validate() { if(document.frm_validaion.user.value=="") { alert("Enter Username!"); document.frm_validaion.user.focus(); return false; } if(document.getElementById("txtemail").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) { alert("Enter valid Email!"); document.getElementById("txtemail").focus(); return false; } } </script> [/CODE] Html code: [CODE=html] <form action="" method="post" name="frm_validaion" onsubmit="return validate();"> <table width="200" border="1"> <tr> <td>Username</td> <td>:</td> <td><input …

Member Avatar for ivan3510
0
948
Member Avatar for sathyarajmca

Templates are the design structure of a web page. Themes are the various color schema of a template. So one template can have many themes with different color.

Member Avatar for karthik_ppts
0
66
Member Avatar for abhi10kumar
Member Avatar for serdas

[CODE=javascript] var body = 'Reading Connect JS documentation'; FB.api('/me/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } }) [/CODE] This is javascript code. So you called that funnction in body onload. But [CODE=php] $args = …

Member Avatar for tomato.pgn
0
422
Member Avatar for azegurb

[CODE] define('INCLUDE_CHECK',true); [/CODE] This is called constant in php. this means INCLUDE_CHECK=true INCLUDE_CHECK value is true throughout the scope of this page.

Member Avatar for tomato.pgn
0
287
Member Avatar for programmer12

[QUOTE=programmer12;1544456]Yay! Thanks soooo much! It worked... lol I cant believe it took me that long just to figure out that the die was killin the script b.c it was turing negative... OMG Thanks![/QUOTE] Mark as solved if your problem is solved.

Member Avatar for karthik_ppts
0
175
Member Avatar for karthik_ppts
Member Avatar for karthik_ppts
0
92
Member Avatar for umeshMCA

There is one process called SEO to improve your site rank. Go through the process of SEO.

Member Avatar for diafol
0
167
Member Avatar for karthik_ppts
Member Avatar for EmilyJohnson
0
158

The End.