473,803 Members | 3,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help: Can you make this .php less than 1 month??

Hi. Can somebody PLEASE help. I have spent hours on this.. but I am a
total novice and can't seem to figure it out. Here is a .php script.
Right now, the
minimum amount of time (i.e. duration) allowed is 1 month. However, I
want to be able to reduce the minimum amount of time to 1 day (i.e.
24 hours) -- basically a 24 hour trial period.
Can somebody PLEASE PLEASE tell me what I need to change in this file
to do this? Here is a copy - thanks enormously in advance:
<html>
<head>
<title>Admin Panel</title>
<script language=JavaSc ript
src="../templates/javascript.js"
type="text/javascript"></script>
<link href="../templates/styles.css" rel="stylesheet "
type="text/css">
<style>
body {background-color:white;
font-family:verdana; font-size:11}
td {font-family:verdana; font-size:11}
input, select, textarea {border-width:1;
border-color:black;fon t-family:verdana; font-size:11}
.sub {background-color:#336699;
font-family:verdana; color:white;
font-size:11; font-weight:bold; border-width:1; border-color:black}
.TableHead {background-color:#336699;
font-family:verdana;
color:white; font-size:11; font-weight:bold;}
.RedLink {font-family:verdana; color:red;
font-size:11;
font-weight:bold; text-decoration:none }
a.RedLink:hover {text-decoration:unde rline}
a.GreenLink {font-family:verdana; color:green;
font-size:11;
font-weight:bold; text-decoration:none }
a.GreenLink:hov er {text-decoration:unde rline}
a.BlackLink {font-family:verdana; color:black;
font-size:11;
font-weight:bold; text-decoration:none }
a.BlackLink:hov er {text-decoration:unde rline}
a.BlueLink {font-family:verdana; color:blue;
font-size:11;
font-weight:bold; text-decoration:none }
a.BlueLink:hove r {text-decoration:unde rline}
</style>
<script>
function CheckProfile() {
if(document.Reg Form.p1.value== "")
{
window.alert('E nter your password,
please!');
document.RegFor m.p1.focus();
return false;
}
if(document.Reg Form.p2.value== "")
{
window.alert('C onfirm your password,
please!');
document.RegFor m.p2.focus();
return false;
}
if(document.Reg Form.p1.value != "" &&
document.RegFor m.p2.value !=
"" && document.RegFor m.p1.value != document.RegFor m.p2.value)
{
window.alert('E nter and confirm your
password again!');
document.RegFor m.p1.value="";
document.RegFor m.p2.value="";
document.RegFor m.p1.focus();
return false;
}
if(document.Reg Form.FirstName. value=="")
{
window.alert('E nter your First Name,
please!');
document.RegFor m.FirstName.foc us();
return false;
}
if(document.Reg Form.LastName.v alue=="")
{
window.alert('E nter your Last Name,
please!');
document.RegFor m.LastName.focu s();
return false;
}
if(document.Reg Form.address.va lue=="")
{
alert('Enter your address, please!');
document.RegFor m.address.focus ();
return false;
}
if(document.Reg Form.city.value =="")
{
alert('Enter your city, please!');
document.RegFor m.city.focus();
return false;
}
if(document.Reg Form.state.valu e=="")
{
alert('Enter your state, please!');
document.RegFor m.state.focus() ;
return false;
}
if(document.Reg Form.country.va lue=="")
{
alert('Select your country, please!');
document.RegFor m.country.focus ();
return false;
}
if(document.Reg Form.phone.valu e=="")
{
window.alert('E nter your Phone,
please!');
document.RegFor m.phone.focus() ;
return false;
}

if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3 })+$/.test(document. RegForm.em*ail. value))

{
return true;
}
alert("Invalid E-mail Address! Please
re-enter.");
document.RegFor m.email.focus() ;
return false;
}
</script>
</head>
<body>
<script>
function CheckNewPrice() {
if(document.f1. PackageName.val ue=="")
{
window.alert('E nter the new package name,
please!');
document.f1.Pac kageName.focus( );
return false;
}
if(document.f1. NewPrice.value= ="")
{
window.alert('E nter the new price value,
please!');
document.f1.New Price.focus();
return false;
}
if(document.f1. nDuration.value =="")
{
window.alert('S elect a duration period,
please!');
document.f1.nDu ration.focus();
return false;
}
if(document.f1. pLevel.value==" ")
{
window.alert('S elect a priority level,
please!');
document.f1.pLe vel.focus();
return false;
}
}
function CheckDelete() {
if(confirm('Are you sure you want to delete this
price?'))
{
return true;
}
else
{
return false;
}
}
</script>
<form method=post name=f1 onsubmit="retur n CheckNewPrice() ">
<table align=center>
<tr>
<td colspan=2 align=center class=TableHead >Enter a new
price</td>
</tr>
<tr>
<td>Package name:</td>
<td><input type=text name=PackageNam e maxlength=50></td>
</tr>
<tr>
<td>Price:</td>
<td><input type=text name=NewPrice size=6 maxlength=6></td>
</tr>
<tr>
<td>Duration: </td>
<td>
<select name=nDuration>
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select> months
</td>
</tr>
<tr>
<td>Priority Level:</td>
<td>
<select name="pLevel">
<option value=""></option>
<option value="1">1 - Standart</option>
<option value="2">2 - Bronze</option>
<option value="3">3 - Platinium</option>
<option value="4">4 - Gold</option>
<option value="5">5 - Premium</option>
</select>
</td>
</tr>
<tr>
<td> </td>
<td><input type=submit name=s1 value=Save class=sub></td>
</tr>
</table>
</form>
<table align=center width=650 cellspacing=0 bordercolor=bla ck
frame=below>
<tr>
<td class=TableHead width=200>Packa ge Name</td>
<td class=TableHead >Priority Level</td>
<td class=TableHead align=center>Du ration</td>
<td class=TableHead align=right>Pri ce</td>
<td class=TableHead align=center>Ac tion</td>
<tr>
<td>0</td>
<td>Premium</td>
<td align=center>1 month</td>
<td align=right>$ 0.00</td>
<td align=center><a class=GreenLink
href="PriceEdit .php?PriceID=4" >edit</a> | <a class=RedLink
href="PriceDele te.php?PriceID= 4" onclick="return
CheckDelete();" >delete</a></td>
</tr>
<tr>
<td>Shake Up</td>
<td>Gold</td>
<td align=center>2 months</td>
<td align=right>$ 34.95</td>
<td align=center><a class=GreenLink
href="PriceEdit .php?PriceID=6" >edit</a> | <a class=RedLink
href="PriceDele te.php?PriceID= 6" onclick="return
CheckDelete();" >delete</a></td>
</tr>
<tr>
<td>Grow Up</td>
<td>Platinium </td>
<td align=center>1 month</td>
<td align=right>$ 25.00</td>
<td align=center><a class=GreenLink
href="PriceEdit .php?PriceID=5" >edit</a> | <a class=RedLink
href="PriceDele te.php?PriceID= 5" onclick="return
CheckDelete();" >delete</a></td>
</tr>
</table>
<br><br>

PS: Here are the locations of the 2 .php files that I think you may
need to look at:
http://findthatlawyer.com/siteadmin/PriceEdit.php
http://findthatlawyer.com/siteadmin/SettingsPrices.php

If you could solve this for me, I'd VERY much appreciate it. Thanks in
advance for your time.

Dec 7 '05 #1
7 1856
First and foremost, thank you ENORMOUSLY for taking the time/trouble of
responding to my question. Unfortunately, I am a total novice and even
after looking at your solution, I unfortunately have no idea where the
heck it goes. Um, I hate to ask, but is there any way possible for you
to copy/insert that line in the appropriate place:

$days=1; $endtime = time() + $days * 24 * 3600;

I am not sure where exactly it goes.. and it seems like even after I
insert it, I'm likely going to need to add something else somewhere to
enable me the ability to select the 24 hour period instead of the 1 -
12 month options. For your convenience, here are the links to the 2
..php files that I THINK may have to be modified. Again, I really can't
thank you enough.. and if you decide not to respond, honestly... thanks
again for your time... I'm certainly going to forward your answer to
somebody (once I find them) who can insert this 'stuff' in the right
place..

Here are the locations of the 2 .php files that I think you may
need to look at:
http://findthatlawyer.com/siteadmin/PriceEdit.php
http://findthatlawyer.com/siteadmin/SettingsPrices.php

Very best regards & happy holidays.

:)

Dec 7 '05 #2
PS: Here is my email incase it is easier to communicate and/or
possibly send me the modified .php file: pu*****@NOSPAMa tt.net

Remove "NOSPAM" from the email.

Dec 7 '05 #3
I also looked at the .php files noted above.. it does tell you how much
time is left before it is going to expire.. so I know the .php file
will automatically expire.. my problem is, I want it to be able to
offer a free trial for 24 days (instead of 1 month).. once that is
done, I believe it will expire automatically.. .

The easiest way to see the whole script/site I'm working on is at:
www.FindThatLawyer.com

Feel free to make up/register anything you want to see how it works..
once you register, you can select the free 1 month trial (which I want
modified to 24 hours). Thanks again for ANY help.

Dec 7 '05 #4
"Novice Computer User" <at***********@ hotmail.com> wrote:

Hi. Can somebody PLEASE help. I have spent hours on this.. but I am a
total novice and can't seem to figure it out. Here is a .php script.
Right now, the
minimum amount of time (i.e. duration) allowed is 1 month. However, I
want to be able to reduce the minimum amount of time to 1 day (i.e.
24 hours) -- basically a 24 hour trial period.

Can somebody PLEASE PLEASE tell me what I need to change in this file
to do this?
Nothing. The page you posted is not enforcing the time limitation. That's
being done in some other file. You could certainly change the wording here
to refer to days instead of months, but the enforcement is happening
elsewhere.
PS: Here are the locations of the 2 .php files that I think you may
need to look at:
http://findthatlawyer.com/siteadmin/PriceEdit.php
http://findthatlawyer.com/siteadmin/SettingsPrices.php


We can't look at PHP code that way. When we request those pages, it
EXECUTES the code and returns the HTML results to us.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Dec 8 '05 #5
Tim Roberts wrote:
"Novice Computer User" <at***********@ hotmail.com> wrote:
Hi. Can somebody PLEASE help. I have spent hours on this.. but I am a
total novice and can't seem to figure it out. Here is a .php script.
Right now, the
minimum amount of time (i.e. duration) allowed is 1 month. However, I
want to be able to reduce the minimum amount of time to 1 day (i.e.
24 hours) -- basically a 24 hour trial period.

Can somebody PLEASE PLEASE tell me what I need to change in this file
to do this?

Nothing. The page you posted is not enforcing the time limitation. That's
being done in some other file. You could certainly change the wording here
to refer to days instead of months, but the enforcement is happening
elsewhere.

PS: Here are the locations of the 2 .php files that I think you may
need to look at:
http://findthatlawyer.com/siteadmin/PriceEdit.php
http://findthatlawyer.com/siteadmin/SettingsPrices.php

We can't look at PHP code that way. When we request those pages, it
EXECUTES the code and returns the HTML results to us.


Indeed. If you are going to ask a question about PHP in a PHP forum, you
really need to send us the relevant PHP code.
What you have sent is an entire HTML document that does not contain a
single atom of PHP!

Colin
Dec 8 '05 #6
Ok.. Thanks for the info.. I didn't even know I was looking at the
wrong page.. I THINK this is correct page that I need to modify to
reduce the 1 month option to 24 hours. I copied/pasted the .php file
here -- if you can figure out a way to modify the 1 month limit to 24
hours -- or even 1 hour (whichever is easiest is fine with me), PLEASE
let me know.. thanks greatly:

<?
require_once(". ./conn.php");
require_once(". ./includes.php");
require_once("a ccess.php");

include_once("L eftStyles.php") ;

?>

<script>
function CheckNewPrice() {

if(document.f1. PackageName.val ue=="")
{
window.alert('E nter the new package name, please!');
document.f1.Pac kageName.focus( );
return false;
}

if(document.f1. NewPrice.value= ="")
{
window.alert('E nter the new price value, please!');
document.f1.New Price.focus();
return false;
}

if(document.f1. nDuration.value =="")
{
window.alert('S elect a duration period, please!');
document.f1.nDu ration.focus();
return false;
}

if(document.f1. pLevel.value==" ")
{
window.alert('S elect a priority level, please!');
document.f1.pLe vel.focus();
return false;
}

}

function CheckDelete() {

if(confirm('Are you sure you want to delete this price?'))
{
return true;
}
else
{
return false;
}

}

</script>

<form method=post name=f1 onsubmit="retur n CheckNewPrice() ">

<table align=center>
<tr>
<td colspan=2 align=center class=TableHead >Enter a new price</td>
</tr>

<tr>
<td>Package name:</td>
<td><input type=text name=PackageNam e maxlength=50></td>
</tr>
<tr>
<td>Price:</td>
<td><input type=text name=NewPrice size=6 maxlength=6></td>
</tr>

<tr>
<td>Duration: </td>
<td>
<select name=nDuration>
<option value=""></option>
<?
for($i = '1'; $i <= '12'; $i++)
{
echo "<option value=\"$i\">$i </option>\n";
}
?>
</select> months
</td>
</tr>

<tr>
<td>Priority Level:</td>
<td>
<select name="pLevel">
<option value=""></option>
<?
//create the Priority level select menu
$q1 = "select * from legal_priority order by PriorityLevel asc ";
$r1 = mysql_query($q1 ) or die(mysql_error ());
while($a1 = mysql_fetch_arr ay($r1))
{
echo "<option value=\"$a1[PriorityLevel]\">$a1[PriorityLevel] -
$a1[PriorityName]</option>\n\t";
}
?>
</select>
</td>
</tr>

<tr>
<td>&nbsp;</td>
<td><input type=submit name=s1 value=Save class=sub></td>
</tr>

</table>

</form>

<?

if(isset($_POST[s1]))
{
$q1 = "insert into legal_prices set
PackageName = '$_POST[PackageName]',
PriceValue = '$_POST[NewPrice]',
Duration = '$_POST[nDuration]',
PriorityLevel = '$_POST[pLevel]' ";

mysql_query($q1 ) or die(mysql_error ());
}

//show prices
$q1 = "select * from legal_prices, legal_priority where
legal_prices.Pr iorityLevel = legal_priority. PriorityLevel order by
legal_prices.Pr iorityLevel desc";
$r1 = mysql_query($q1 ) or die(mysql_error ());

if(mysql_num_ro ws($r1) == '0')
{
exit();
}

?>

<table align=center width=650 cellspacing=0 bordercolor=bla ck
frame=below>
<tr>
<td class=TableHead width=200>Packa ge Name</td>
<td class=TableHead >Priority Level</td>
<td class=TableHead align=center>Du ration</td>
<td class=TableHead align=right>Pri ce</td>
<td class=TableHead align=center>Ac tion</td>

<?
while($a1 = mysql_fetch_arr ay($r1))
{
if($a1[Duration] > '1')
{
$MyDuration = $a1[Duration]." months";
}
else
{
$MyDuration = $a1[Duration]." month";
}

echo
"<tr>\n\t<td>$a 1[PackageName]</td>\n\t<td>$a1[PriorityName]</td>\n\t<td
align=center>$M yDuration</td>\n\t<td align=right>$as et[currency_sign]
$a1[PriceValue]</td>\n\t<td align=center><a class=GreenLink
href=\"PriceEdi t.php?PriceID=$ a1[PriceID]\">edit</a> | <a class=RedLink
href=\"PriceDel ete.php?PriceID =$a1[PriceID]\" onclick=\"retur n
CheckDelete();\ ">delete</a></td>\n</tr>\n\n ";
}

echo "</table>\n\n<br>< br>";
?>

Dec 8 '05 #7
Novice Computer User wrote:
Ok.. Thanks for the info.. I didn't even know I was looking at the
wrong page.. I THINK this is correct page that I need to modify to
reduce the 1 month option to 24 hours. I copied/pasted the .php file
here -- if you can figure out a way to modify the 1 month limit to 24
hours -- or even 1 hour (whichever is easiest is fine with me), PLEASE
let me know.. thanks greatly:

<?
require_once(". ./conn.php");
require_once(". ./includes.php");
require_once("a ccess.php");

include_once("L eftStyles.php") ;

?>

<script>
function CheckNewPrice() {

if(document.f1. PackageName.val ue=="")
{
window.alert('E nter the new package name, please!');
document.f1.Pac kageName.focus( );
return false;
}

if(document.f1. NewPrice.value= ="")
{
window.alert('E nter the new price value, please!');
document.f1.New Price.focus();
return false;
}

if(document.f1. nDuration.value =="")
{
window.alert('S elect a duration period, please!');
document.f1.nDu ration.focus();
return false;
}

if(document.f1. pLevel.value==" ")
{
window.alert('S elect a priority level, please!');
document.f1.pLe vel.focus();
return false;
}

}

function CheckDelete() {

if(confirm('Are you sure you want to delete this price?'))
{
return true;
}
else
{
return false;
}

}

</script>

<form method=post name=f1 onsubmit="retur n CheckNewPrice() ">

<table align=center>
<tr>
<td colspan=2 align=center class=TableHead >Enter a new price</td>
</tr>

<tr>
<td>Package name:</td>
<td><input type=text name=PackageNam e maxlength=50></td>
</tr>
<tr>
<td>Price:</td>
<td><input type=text name=NewPrice size=6 maxlength=6></td>
</tr>

<tr>
<td>Duration: </td>
<td>
<select name=nDuration>
<option value=""></option>
<?
for($i = '1'; $i <= '12'; $i++)
{
echo "<option value=\"$i\">$i </option>\n";
}
?>
</select> months
</td>
</tr>

<tr>
<td>Priority Level:</td>
<td>
<select name="pLevel">
<option value=""></option>
<?
//create the Priority level select menu
$q1 = "select * from legal_priority order by PriorityLevel asc ";
$r1 = mysql_query($q1 ) or die(mysql_error ());
while($a1 = mysql_fetch_arr ay($r1))
{
echo "<option value=\"$a1[PriorityLevel]\">$a1[PriorityLevel] -
$a1[PriorityName]</option>\n\t";
}
?>
</select>
</td>
</tr>

<tr>
<td>&nbsp;</td>
<td><input type=submit name=s1 value=Save class=sub></td>
</tr>

</table>

</form>

<?

if(isset($_POST[s1]))
{
$q1 = "insert into legal_prices set
PackageName = '$_POST[PackageName]',
PriceValue = '$_POST[NewPrice]',
Duration = '$_POST[nDuration]',
PriorityLevel = '$_POST[pLevel]' ";

mysql_query($q1 ) or die(mysql_error ());
}

//show prices
$q1 = "select * from legal_prices, legal_priority where
legal_prices.Pr iorityLevel = legal_priority. PriorityLevel order by
legal_prices.Pr iorityLevel desc";
$r1 = mysql_query($q1 ) or die(mysql_error ());

if(mysql_num_ro ws($r1) == '0')
{
exit();
}

?>

<table align=center width=650 cellspacing=0 bordercolor=bla ck
frame=below>
<tr>
<td class=TableHead width=200>Packa ge Name</td>
<td class=TableHead >Priority Level</td>
<td class=TableHead align=center>Du ration</td>
<td class=TableHead align=right>Pri ce</td>
<td class=TableHead align=center>Ac tion</td>

<?
while($a1 = mysql_fetch_arr ay($r1))
{
if($a1[Duration] > '1')
{
$MyDuration = $a1[Duration]." months";
}
else
{
$MyDuration = $a1[Duration]." month";
}

echo
"<tr>\n\t<td>$a 1[PackageName]</td>\n\t<td>$a1[PriorityName]</td>\n\t<td
align=center>$M yDuration</td>\n\t<td align=right>$as et[currency_sign]
$a1[PriceValue]</td>\n\t<td align=center><a class=GreenLink
href=\"PriceEdi t.php?PriceID=$ a1[PriceID]\">edit</a> | <a class=RedLink
href=\"PriceDel ete.php?PriceID =$a1[PriceID]\" onclick=\"retur n
CheckDelete();\ ">delete</a></td>\n</tr>\n\n ";
}

echo "</table>\n\n<br>< br>";
?>
You say you have spent HOURS on this question. I don't wish to seem
unkind, but what did you spend hours doing?

Reading an introduction to HTML might help, as would trying to
understand what the code does.

ALL that the code above does with Duration is:

<select name=nDuration> <option value=""></option>
<?
for($i = '1'; $i <= '12'; $i++)
{
echo "<option value=\"$i\">$i </option>\n";
}
?>
</select> months
which creates a drop-down menu offering the numbers 1-12. (The only PHP
here is the loop generating the entries).

On going to the edit page (I think, I haven't checked the details), it
saves the data in the database:
$q1 = "insert into legal_prices set
PackageName = '$_POST[PackageName]',
PriceValue = '$_POST[NewPrice]',
Duration = '$_POST[nDuration]',
PriorityLevel = '$_POST[pLevel]' ";
Then it displays it for the user to decide what to do. First it does: if($a1[Duration] > '1')
{
$MyDuration = $a1[Duration]." months";
}
else
{
$MyDuration = $a1[Duration]." month";
}


which gets the duration out the database and sets the variable
$MyDuration to "1 month" or "6 months" etc.
Then it displays it to the user offering 'edit' and 'delete'.

As regards the code above, this is all that happens to it, and you can
quite happily change the word 'month' to 'day' and the value '12' to
'24' and it will suddenly offer you 1-24 days instead of 1-12 months.
(You'll presumably need to make a corresponding change to the original
HTML file you posted, but I'll leave the details as an exercise).
However, you haven't shown us what it does with that duration value - I
guess that's in some other script somewhere that gets it out of the
database - and since it's about a duration that expires, I would guess
that it's not a web script at all, but another script or program that is
run every month. (This might be manual but is more likely to be
automatic. If you are on a unix-like system it's probably run by 'cron',
on Windows there's something called ? Windows scheduler ? )
Presumably that script does some date calculation, and you'll have to
tell it that duration has suddenly become days rather than months. Oh,
and you'll have to arrange to run it every day.

Colin
Dec 9 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3828
by: Philip Mette | last post by:
I am begginner at best so I hope someone that is better can help. I have a stored procedure that updates a view that I wrote using 2 cursors.(Kind of a Inner Loop) I wrote it this way Because I couldn't do it using reqular transact SQL. The problem is that this procedure is taking longer and longer to run. Up to 5 hours now! It is anaylizing about 30,000 records. I think partly because we add new records every month. The procedure...
5
3004
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig <<<<<<<<<<<<<<CODE>>>>>>>>>>>>>>>> <html>
1
1858
by: Colm O'Brien | last post by:
I have a field called year end month where records hold the month financial year end for accounts is stored. i need to query the data base and return all records where year end month is less than or equal to user input (eg april) any ideas
5
2002
by: Novice Computer User | last post by:
Hi. Can somebody PLEASE help. Here is a .php script. Right now, the minimum amount of time (i.e. duration) allowed is 1 month. However, I want to be able to reduce the minimum amount of time to 2 days (i.e. 48 hours). Can somebody PLEASE PLEASE tell me what I need to change in this file to do this? Here is a copy - thanks enormously in advance: <html> <head>
2
1466
by: coinjo | last post by:
#include<fstream> #include<iostream> #include<cstring> using namespace std; struct date { int day, month, year; };
21
1835
by: Marina | last post by:
I've spent 2 months working on this Access 2003 db, get something done and then the 'boss' wants something different that what was originally stated, or wants to add this or that. It's been nuts, but it's finally done. Now he has decided, after telling me that this is what he didn't want at the beginning of the project, that he wants to be able to access the db online and to create one that he can have uploaded to a server and work on...
11
1700
by: samuelberthelot | last post by:
Hi, I've got 3 input HTML (dropdown lists) on my page. One for selecting a Month, one for the day, one for the year. Very simple... My problem is that I'd like to update the Days one according to what month was selected (31,30 or 28 days). I should use a simple javascript to populate the input boxes, but I'm a bit new to javascript. Please can you help me ?
1
2652
by: tgregg6 | last post by:
These problems have been given me troble for a couple of days please help me!!! problem 1: This program calculates the charges for DVD rentals where current releases cost $3.5 and all others cast $2.50. If a customer rents several DVDs, every third one is free. You need to tell the user what their total cost of rental whould be based on the amount of Dvds the user enters(decides to rent). problem 2: Write a program that asks the user...
7
2232
by: John | last post by:
I have a table with amongst others 2 fields: DateIn and DateOut. The idea is to make a chart that shows the average number of days it takes for a request to be answered. I'm planning to make a linechart with on the x-axis the months (starting with the current month and ending 11 months later) and on the y-axis the average number of days (DateOut minus DateIn). So the chart will show the average number of days per month. How would I go...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.