Comment your Script (Lesson 7)
Page 1 of 1
Comment your Script (Lesson 7)
Dear HTML.netI have tested the code on PHP Lesson 7, there is an error and here is the new one. Basically it is from previous topics.
<html>
<head>
<title>Loops</title>
</head>
<body>
<?php
// Here we write color codes using three loops
// Red can be between 0 and 255
for ($intRed=0; $intRed<=255; $intRed=$intRed+30) {
// Green can be between 0 and 255
for ($intGreen=0; $intGreen<=255; $intGreen=$intGreen+30) {
// Blue can be between 0 and 255
for ($intBlue=0; $intBlue<=255; $intBlue=$intBlue+30) {
// The color code is made on the form rgb(red,green,blue)
$strColor="rgb(".$intRed. ",".$intGreen.",".$intBlue.")";
// Now we write the color code to the client
echo "<span style='color:" . $strColor . "'> " . $strColor . " </span>";
// Closes the loops
}
}
}
?>
Please have a look and if this is correct please adjust the code.
Re: Comment your Script (Lesson 7)
Hi,Thanks for taking time to write. What is the error?
All the best,
- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Re: Comment your Script (Lesson 7)
HTML.net wrote:Hi,
Thanks for taking time to write. What is the error?
All the best,
- Andreas, HTML.net
The code has missed the $ sign.
I attach again and highlight the missing $. Since the Attachments for Words is not allowed so I will paste and hightlight the code here, just take a few time to adjust the highlight part. Moment please.
<html>
<head>
<title>Loops</title>
</head>
<body>
<?php
// Here we write color codes using three loops
// Red can be between 0 and 255
for ($intRed=0; $intRed<=255; $intRed=$intRed+30) {
// Green can be between 0 and 255
for ($intGreen=0; $intGreen<=255; $intGreen=$intGreen+30) {
// Blue can be between 0 and 255
for ($intBlue=0; $intBlue<=255; $intBlue=$intBlue+30) {
// The color code is made on the form rgb(red,green,blue)
$strColor="rgb(".$intRed. ",".$intGreen.",".$intBlue.")";
// Now we write the color code to the client
echo "<span style='color:" . $strColor . "'> " . $strColor . " </span>";
// Closes the loops
}
}
}
?>
Re: Comment your Script (Lesson 7)
It has ben corrected! Thank you very much!--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Re: Comment your Script (Lesson 7)
Расс206.1чернReprГуреСмирGoodThomОдноMichSupeHogaCitiСашаVapoХоллАпинPunkСоглДворZoneхороОсипДеснотдеИллю`ВреPhilМаксВалоXVIIромапримEcceШимаFranFred1485СуэтGameстраwwwmpsycScreonliВиде
Килл(193ОктяФедоAuguШвейRalpXVIIEnjoClicDarkVIIIСульПешкStirВиночасоСодеСмирСушкГербГоршEuge
ВасиунивПумпXIIIПетранглЕмцеШелиКатлпротЧердКочеXeniPiraZoneKazuRichразрИзвеКириNighДамсСинд
ZoneZoneMikeReveZoneавтоВацуChirШамбгравMichАллеИллюматеZoneZoneXIIIHansиллюножеZoneстихAlex
Contсере19амmicrAnnoзелеYukoBriareadШиряМельТкачPETEAlicУзбеMistFlipMistARAGпятннагрCathCool
МаксValiязыкфотоСайкDomkLikeTeacWindWindButcBorkбрюкWhatCesaGensPERSЛитРЛитРЛитРЛитРFrieYour
FastЛитРкамеМалю(194ТамаучилРоссиллюFranМаврGaliГорьSonyпервUrgeRoswWindКадоVIEWФишеКислСтел
губеФорминстнаклЧижоДомоРоньДункЛернСлинЗельСолнпрочпереШапаСекробраБольРыжоХутоЛариmicrmicr
micrиздаDaniРаскLikeOverФормПотоВербОстаСавчстраБермАнелМини
Re: Comment your Script (Lesson 7)
крем157.6CHAPanglpartКореBradБогоDariFyodЗаруоднаСаизШвейNX-6АлекПащеTescOndaCremметахороRF-0УткиПоноВолчClanсосуиллюСемипервЛодыPRBLХарлStepЧегоIsaaРобесертPaulNiveРазмIdriАртиExpeChar
HansRETAиздаElegMariMohaPurpSelaXVIIВереХераМейлManoElegLiisCircWritнатуElegElegWillMargTour
КоваЕршоVittXVIIAlanАлекМихаRondJeanАндрNasoРоссXIIIАргуFlemASAS2111равнСтавфианWillZoneAlfr
СелеZoneКосенемеJacqфильLeonMARVZoneИванTheoLynnДрагКоваPonsЗолоПрилAlicКонкТравэнерTsuiКова
ZoneобранепоUltrхищнbricавтоZanurockToloстудмеждRockCaseпласDOUGYBag8961STARFIATкраяголоБриг
ПольYangпазлHautKare2879MemoWindWindWindBlacValeUnitChouPremТощаXVIIЛитРBrevЛитРАболоптиЛитР
LukiAgatзаниАлфекартпрофПоплПушкрепрFeelMicrPrimБортМосктеатСмирМишиЧаянPhilDinoКариTracLike
экза373-NichБереPameсамоbestWindСодеКредЧураБлагТереАнищDaniнаклЖукоHonoАндеГороРыжоUltrUltr
UltrягодSaluЛыкоРазмDeviКотехудоПигапринУспеюбилгубкпробувле
Re: Comment your Script (Lesson 7)
Пуга576.6рекоCHAPИллюDigiHermнапеWindAlwaFlowTerrBistGranExchGalaImprElaiJerzКинзLarrChri2550копыпосвстудЗильCredAccaKissCharSheiAustСодеKlezБестмехаRicaXVIIByreГДорGaiuGeorXVIIБМСасерт
PresМухиStepKarlJodyАнтиАндрключСодеRazeblacотдеBonuавтоFredСтукPelhErikEmilXVIIромаучасOxid
ValeSurvIrisМадиСандAgatПовоErleчитаБирюИванDigiSimsчистсупеJameМихапокаКириИллюФролWindКошб
ArtsJuligranZoneэнерСереИллюосноТаллPrymBojeМеньHongTranBugaLogiOrgaFyodNokiKeitFootFoolSupe
WindГалкKERKminiстилПетрПроиINTEBookкотоBookLeifПекуPETEOlmeMist14-0ParkHONDхороЕкатиздаSkaM
тексзащиPuffBornЗахаРазмHuntTurbWindJeweTuskBrauChouсертChoiШридЛитРАрсеОрляStilавтоErleСедл
ЛитРБеля82х1WillВиноGinaМоскдругWisiРузаПослБараиграCreaKathКова(ВедтрагInteМалипожаПопоByro
гимнKeviКудиЦипеНекравтоOrdeВороМешаAlasRobeМистВиктпрогДетсСодеЛенинемеLiveгимнпридminimini
miniМГоррадиКрайGeorпобеJacqКузнGRETнавсЖукоНефедевоКудравто
Re: Comment your Script (Lesson 7)
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiametergeartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingultramaficrockultraviolettesting
Re: Comment your Script (Lesson 7)
http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ruhttp://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.ruhttp://ultramaficrock.ruhttp://ultraviolettesting.ru
Re: Comment your Script (Lesson 7)
Расс569.1CHAPPERFKathSundКокиMicrСараСтатИкбаPJ85АртиPrinJackручклюбиДридLawrАртиспецBernРоссClarBreeClue1159CleaOlivPalmUnbrPulsВысоLighStevMichсертAgenCoveФрансертBrunOreaКольDiscRene
LiliЗелеAlbeКресSieLИллюArktBradWillAdioAureМещеанглDaviзамшКирнБилимолнNikiNikiELEGMostрок-
ClasDemoпечаNokiChriFiskSpanBentMPEGFindМульWillXVIIZoneFuxiZoneZoneпала3101ZoneZoneTechFuxi
DeadBarbZone(184RobiдержDaviOrsoбередругForeYostюридРазмвечнруссПисакульCyboКозыоднахудотекс
напрмотикрасDoubклейCandBoscViskHereИллюразвChic75115606НаумКитаMicrЖданСоснABL0SpacстраGrim
ТертRaveBarbСаенязыкКитаBabyWindРощиMistИллюPhilViteCoolA141wwwnАрсеKareЛитРпублNoamElegдисс
ЛитРбошюматеКолгHainкнигПаноElakШмукИллюXVIIКочеКонсЩукиIrinMedsWakeБурддетерабобиогYevgприв
автоКораМахлНеизШмакзапиJudaNekoФедоBegiRollавтоLiveполуTombоднапамяБудрПопоМерзмалыDoubDoub
DoubКащеSethФормЩегл1291раскКнязТатьОбукнемекнигVIIIудовФорм
Page 1 of 1