School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store | FORUMS

 

 (#938 2006-02-10 13:03:31) Post Reply
Page 0 1 2 3 4 5

prezbedard
Need To Set


Enrolled: Jan 2006
Posts: 4
AP: 1

Ok it works but I am not sure this is the exact format it was asking for

I used variables for day of the week url and concatination to print the string descriptions.



<?
/* This script uses 2 varibles
Day of the week
URL x7

*/

$today=date("w");

$Sunday=('<a href="http://www.google.com">google.com</a>');

$Monday=('<a href="http://www.icertify.net">icertify.net</a>');
$Mondayd=("Putting the I in Integrity");
$Tuesday=('<a href="http://www.Salemcyberspace.org">salemcyberspace.org</a>');
$Tuesdayd=("Bridging the digital divide");
$Wednesday=('<a href="http://www.northshorecap.org">northshorcap.org</a>');
$Wednesdayd=("NSCAP");
$Thursday=('<a href="http://www.bedardinc.com">bedardinc.com</a>');
$Thursdayd=("My Site");
$Friday=('<a href="http://www.foodsubs.com">foodsubs.com</a>');
$Fridayd=("Cooking site");
$Saturday=('<a href="http://www.patriotsweekly.com">patriotsweekly.com</a>');
$Saturdayd=("The Patriots");

switch (
$today)
{
case
0:
print(
$Sunday ." The Best Search Engine");
break;
case
1:
print(
$Monday ." Putting the I in Integrity");
case
2:
break;
print(
$Tuesday ." Bridging the digital divide");
case
3:

print(
$Wednesday ." NSCAP");
break;
case
4:
print(
$Thursday ." My Site");
break;
case
5:
print(
$Friday ." Cooking site");
break;
case
6:
print(
$Saturday ." The Patriots");
break;
default:
print(
" None of the above");
}




?>



 

 (#942 2006-02-19 03:45:13) Post Reply
Page 0 1 2 3 4 5

anti
Need To Set


Enrolled: Feb 2006
Posts: 11
AP: 1



<html>
<head>
<title>Lesson #2 Week #2 Basic TO-DO assignment</title>
<head>
<body>
<?
/*
This will be the start of my switching code
I will difine the the day variable links and discritions of the links First
*/

$today = date("w"); //this line gets numeric value of the day
$dayof = date("l"); // this line get letter Value of the day readable
// Then I write the switch code itself
switch($today){
case
"0": //sunday
$link = "<a href='http://www.google.com'>www.google.com</a>"; // this one set the link
$link_disc = "This is the best search engine out there"; //this is the discription of the link
break;
case
"1": //Monday
$link = "<a href='http://www.mozilla.org'>www.mozilla.org</a>"; // this one set the link
$link_disc = "The makers of Fire FOx Web Browser"; //this is the discription of the link
case "2": //Tuesday
$link = "<a href='http://www.scriptschool.com'>www.scriptschool.com</a>"; // this one set the link
$link_disc = "Learn the best way hands on Training"; //this is the discription of the link
case "3": //Wednesday
$link = "<a href='http://www.retestrak.nl'>www.retestrak.nl</a>"; // this one set the link
$link_disc = "Community about learning unattended installs and other stuff"; //this is the discription of the link
case "4": //Thursday
$link = "<a href='http://www.playboy.com'>www.playboy.com</a>"; // this one set the link
$link_disc = "Men's Magazine Woooo Girly Mag's"; //this is the discription of the link
case "5": //Friday
$link = "<a href='http://www.tgifridays.com'>www.tgifridays.com</a>"; // this one set the link
$link_disc = "Thank God It's FRIDAY"; //this is the discription of the link
case "5": //Saturday
$link = "<a href='http://www.playboy.com'>www.playboy.com</a>"; // this one set the link
$link_disc = "Men's Magazine Woooo Girly Mag's"; //this is the discription of the link

default:
Print(
"houston we have a problem");
}
Print(
"Web site for $dayof: <strong>$link</strong> <br /><b>$link_disc</b>");
?>
</body>
</html>


 

 (#943 2006-02-19 04:31:01) Post Reply
Page 0 1 2 3 4 5

anti
Need To Set


Enrolled: Feb 2006
Posts: 11
AP: 1



<html>
<head>
<title>Lesson #2 Week #2 Basic TO-DO assignment</title>
<head>
<body>
<?
/*
*edit* Second attempt I had written 2 case"5" and forgot some breaks In my first post this should be it now I hope!! *end of edit*
This will be the start of my switching code
I will define the day variable links and descriptions of the links first
*/

$today = date("w"); //this line gets numeric value of the day
$dayof = date("l"); // this line get letter Value of the day readable
// Then I write the switch code itself
switch($today){
case
"0": //Sunday
$link = "<a href='http://www.google.com'>www.google.com</a>"; // this one set the link
$link_disc = "This is the best search engine out there"; //this is the description of the link
break;
case
"1": //Monday
$link = "<a href='http://www.mozilla.org'>www.mozilla.org</a>"; // this one set the link
$link_disc = "The makers of Fire Fox Web Browser"; //this is the description of the link
break;
case
"2": //Tuesday
$link = "<a href='http://www.scriptschool.com'>www.scriptschool.com</a>"; // this one set the link
$link_disc = "Learn the best way hands on Training"; //this is the description of the link
break;
case
"3": //Wednesday
$link = "<a href='http://www.retestrak.nl'>www.retestrak.nl</a>"; // this one set the link
$link_disc = "Community about learning unattended installs and other stuff"; //this is the description of the link
break;
case
"4": //Thursday
$link = "<a href='http://www.playboy.com'>www.playboy.com</a>"; // this one set the link
$link_disc = "Men's Magazine Woooo Girly Mag's"; //this is the description of the link
break;
case
"5": //Friday
$link = "<a href='http://www.tgifridays.com'>www.tgifridays.com</a>"; // this one set the link
$link_disc = "Thank God It's FRIDAY"; //this is the description of the link
break;
case
"6": //Saturday
$link = "<a href='http://www.playboy.com'>www.playboy.com</a>"; // this one set the link
$link_disc = "Men's Magazine Woooo Girly Mag's"; //this is the description of the link
break;
default:
Print(
"houston we have a problem");
}
Print(
"Web site for $dayof: <strong>$link</strong> <br /><b>$link_disc</b>");
?>
</body>
</html>


 

 (#953 2006-02-26 18:50:59) Post Reply
Page 0 1 2 3 4 5

DrgnLdy
Need To Set


Enrolled: Jan 2006
Posts: 3
AP: 1

OK....a simple week 2 just changing urls for each day - worked good on second try. Now I'm going for a pic of the day - any advice or assistance would be appreciated



<html>
<head>
<title> Assignment 2 </title>
</head>
new website daily
<body>
<br>
<?php
$today
=date("w");//set numerical date 0-6
$wday=date("l");//sets sun-sat
//daily website line 11
$sun="<a href=http://www.google.com>Google</a>";
$mon="<a href=http://www.yahoo.com>Yahoo</a>";
$tues="<a href=http://www.hotmail.com>hotmail</a>";
$wed="<a href=http://www.boxerjam.com>boxerjam</a>";
$thur="<a href=http://www.nascar.com><Nascar/a>";
$fri="<a href=http://www.diynet.com>DIYnet</a>";
$sat="<a href=http://www.hgtv.com>HGTV</a>";
//switches to right day
switch($today)
//line 20
{
case
"0":
echo(
$sun);
break;
case
"1":
echo(
$mon);
break;
case
"2":
echo(
$tues);
break;
case
"3":
echo(
$wed);
break;
case
"4":
echo(
$thur);
break;
case
"5":
echo(
$fri);
break;
case
"6":
echo(
$sat);
break;
default:
//when nothing is true
}
?>





 

 (#955 2006-03-01 01:06:39) Post Reply
Page 0 1 2 3 4 5

mrgoodrat
Need To Set


Enrolled: Feb 2006
Posts: 3
AP: 1

<?
//Get Date
$today = date("w");

//Select URL
switch($today) {
case 1:
$myLink = "www.mrgoodrat.com";
$myDesc = "Mr. Goodrat Web Development";
break; // escape the switch since we had a true result
case 2:
$myLink = "www.russellblock.com";
$myDesc = "Russell Block Paintings and Drawings";
break; // escape the switch since we had a true result
case 3:
$myLink = "www.brooksideglen.org";
$myDesc = "Brookside Glen Community";
break; // escape the switch since we had a true result
case 4:
$myLink = "www.milliondollaradventures.com";
$myDesc = "Million Dollar Adventures";
break; // escape the switch since we had a true result
case 5:
$myLink = "www.puddlebug.com";
$myDesc = "Puddle Bug Creations of Whimsy";
break; // escape the switch since we had a true result
case 6:
$myLink = "www.sssra.org";
$myDesc = "South Suburban Special Recreation Association";
break; // escape the switch since we had a true result
case 7:
$myLink = "www.marleycandles.com";
$myDesc = "Marley Candles Since 1965";
break; // escape the switch since we had a true result
default:
// when nothing is true do this
}

//Display Result
print ($myDesc."<br><a href=\"http://$myLink\" target=\"newWin\">".$myLink."</a>");
?>

 

 (#960 2006-03-07 13:33:43) Post Reply
Page 0 1 2 3 4 5

ZeusXena
Need To Set


Enrolled: Mar 2006
Posts: 7
AP: 1

I did the week 2 basic assignment.

Ready For Three I hope.

Any comments are Weclome

I Can't see this colorize checkbox



<html>
<head>

<title>Week 2 Assignment</title>

</head>

<body>





<center>

<table border="3" align="center"cellspacing="10" cellpadding="12"><tr><td bgcolor="#88ffcc">
<?php

$today
= date('w'); //numeric value of the day
$today2=date('l'); //letter Value of the day readable
$macaveli = "Today 's Link is";

//Select URL
switch($today){

case
1://Monday

$site = "The Greek news paper :<a href='http://www.patris.gr/'>Patris.gr</a>";

break;


case
2:

$site = "Zeus The Rottweiler :<a href='http://www.zeus-site.com/'>Welcome To Zeus</a>";

break;



case
3:


$site = "The Best Search Engine :<a href='http://www.yahoo.co.uk/'>Yahoo.com</a>";

break;


case
4:



$site ="Choose greece for holidays :<a href='http://www.greece.com/'>Greece</a>";
break;

case
5:


$site = "2 Pac s Web site :<a href='http://www.macaveli.com/'>2 Pac s</a>";


break;

case
6:


$site = "Zeus The Rottweiler Photos :<a href='http://www.zeus-site.com/photos.htm/'>Zeus The Rottweiler 2</a>";

break;

case
0:



$site = "Are You Thirsty :<a href='http:www.water.com'>Water</a>";


break;


default:
/*
*
*
*
* //(*_*)\\

If nothing its truth?



//(*_*)\\
*
*
*
*
*
*
*/
echo "The day is Thousand Miles Away";



}


print(
"Is $today2'''and'''$macaveli<br>$site")



?>
</td></tr></table>

</center>



</body>

</html>





Working Url <a href='http://www.http://www.zeus-site.com/week2.php'>Working URL</A>







 

 (#961 2006-03-11 05:20:31) Post Reply
Page 0 1 2 3 4 5

ZeusXena
Need To Set


Enrolled: Mar 2006
Posts: 7
AP: 1

Hi, Sorry to post twice but I haved made a mistake.

/*
«»*«»*«»*«»*«»*«»*«»*«»*«»
«»*«»*«»*«»*«»*«»*«»*«»*«»

‹(•¿•)›‹(•¿•)›‹(•¿•)›‹(•¿•)›

Working Url <a href='http://www.http://www.zeus-site.com/week2.php'>Working URL</A>

‹(•¿•)›‹(•¿•)›‹(•¿•)›‹(•¿•)›
«»*«»*«»*«»*«»*«»*«»*«»*«»
«»*«»*«»*«»*«»*«»*«»*«»*«»
*/

This should be?

<a target="_blank" href="http://www.zeus-site.com/week2.php">Working Url</a>



 

 (#964 2006-03-20 03:18:47) Post Reply
Page 0 1 2 3 4 5

Russell
Need To Set


Enrolled: Mar 2006
Posts: 19
AP: 1

<?
$day=date("w");
switch("$day")
{
case "0":
$url="http://www.sunday.com";
$description="Sundays link";
break;
case "1":
$url="http://www.monday.com";
$description="Monday's link";
break;
case "2":
$url="http://www.tuesday.com";
$description="Tuesday's link";
break;
case "3":
$url="http://www.wednesday.com";
$description="Wednesday's link";
break;
case "4":
$url="http://www.thursday.com";
$description="Thursday's link";
break;
case "5":
$url="http://www.friday.com";
$description="Friday's link";
break;
case "6":
$url="http://www.saturday.com";
$description="Saturday's link";
break;
}
print("Welcome! ".$description." is <a href=\"".$url."\">Here</a>. Enjoy!");
?>

 

 (#987 2006-04-06 17:41:02) Post Reply
Page 0 1 2 3 4 5

GH0ST
Need To Set


Enrolled: Apr 2006
Posts: 2
AP: 1

I need help, could someone tell my why my URL's always start with the directory of my server that the script is in? http://www.whatever.com/blah/w....whatswrong.com
this has been killing me. Any clue what i did wrong?




<?php
//START OF PHP
$dayoftheweek=date("w");//I AM GETTING THE NUMERIC DATE 0-6

$inform=(" Here is your website for: ");// My text info information here

// BELOW IS MY VARIABLE FOR DESCRIPTION
$sundesc=(" This is the website for sunday");
$mondesc=(" This is the website for monday");
$tuedesc=(" This is the website for tuesday");
$weddesc=(" This is the website for wednesday");
$thurdesc=(" This is the website for thursday");
$fridesc=(" This is the website friday");
$satdesc=(" This is the website for saturday");

//HERE I AM USING THE SWITCH COMMAND TO FIND THE DAY AND PRINT THE URL

switch($dayoftheweek) //HERE IS THE SWITCH COMMAND
{
case
"0":
$website=("<A HREF=\"www.meetandswing.com/friends.html\">" );//SUNDAY URL
$info=("$sundesc");
break;
case
"1";
$website=("<A HREF=\"www.meetandswing.com/public_html\">" );//MONDAY URL
$info("$mondesc");
break;
case
"2";
$website=("<A HREF=\"www.meetandswing.com/exchange\">" );//TUESDAY URL
$info=("$tuedesc");
break;
case
"3";
$website=("<A HREF=\"www.meetandswing.com/chat\">" );//WEDNESDAY URL
$info=("$weddesc");
break;
case
"4";
$website=("<a href=\"www.meetandswing.com/meetandswingforum\"</a>");//THURSDAY URL
$info=("$thurdesc");
break;
case
"5";
$website=("<A HREF=\"www.yahoo.com\">" );//FRIDAY URL
$info=("$fridesc");
break;
case
"6";
$website=("<A HREF=\"www.meetandswing.com/1227\">" );//SATURDAY URL
$info=("$satdesc");
break;



}
print(
" $inform $website $info");
?>



 

 (#988 2006-04-11 10:07:32) Post Reply
Page 0 1 2 3 4 5

lestat
Need To Set


Enrolled: Jan 2004
Posts: 44
AP: 1

Ghost, I'm not sure I understand your question. If your scipt is located at http://yourdomain.com/folder then thats where your scripts will run.

 

 (#990 2006-04-19 12:28:35) Post Reply
Page 0 1 2 3 4 5

isiahw1
Need To Set


Enrolled: Apr 2006
Posts: 2
AP: 1



<html>
<head>
<title>Weeek 2 Lesson</title>
</head>
<body>
<?php
$date_full
= date ("l, F jS, Y");
$day = date('w');
$sun = '<a href="http://www.Digg.com">Digg<a/>';
$mon = '<a href="http://www.Newzbin.com">newzBin - The Ultimate Usenet Binaries Index</a>';
$tue = '<a href="http://www.myspace.com/eyedidit">MySpace</a>';
$wed = '<a href="http://www.Google.com">Google<a/>';
$thu = "<a href='http://www.kevinrose.com'>Kevin Rose's blog</a>";
$fri = '<a href="http://www.scriptschool.com">Script School</a>';
$sat = '<a href="http://www.Slyck.com">Slyck - File Sharing News and Info</a>';
switch(
$day)
{
case
"0": print("The Site for today $date_full is $sun");
break;
case
"1": print("The Site for today $date_full is $mon");
break;
case
"2": print("The Site for today $date_full is $tue");
break;
case
"3": print("The Site for today $date_full is $wed");
break;
case
"4": print("The Site for today $date_full is $thu");
break;
case
"5": print("The Site for today $date_full is $fri");
break;
case
"6": print("The Site for today $date_full is $sat");
break;
}
?>
</body>
</html>


 

 (#994 2006-05-08 01:19:35) Post Reply
Page 0 1 2 3 4 5

Rythm
Need To Set


Enrolled: May 2006
Posts: 2
AP: 1

I think i have done this assignment, it taken my few time but i did after repairing my bugs.. hope this will work..



<Html>
<Head>
<Title>Assignment no 2</title>
</head>
<Body>
<?
$today
= date("w");
$sunlink = "<A HREF = <A HREF="http://www.sunday.com>Sunday" TARGET=_blank>http://www.sunday.com>Sunday</A> </A>";
$monlink = "<A HREF = <A HREF="http://www.monday.com>MOnday" TARGET=_blank>http://www.monday.com>MOnday</A> </A>";
$tueslink = "<A HREF = <A HREF="http://www.tuesday.com>Tuesday" TARGET=_blank>http://www.tuesday.com>Tuesday</A> </A>";
$wedlink = "<A HREF = <A HREF="http://www.webday.com>Wed" TARGET=_blank>http://www.webday.com>Wed</A> Day </A>";
$thurslink = "<A HREF = <A HREF="http://www.thursday.com>Thurs" TARGET=_blank>http://www.thursday.com>Thurs</A> DAy </A>";
$frilink = "<A HREF = <A HREF="http://www.friday.com>" TARGET=_blank>http://www.friday.com></A> Friday </A>";
$satlink = "<A HREF = <A HREF="http://www.saturday.com>Saturady" TARGET=_blank>http://www.saturday.com>Saturady</A> </A>";
//Switch
Switch($today) {
case
0:
print(
$sunlink);
break;
case
1:
print(
$monlink);
break;
case
2:
print(
$tueslink);
break;
case
3:
print(
$wedlink);
break;
case
4:
print(
$thurslink);
break;
case
5:
print(
$frilink);
break;
case
6:
print(
$satlink);
break;
default:
print(
"Error" );

}
?>

</body>
<html>


 

 (#996 2006-05-23 15:10:39) Post Reply
Page 0 1 2 3 4 5

Andrius2a
Need To Set


Enrolled: May 2006
Posts: 6
AP: 1

<HTML>
<HEAD>
<TITLE>2 week assignment</TITLE>
</HEAD>
<BODY>


<?php
// This script will show active url depending on day of the week
$day = date("w");
switch ($day)
{

// This is a day and URL assignments for SUNDAY
case 0:
$day="Sunday";
$url="PHP world on: <a href='http://www.php.net/'>www.php.net</a>";
break;

// This is a day and URL assignments for MONDAY//
case 1:
$day="Monday";
$url="Amazon search: <a href='http://www.amazon.com/'>www.amazon.com</a>";
break;

// This is a day and URL assignments for TUESDAY
case 2:
$day="Tuesday";
$url="Google search: <a href='http://www.google.com/'>www.google.com</a>";
break;

// This is a day and URL assignments for WEDNESDAY
case 3:
$day="Wednesday";
$url="Yahoo mail: <a href='http://mail.yahoo.com/'>mail.yahoo.com</a>";
break;

// This is a day and URL assignments for THURSDAY
case 4:
$day="Thursday";
$url="Script learning school: <a href='http://www.adultnetsurprise.com/'>www.www.adultnetsurprise.com</a>";
break;

// This is a day and URL assignments for FRIDAY
case 5:
$day="Friday";
$url="Ebay: <a href='http://www.ebay.com/'>www.ebay.com</a>";
break;

// This is a day and URL assignments for SATURDAY
case 6:
$day="Saturday";
$url="Download center: <a href='http://www.download.com/'>www.download.com</a>";
break;

default:
print("Error");
}

// DISPLAY DAY and Active URL
print("Today is a <b><i>$day</i></b><br><br> and you can visit only <b><i>$url</i></b>");

?>
</BODY>
</HTML>

 

 (#1003 2006-06-12 02:59:15) Post Reply
Page 0 1 2 3 4 5

mrnaked69
Need To Set


Enrolled: Jun 2006
Posts: 3
AP: 1



<?
//Variables for Link and Description
$monurl = ("http://www.google.com");
$montitle = ("Google");
$mondesc = ("Internet's Largest Search Engine");
$tuesurl = ("http://www.yahoo.com");
$tuetitle = ("Yahoo");
$tuedesc = ("The Search engine that provides my traffic");
$wedurl = ("http://www.scriptschool.com");
$wedtitle = ("Script School");
$weddesc = ("Great resource for learning scripting");
$thururl = ("http://www.red.com");
$thurtitle = ("Red");
$thurdesc = ("Site that internet companies use to test your internet");
$friurl = ("http://www.domain.com");
$frititle = ("Domain");
$fridesc = ("sick of coming up with stuff");
$saturl = ("http://www.mydomain.com");
$sattitle = ("My Domain");
$satdesc = ("my site description");
$sunurl = ("http://www.bestsiteever.com");
$suntitle = ("BSE");
$sundesc = ("the best site ever");
$today = date("w");
//conditions
switch($today)
{
case
"0":
print(
"Todays link is: ". "<a href=\"$sunurl\">$suntitle</a> - $sundesc");
break;
case
"1":
print(
"Todays link is: " . "<a href=\"$monurl\">$montitle</a> - $mondesc");
break;
case
"2":
print(
"Todays link is: ". "<a href=\"$tueurl\">$tuetitle</a> - $tuedesc");
break;
case
"3":
print(
"Todays link is: ". "<a href=\"$wedurl\">$wedtitle</a> - $weddesc");
break;
case
"4":
print(
"Todays link is: ". "<a href=\"$thururl\">$thurtitle</a> - $thurdesc");
break;
case
"5":
print(
"Todays link is: ". "<a href=\"$friurl\">$frititle</a> - $fridesc");
break;
case
"6":
print(
"Todays link is: ". "<a href=\"$saturl\">$sattitle</a> - $satdesc");
break;
default:
print (
"What the goofed up");
}
?>



 

 (#1006 2006-06-27 13:32:24) Post Reply
Page 0 1 2 3 4 5

Webby
Need To Set


Enrolled: Jun 2006
Posts: 6
AP: 1

I don't get this assigment. It works but I don't understand how does the case understand which date it is? What is the control factor of case? This is not explained very well.

I change the $today to "w" like everyone else, but I used "l" in my own code. Why didn't it work?

Does the switch/case only work on dates?


/*switch case*/

$monurl = ("http://www.yahoo.com");
$montitle = ("Yahoo");
$mondesc = ("Search engine with a lot of added junk");
$tuesurl = ("http://www.google.com");
$tuetitle = ("Google");
$tuedesc = ("Search engine with clean lines");
$wedurl = ("http://www.microsoft.com");
$wedtitle = ("Microsoft Corp");
$weddesc = ("Blue Screen of Death");
$thururl = ("http://www.gaiaonline.com");
$thurtitle = ("Gaia Online");
$thurdesc = ("Waste of Time");
$friurl = ("http://www.myspace.com");
$frititle = ("MySpace");
$fridesc = ("A collection of horny adults pretending to be teens");
$saturl = ("http://www.sun.com");
$sattitle = ("Sun Technologies");
$satdesc = ("Got Java");
$sunurl = ("http://www.scriptschool.com");
$suntitle = ("Script School");
$sundesc = ("learn this stuff");
$today = date("w");


//switch thing

switch($today)
{
case "0":
print("Link of the day: ". "<a href=\"$sunurl\">$suntitle</a> - $sundesc");
break;
case "1":
print("Link of the day: " . "<a href=\"$monurl\">$montitle</a> - $mondesc");
break;
case "2":
print("Link of the day: ". "<a href=\"$tueurl\">$tuetitle</a> - $tuedesc");
break;
case "3":
print("Link of the day: ". "<a href=\"$wedurl\">$wedtitle</a> - $weddesc");
break;
case "4":
print("Link of the day: ". "<a href=\"$thururl\">$thurtitle</a> - $thurdesc");
break;
case "5":
print("Link of the day: ". "<a href=\"$friurl\">$frititle</a> - $fridesc");
break;
case "6":
print("Link of the day: ". "<a href=\"$saturl\">$sattitle</a> - $satdesc");
break;
default:
print ("Hello World");
}


 

 (#1007 2006-06-27 14:12:34) Post Reply
Page 0 1 2 3 4 5

Webby
Need To Set


Enrolled: Jun 2006
Posts: 6
AP: 1

Ok now things make sense after reading Class #3. I have the answers to my questions now :)

Thanks

 

 (#1011 2006-12-18 15:03:15) Post Reply
Page 0 1 2 3 4 5

SoonMe
Need To Set


Enrolled: Dec 2006
Posts: 1
AP: 1

Hi.
First of all this forum is doing soo good so far, i'm new here so i have one question.
Can someone writte me php code for one website because today i begin to learn about php and i need basic knowlegde for beginning and also i want to learn about creating table with mysql and to be connected with php.
Thanks

 

 (#1020 2008-08-03 11:42:16) Post Reply
Page 0 1 2 3 4 5

Xena
Need To Set


Enrolled: Oct 2006
Posts: 1
AP: 1

<?php

$today = date('w'); //numeric value of the day
$today2=date('l'); //letter Value of the day readable
$macaveli = "Today 's Link is";

//Select URL
switch($today){

case 1://Monday

$site = "Ad mesofish Ad Web site Advertising :<a href="http://www.mesofish.com">mesofish.com</a>";

break;


case 2:

$site = "Kislen Loans :<a href='http://www.kislen.com">Welcome To Kislen</a>";

break;



case 3:


$site = "Visit flowers :<a href='http://www.visitflowers.com'>Visit Flowers.com</a>";

break;


case 4:



$site ="Training Marathon Web Site :<a href="http://www.trainingmarathon.com">Training Marathon</a>";
break;

case 5:


$site = "2 Pac s Web site :<a href="http://www.macaveli.com">2 Pac s</a>";


break;

case 6:


$site = "Movies Made Site :<a href="http://www.moviesmade.com">Movies Made</a>";

break;

case 0:



$site = "Are You Thirsty :<a href="http:www.water.com">Water</a>";


break;


default:

echo "The day is Thousand Miles Away";



}
print("Is $today2'''and'''$macaveli<br>$site")



?>
</td></tr></table>

</center>



</body>

</html>


 

  Page 0 1 2 3 4 5

View Previous Thread
Print this page Print This Page

View Next Thread

School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store

Advertising | Link To Us | Privacy 
Copyright 2000-2002 Script School Productions / KMR Enterprises 
No part of this website may be reproduced, copied and/or distributed in any medium 
without express written permission