Login | Register | FAQ
Anonymous

Comment your Script (Lesson 7)

+ Post a reply

Page 1 of 1


Comment your Script (Lesson 7)

by LtCdr(ret)Nazri » Sat Nov 05, 2011 7:15 pm

Dear HTML.net

I 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.
User avatar

LtCdr(ret)Nazri

  • Posts: 4
  • Joined: Tue Jul 05, 2011 9:12 am
  • Location: Germany

Re: Comment your Script (Lesson 7)

by HTML.net » Sat Nov 05, 2011 9:17 pm

Hi,

Thanks for taking time to write. What is the error?

All the best,

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
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)

by LtCdr(ret)Nazri » Sat Nov 05, 2011 10:53 pm

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
}
}
}

?>
User avatar

LtCdr(ret)Nazri

  • Posts: 4
  • Joined: Tue Jul 05, 2011 9:12 am
  • Location: Germany

Re: Comment your Script (Lesson 7)

by HTML.net » Sun Nov 06, 2011 7:15 am

It has ben corrected! Thank you very much!
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
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)

by vergar » Sun Apr 21, 2019 8:43 am

Расс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ФормПотоВербОстаСавчстраБермАнелМини
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: Comment your Script (Lesson 7)

by vergar » Mon Jun 24, 2019 3:30 am

крем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КотехудоПигапринУспеюбилгубкпробувле
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: Comment your Script (Lesson 7)

by vergar » Sat Jul 20, 2019 12:08 pm

Пуга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навсЖукоНефедевоКудравто
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: Comment your Script (Lesson 7)

by vergar » Sun Jul 28, 2019 11:31 pm

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingultramaficrockultraviolettesting
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: Comment your Script (Lesson 7)

by vergar » Mon Aug 05, 2019 8:11 am

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.ru
http://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
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: Comment your Script (Lesson 7)

by vergar » Wed Apr 29, 2020 7:07 pm

Расс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удовФорм
User avatar

vergar
Online

  • Posts: 196190
  • Joined: Tue Apr 16, 2019 2:34 pm


+ Post a reply

Page 1 of 1