320 Posted Topics
Re: Please post your table structure and the code with code tags that you are trying. This'll help us more to help you. | |
Re: [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>”; ?> … | |
Re: [url]http://www.w3schools.com/php/default.asp[/url] This is best for PHP beginners | |
Re: Post your DB structure here. It will be easy to analyze. | |
Re: [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 … | |
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. | |
Re: 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. | |
Re: 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. | |
Re: [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 … ![]() | |
Re: [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. | |
Re: Just echo your count value and see the result [CODE=php] echo "count=".$count = mysql_num_rows($namecheck); [/CODE] | |
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. | |
Re: As thanhtam3277 said, better use header() function after inserting the data. ![]() | |
Re: 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 … | |
Re: 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, … | |
Re: Try this [CODE=php] $mark=$Worksheet->Cells->Item($i,2); $marks = round($mark); echo $marks; [/CODE] | |
Re: 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] | |
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? | |
Re: See my post on this thread for datepicker. [url]http://www.daniweb.com/web-development/php/threads/365085[/url] | |
Re: Does the $colname_Recordset1 value come here? [CODE] echo $colname_Recordset1 = $_SERVER['QUERY_STRING']; [/CODE] | |
Re: 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. … | |
Re: 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 /> … | |
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. | |
how to add circle marker on google map by giving latitude,longitude and radius in KM? | |
Re: 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; … | |
Re: [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] | |
Re: Do you receive any error like this? [QUOTE] "Fatal error: Call to undefined function curl_init() in ....../xxxx.php [/QUOTE] | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: 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.... | |
Dear Frendz, How to find distance between two latitude and longitude points using php. | |
Re: 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 … | |
Re: 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 … | |
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); … | |
Re: 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 … | |
Re: 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. | |
Re: [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 = … | |
Re: [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. | |
Re: [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. | |
Hi Frendz, How to show all markers on google maps which are in different places? | |
Re: There is one process called SEO to improve your site rank. Go through the process of SEO. ![]() | |
|
The End.