Jump to content

Paldo

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by Paldo

  1. Thank you very, very much.... I was editing it with phpWebFTP ... When I tryed to edit it in notepad it worked...
  2. First of all thanks for your time and help so far... Somehow it's not possible use \' stuff everytime I change it and save it it dissapears... When I reopen the file there are no \ in front of ' And I don't know if something is wrong with me but I realy cant find secon <body> tag here is latest source... <html> <head> <title> ÄŽurkoviÄŤ </title> <style type="text/css"> a {text-decoration: none} a:link {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:visited {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:active {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:hover {color: white; font-style: bold; text-decoration: none; background-image: url('button_aktiv.JPG') } </style> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <?php echo '<body bgcolor="black">'; echo'<div align="center" style="position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0">'; echo'<img src="podklad.jpg" width="1280" height="800">'; echo'<div style="position: absolute; left: 248px; top: 125px">'; echo'<img border="0" src="lista.png" > '; echo'<div align="center" style="position: absolute; left: 140px; top: 9px">'; echo' <a href="durky.html" onMouseOver="changeImg('imgofirme',gifHome2)" onMouseOut="changeImg('imgofirme',gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="produkty.html" onMouseOver="changeImg('imgprod',gifproduk2)" onMouseOut="changeImg('imgprod',gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="sluzby.html" onMouseOver="changeImg('imgsluz',gifsluz2)" onMouseOut="changeImg('imgsluz',gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> '; echo'<div style="position: absolute; left: 72px; top: 0px">'; echo' <a href="refer.html" onMouseOver="changeImg('imgref',gifref2)" onMouseOut="changeImg('imgref',gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> '; echo'<div style="position: absolute; left: 95px; top: 0px">'; echo' <a href="kontakt.html" onMouseOver="changeImg('imgkon',gifkon2)" onMouseOut="changeImg('imgkon',gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> '; echo'<div style="position: absolute; left: 80px; top: 0px; text-align: left">'; echo'<a onMouseOver="changeImg('imgdom',gifdom2)" onMouseOut="changeImg('imgdom',gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> '; echo'</div>'; ?> </body> </html> Any other ideas? thanks
  3. Yeah I fixed that body stuff... <html> <head> <title> ÄŽurkoviÄŤ </title> <style type="text/css"> a {text-decoration: none} a:link {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:visited {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:active {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:hover {color: white; font-style: bold; text-decoration: none; background-image: url('button_aktiv.JPG') } </style> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <?php echo '<body bgcolor="black">'; echo'<div align="center" style="position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0">'; echo'<img src="podklad.jpg" width="1280" height="800">'; echo'<div style="position: absolute; left: 248px; top: 125px">'; echo'<img border="0" src="lista.png" > '; echo'<div align="center" style="position: absolute; left: 140px; top: 9px">'; echo' <a href="durky.html" onMouseOver="changeImg(.imgofirme.,gifHome2)" onMouseOut="changeImg(.imgofirme.,gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="produkty.html" onMouseOver="changeImg(.imgprod.,gifproduk2)" onMouseOut="changeImg(.imgprod.,gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="sluzby.html" onMouseOver="changeImg(.imgsluz.,gifsluz2)" onMouseOut="changeImg(.imgsluz.,gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> '; echo'<div style="position: absolute; left: 72px; top: 0px">'; echo' <a href="refer.html" onMouseOver="changeImg(.imgref.,gifref2)" onMouseOut="changeImg(.imgref.,gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> '; echo'<div style="position: absolute; left: 95px; top: 0px">'; echo' <a href="kontakt.html" onMouseOver="changeImg(.imgkon.,gifkon2)" onMouseOut="changeImg(.imgkon.,gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> '; echo'<div style="position: absolute; left: 80px; top: 0px; text-align: left">'; echo'<a onMouseOver="changeImg(.imgdom.,gifdom2)" onMouseOut="changeImg(.imgdom.,gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> '; echo'</div>'; ?> </body> </html> Now working I mean >>> I use java script to change two images that are buttons and they change to look active/not active when the mouse is on it. But they are not changeing in this php... There is a link to that page with working buttons and the upper of two beta buttons on the left is link to the non working php page... http://www.parobek.euweb.cz/produkty.html thanx
  4. Hello everyone, I have this page with javascript working well, but now I need to put it into php and the script is not working... I never did this before so I have no idea how to solve it, please help... Working HTML page: <html> <head> <title> ÄŽurkoviÄŤ </title> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <body bgcolor="black"> <div align="center" style='position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0'> <img src='podklad.jpg' width="1280" height="800"> <div style="position: absolute; left: 248px; top: 125px"> <img border="0" src="lista.png" > <div align="center" style="position: absolute; left: 140px; top: 9px"> <a href="durky.html" onMouseOver="changeImg('imgofirme',gifHome2)" onMouseOut="changeImg('imgofirme',gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a> <div style="position: absolute; left: 90px; top: 0px"> <a href="produkty.html" onMouseOver="changeImg('imgprod',gifproduk2)" onMouseOut="changeImg('imgprod',gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a> <div style="position: absolute; left: 90px; top: 0px"> <a href="sluzby.html" onMouseOver="changeImg('imgsluz',gifsluz2)" onMouseOut="changeImg('imgsluz',gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> <div style="position: absolute; left: 72px; top: 0px"> <a href="refer.html" onMouseOver="changeImg('imgref',gifref2)" onMouseOut="changeImg('imgref',gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> <div style="position: absolute; left: 95px; top: 0px"> <a href="kontakt.html" onMouseOver="changeImg('imgkon',gifkon2)" onMouseOut="changeImg('imgkon',gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> <div style="position: absolute; left: 80px; top: 0px; text-align: left"> <a onMouseOver="changeImg('imgdom',gifdom2)" onMouseOut="changeImg('imgdom',gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> <div style= "position: absolute; left: -250pt; top: 85pt; width: 380pt"> <font color="blue" size="2" face="Arial, Helvetica"> Regulačná stanica plynu je zariadenie pre automatickú reguláciu vstupného tlaku plynného média na nižší výstupný tlak. Ponúkame rôzne prevedenia regulačných staníc vzávislosti na výkone a vstupnom tlaku. Naše stanice dodávame v prevedení s jedným, alebo dvoma stupňami regulácie. Takisto môžu byť vybavené jednou alebo dvoma regulačnými radami. Výkon staníc je v rozmedzí od 150m3 do 10 000 m3, prípadne väčší. Regulačné stanice sú obvykle dodávané ako stavba na kľúč, zmontované na ráme, alebo v skrini. </font> <div style="position: absolute; left: -200px; top: 200px; text-align: left"> <a href="katarm.php" > <img border="0" src="button_katarma.JPG" > </a> <div style= "position: absolute; left: 150pt; top: 30pt; width: 380pt"> <font color="blue" face="Arial, Helvetica"> Armaturky mame ale vacsinou ide o repas a ak si to aj kupite od nas tak vam to zacne haprovat po tyzdni pri najlepsom po dvoch... Je to proste brak. Ale tak co uz vam zostava ako si to kupit lebo vam to tu aj tak nikto iny ani nepreda. Vdaka panu bohu ze nie lebo by sme potom my nic nepredali...</font> <div style="position: absolute; left: -200px; top: 100px; text-align: left"> <a href="katnahr.html" > <img border="0" src="button_katnahr.JPG" > </a> <div style= "position: absolute; left: 150pt; top: 30pt; width: 380pt"> <font color="blue" face="Arial, Helvetica"> Mame aj nahradne diely ale predavame ich len v 50 kilogramovych vreciach s vystiznym nazvom MIX. Obsah tohto vreca je nahodny cize sa vam moze kludne stat ze si ich kupite par kym v dako najdete to co vam treba, ak vobec.</font> </div> </html> But I want the next page to be a PHP so I tryed to do it like this: <html> <head> <title> Ă„Ĺ˝urkoviÄŤ </title> <style type="text/css"> a {text-decoration: none} a:link {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:visited {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:active {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:hover {color: white; font-style: bold; text-decoration: none; background-image: url('button_aktiv.JPG') } </style> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <?php echo '<body bgcolor="black">'; echo'<div align="center" style="position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0">'; echo'<img src="podklad.jpg" width="1280" height="800">'; echo'<div style="position: absolute; left: 248px; top: 125px">'; echo'<img border="0" src="lista.png" > '; echo'<div align="center" style="position: absolute; left: 140px; top: 9px">'; echo' <a href="durky.html" onMouseOver="changeImg(.imgofirme.,gifHome2)" onMouseOut="changeImg(.imgofirme.,gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="produkty.html" onMouseOver="changeImg(.imgprod.,gifproduk2)" onMouseOut="changeImg(.imgprod.,gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="sluzby.html" onMouseOver="changeImg(.imgsluz.,gifsluz2)" onMouseOut="changeImg(.imgsluz.,gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> '; echo'<div style="position: absolute; left: 72px; top: 0px">'; echo' <a href="refer.html" onMouseOver="changeImg(.imgref.,gifref2)" onMouseOut="changeImg(.imgref.,gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> '; echo'<div style="position: absolute; left: 95px; top: 0px">'; echo' <a href="kontakt.html" onMouseOver="changeImg(.imgkon.,gifkon2)" onMouseOut="changeImg(.imgkon.,gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> '; echo'<div style="position: absolute; left: 80px; top: 0px; text-align: left">'; echo'<a onMouseOver="changeImg(.imgdom.,gifdom2)" onMouseOut="changeImg(.imgdom.,gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> '; echo'</div>'; ?> </html> Yet it is not working, so please help...
  5. Ok thanks, I fixed that and a coupple of other " and ' but it still prints the same error but this time on a line 61. I'll mark up the line in my code. I could use any help. Thanks. <html> <head> <title> ÄŽurkoviÄŤ </title> <style type="text/css"> a {text-decoration: none} a:link {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:visited {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:active {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:hover {color: white; font-style: bold; text-decoration: none; background-image: url('button_aktiv.JPG') } </style> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <?php echo '<body bgcolor="black">'; echo'<div align="center" style="position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0">'; echo' <img src="podklad.jpg" width="1280" height="800">'; // [b]THIS IS THE LINE ERROR REFERS TO[/b] echo'<div style="position: absolute; left: 248px; top: 125px">'; echo'<img border="0" src="lista.png" > '; echo'<div align="center" style="position: absolute; left: 140pxef; top: 9px">'; echo' <a href="durky.html" onMouseOver="changeImg('imgofirme',gifHome2)" onMouseOut="changeImg('imgofirme',gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="produkty.html" onMouseOver="changeImg('imgprod',gifproduk2)" onMouseOut="changeImg('imgprod',gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a> echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="sluzby.html" onMouseOver="changeImg('imgsluz',gifsluz2)" onMouseOut="changeImg('imgsluz',gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> '; echo'<div style="position: absolute; left: 72px; top: 0px">'; echo' <a href="refer.html" onMouseOver="changeImg('imgref',gifref2)" onMouseOut="changeImg('imgref',gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> '; echo'<div style="position: absolute; left: 95px; top: 0px">'; echo' <a href="kontakt.html" onMouseOver="changeImg('imgkon',gifkon2)" onMouseOut="changeImg('imgkon',gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> '; echo'<div style="position: absolute; left: 80px; top: 0px; text-align: left">'; echo'<a onMouseOver="changeImg('imgdom',gifdom2)" onMouseOut="changeImg('imgdom',gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> '; echo'</div>'; ?> </html>
  6. Hi I didn't use PHP for some time and now I can't figure out how to solve a simple stuff. Please have a look in my source and give me a hint... Thanks It prints that there is a parse error, expecting `','' or `';'' in /3w/euweb.cz/p/parobek/katarm.php on line 51 what is the line where body starts. <html> <head> <title> ÄŽurkoviÄŤ </title> <style type="text/css"> a {text-decoration: none} a:link {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:visited {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:active {color: #c1c1c1; font-style: bold; background-image: url('button_blank.JPG') } a:hover {color: white; font-style: bold; text-decoration: none; background-image: url('button_aktiv.JPG') } </style> <SCRIPT language="javascript1.1"> gifHome = new Image(54,18) gifHome.src = "button_ofirme.png" gifHome2 = new Image(54,18) gifHome2.src = "button_ofirmeakt.png" gifproduk = new Image(54,18) gifproduk.src = "button_produktynakt.png" gifproduk2 = new Image(54,18) gifproduk2.src = "button_produkty.png" gifsluz = new Image(54,18) gifsluz.src = "button_sluzby.png" gifsluz2 = new Image(54,18) gifsluz2.src = "button_sluzbyakt.png" gifref = new Image(54,18) gifref.src = "button_referencie.png" gifref2 = new Image(54,18) gifref2.src = "button_referencieakt.png" gifkon = new Image(54,18) gifkon.src = "button_kontakt.png" gifkon2 = new Image(54,18) gifkon2.src = "button_kontaktakt.png" gifdom = new Image(54,18) gifdom.src = "button_domov.png" gifdom2 = new Image(54,18) gifdom2.src = "button_domovakt.png" function changeImg(cImg,ref) { document.images[cImg].src = ref.src } </SCRIPT> </head> <body> <?php echo '<body bgcolor='black'>'; echo'<div align="center" style='position:absolute; left:0%; right:0%; top:0%; height: 800px; width: 1280px; text-align: center; margin: 0 auto; z-index: 0'>'; echo' <img src='podklad.jpg' width="1280" height="800">'; echo'<div style="position: absolute; left: 248px; top: 125px">'; echo'<img border="0" src="lista.png" > '; echo'<div align="center" style="position: absolute; left: 140pxef; top: 9px">'; echo' <a href="durky.html" onMouseOver="changeImg('imgofirme',gifHome2)" onMouseOut="changeImg('imgofirme',gifHome)" > <img border="0" src="button_ofirme.png" name="imgofirme" ></a>'; echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="produkty.html" onMouseOver="changeImg('imgprod',gifproduk2)" onMouseOut="changeImg('imgprod',gifproduk)" > <img border="0" src="button_produktynakt.png" name="imgprod" > </a> echo'<div style="position: absolute; left: 90px; top: 0px">'; echo' <a href="sluzby.html" onMouseOver="changeImg('imgsluz',gifsluz2)" onMouseOut="changeImg('imgsluz',gifsluz)" > <img border="0" src="button_sluzby.png" name="imgsluz" > </a> '; echo'<div style="position: absolute; left: 72px; top: 0px">'; echo' <a href="refer.html" onMouseOver="changeImg('imgref',gifref2)" onMouseOut="changeImg('imgref',gifref)" > <img border="0" src="button_referencie.png" name="imgref" > </a> '; echo'<div style="position: absolute; left: 95px; top: 0px">'; echo' <a href="kontakt.html" onMouseOver="changeImg('imgkon',gifkon2)" onMouseOut="changeImg('imgkon',gifkon)" > <img border="0" src="button_kontakt.png" name="imgkon" > </a> '; echo'<div style="position: absolute; left: 80px; top: 0px; text-align: left">'; echo'<a onMouseOver="changeImg('imgdom',gifdom2)" onMouseOut="changeImg('imgdom',gifdom)" href="durky.html" > <img border="0" src="button_domov.png" name="imgdom" > </a> '; echo'</div>'; ?> </html>
  7. Hi guys! Somebody please have a look at this. It was working once two weaks ago and now evening before I need it, it's printing an error. It says : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2 Well I don't know what it mean with the 2 line couse it's pretty far from any SQL code... Thanks for any help <html> <body> <div style='position:absolute;left:10%; right:10%; top:0%; z-index: 0'> <img src='backround.jpg' width="800" height="800"> <div style="position: absolute; left: 1px; top: 1px"> <img src='banner.png'> </div> <?php $balance = $_GET['t']; echo $balance; $accountID = $_GET['c']; echo $accountID; echo $_POST[prevod]; echo'<a href="http://parobek.euweb.cz/welcome.php? c='.$accountID.'">Navrat</a>'; $con = mysql_connect("mysql.webzdarma.cz","parobek","adnddnd"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("parobek", $con); if ( $balance > $_POST[prevod] ) { mysql_query("UPDATE Zakaznici SET stav= stav + $_POST[prevod] WHERE cisuctu= $_POST[cisuctu] ") or die(mysql_error()) ; mysql_query("UPDATE Zakaznici SET stav= stav - $_POST[prevod] WHERE cisuctu= $accountID ") or die(mysql_error()) ; mysql_close($con); } else { echo '<div style="position: absolute; left: 210px; top: 420px">'; echo "Tolko nemas na ucte"; echo '</div>'; echo '<div style="position: absolute; left: 210px; top: 460px">'; echo'<a href="http://parobek.euweb.cz/transfer.php?t='.$balance.' & c='.$accountID.'"><img border="0" img src="spat.png"></a>'; echo '</div>'; } ?> </body> </html>
  8. Hi guys! I trying to get captcha working, I wanted to store the randomly generated string into database, but I crashed on an error I don't understeand. When I want to load this image.php it say that Unknown column 'qq2svf' in 'field list' and this 'qq2svf' changes every time seems to me like it's the random string I use in my captch, but as you can see I'm not using it in way that it could couse this error. I don't know. Thanks for your help. <?php $img = imagecreatetruecolor(80,30); $white = imagecolorallocate($img, 255, 255, 255); $black = imagecolorallocate($img, 0, 0, 0); $grey = imagecolorallocate($img,150,150,150); $red = imagecolorallocate($img, 255, 0, 0); $pink = imagecolorallocate($img, 200, 0, 150); function randomString($length){ $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double)microtime()*1000000); $str = ""; $i = 0; while($i <= $length){ $num = rand() % 33; $tmp = substr($chars, $num, 1); $str = $str . $tmp; $i++; } return $str; } for($i=1;$i<=rand(1,5);$i++){ $color = (rand(1,2) == 1) ? $pink : $red; imageline($img,rand(5,70),rand(5,20), rand(5,70)+5,rand(5,20)+5, $color); } imagefill($img, 0, 0, $red); $string = randomString(5); $con = mysql_connect("mysql.webzdarma.cz","parobek","adnddnd"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("parobek", $con); mysql_query("UPDATE Hlasovanie SET meno = $string WHERE pocet= 99 ") or die(mysql_error()) ; mysql_close($con); imagettftext($img, 13, 0, 10, 20, $black, "CALIBRI.TTF", $string); header("Content-type: image/png"); imagepng($img); imagedestroy($img); ?>
  9. Ok so I changed it as you say but it still says the same error... Parse error: parse error, expecting `','' or `';'' in /3w/euweb.cz/p/parobek/captcha.php on line 6 And BTW: Why it makes all the \ disapered in whole document??? <?php ob_start(); session_start(); if(!$_POST['submit']){ echo '<form method="post" action="captcha.php">'"n"; echo '<table border="0" cellspacing="3" cellpadding="3">' "n"; echo '<tr><td>Type The Letters You See Below Into the Box</td></tr>'"n"; echo '<tr><td align="center"><img src="image.php"></td></tr>' "n"; echo '<tr><td align="right"><input type="text" name="image"></td></tr>'"n"; echo '<tr><td align="right"><input type="submit" name="submit" value="Check CAPTCHA"></td></tr>' "n"; echo '</table></form>'"n"; }else { $image = $_POST['image']; if($image == $_SESSION['string']){ echo '<b>Great success!</b>n"; }else { echo '<em>Failure!</em>n'; } } ob_end_flush(); ?>
  10. Hi as it's getting late I'm getting more sleepy and I just can't find what I miss somewhere... Thanks for helping me out... It say: Parse error: parse error, expecting `','' or `';'' in /3w/euweb.cz/p/parobek/captcha.php on line 6 <?php ob_start(); session_start(); if(!$_POST['submit']){ echo "<form method="post" action="captcha.php">n"; echo "<table border="0" cellspacing="3" cellpadding="3">n"; echo "<tr><td>Type The Letters You See Below Into the Box</td></tr>n"; echo "<tr><td align="center"><img src="image.php"></td></tr>n"; echo "<tr><td align="right"><input type="text" name="image"></td></tr>n"; echo "<tr><td align="right"><input type="submit" name="submit" value="Check CAPTCHA"></td></tr>n"; echo "</table></form>n"; }else { $image = $_POST['image']; if($image == $_SESSION['string']){ echo "<b>Great success!</b>n"; }else { echo "<em>Failure!</em>n"; } } ob_end_flush(); ?>
  11. Hello everyone! I 'm learning how to create captcha so I decided to follow one tutorial on youtube. After only a few rows of code the first checkpoint should be showing a small black image, at least at the tutorial it works, but when I try it it in FireFox it says in my native language: Picture "http://www.parobek.euweb.cz/captcha.php" can not be wieved becouse it contains mistakes. In I Explorer it prints : ‰PNG IHDRP4!ćIDATX…íÁ€ţŻî j>*ÖĽIEND®B`‚ I checked the code is the same as the guy use in his tutorial... What could be a problem? Thanks for your help. <html> <body> <?php $img = imagecreatetruecolor(80, 30); $white = imagecolorallocate($img, 255, 255, 255); $black = imagecolorallocate($img, 0, 0, 0); $red = imagecolorallocate($img, 255, 0, 0); $pink = imagecolorallocate($img, 200, 0, 150); imagefill($img, 0, 0, $black); header("Content-type: image/png"); imagepng($img); imagedestroy($img); ?> </body> </html>
  12. Hi I have a problem to make captch working. It says Warning: imagettftext(): supplied argument is not a valid Image resource in /3w/euweb.cz/p/parobek/captcha.php on line 38 <html> <body> <?php function rand_str($length = 5, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890') { // Length of character list $chars_length = (strlen($chars) - 1); // Start our string $string = $chars{rand(0, $chars_length)}; // Generate random string for ($i = 1; $i < $length; $i = strlen($string)) { // Grab a random character from our list $r = $chars{rand(0, $chars_length)}; // Make sure the same two characters don't appear next to each other if ($r != $string{$i - 1}) $string .= $r; } // Return the string return $string; } $retazec = rand_str(); echo $retazec; $captcha = @imagecreatefrompng('captcha.png'); $font = 'arial.ttf'; // THIS IS THE LINE THAT WARNING REFERS TO imagettftext($captcha, 20, 0, 10, 20, $black, $font, $retazec); ?> </body>
  13. I'll do more than that. I transleted all the variable names to english + I deleted some stuf that is more like the developing help for me. <html> <body> <?php $numberInStringFormat = $_POST[number]; echo '<br>'; echo '<br>'; $lenght = strlen($numberInStringFormat); $ArrayForValueAssigment = array( "1" => "ones" , "2" => "tens" , "3" => "houndrets" , "4" => "tousends" , "5" => "tentousends" , "6" => "houndrettousends" , "7" => "milions" , "8" => "tenmilions" , "9" => "houndretmilions" , "10" => "bilions" ); for ($i = $lenght ; $i > -1; $i-- ) { $p = $numberInStringFormat[$i]; echo $p; $ArrayForKeepingHowMuchOfEachValues[$ArrayForValueAssigment[$i]] = (int)$p ; } print_r($ArrayForKeepingHowMuchOfEachValues); ?> </body> </html> Imput is for example: 33456 The output should be : Array ( [tentousends] => 3 [tousends] => 3 [houndrets] => 4 [tens] => 5 [ones] => 6 ) But the output is: Array ( [tentousends] => 0 [tousends] => 3 [houndrets] => 3 [tens] => 4 [ones] => 5[] => 6 )
  14. Hi guys! I have this for loop that should store individual numbers from a string to an array. Instead of that it stores only the first value to all array components. Please have a look I'm sure you will see what's wrong... thanks <html> <body> <?php $cislovsringu = $_POST[cislo]; echo $cislovsringu; echo '<br>'; echo $cislovsringu{3}; echo $cislovsringu{1}; echo $cislovsringu{4}; echo '<br>'; $dlzka = strlen($cislovsringu); echo $dlzka; echo '<br>'; echo '<br>'; $poleHodnot = array( "1" => "jednotky" , "2" => "desiatky" , "3" => "stovky" , "4" => "tisicky" , "5" => "desatisicky" , "6" => "stotisicky" , "7" => "miliony" , "8" => "desatmiliony" , "9" => "stomiliony" , "10" => "miliardy" ); $limit = $dlzka + 1; for ($i = $dlzka ; $i > -1; $i-- ) { $hlp = 0; $hlp2 = 0; $j = 0; $p = 0; $hlp = $i - $dlzka; $hlp2 = $hlp * (-1); $j = hlp2; $p = $cislovsringu[$j]; $polePoctu[$poleHodnot[$i]] = (int)$p ; } echo print_r($polePoctu); //1 364 720 434 ?> </body> </html>
  15. Thank you all for your help it worked.
  16. Well no It didn't work It prints the same error...
  17. Hi guys could you please have a look at my code couse I realy don't know what could be a problem... I hope it's not a problem that names of my variables are in my native language, If it is I can translete it for you, but from previous experience that can couse diferences and other problems, I wanted it to be exactly the same stuff I use on my page... It says: Parse error: parse error in /3w/euweb.cz/p/parobek/zuzkeconfirm.php on line 29 I'll mark that line in code Thanks in advance for your time and help. <html> <body> <?php $cislovsringu = $_POST[cislo]; echo $cislovsringu; echo '<br>'; echo $cislovsringu{3}; echo $cislovsringu{1}; echo $cislovsringu{4}; echo '<br>'; $dlzka = strlen($cislovsringu); echo $dlzka; echo '<br>'; echo '<br>'; $poleHodnot = array( "1" => "jednotky" , "2" => "desiatky" , "3" => "stovky" , "4" => "tisicky" , "5" => "desatisicky" , "6" => "stotisicky" , "7" => "miliony" , "8" => "desatmiliony" , "9" => "stomiliony" , "10" => "miliardy" ); for ($i = $dlzka ; $i > -1; $i-- ) { // THIS IS LINE 29 THAT ERROR REFERS TO $polePoctu[$poleHodnot[$i]] = (int)cislovstringu[$i] ; } print_r($polePoctu); //1 364 720 434 ?> </body> </html>
  18. Sorry for beeing such a douche. I realy appreciate your help, I'm kind of new in this stuff... <html> <body> <?php $NumberInStringFormat = $_POST[number]; echo $NumberInStringFormat; echo '<br>'; $lenght = strlen($NumberInStringFormat); echo $lenght; echo '<br>'; echo '<br>'; $IdetificatorArray = array( "1" => "ones" , "2" => "tens" , "3" => "houndrets" , "4" => "tousands" , "5" => "tentousands" , "6" => "houndredtousands" , "7" => "milions" , "8" => "tenmilions" , "9" => "houndredmilions" , "10" => "bilions" ); for ($i = $lenght ; $i > -1; $i-- ) { // this is the line that parse error refers to $valueArray[$IdetificatorArray[$i]] = (int)NumberInStringFormat[$i] ; } print_r($valueArray); ?> </body> </html>
  19. Ok I did what you told me to and now it says: Parse error: parse error in /3w/euweb.cz/p/parobek/zuzkeconfirm.php on line 29
  20. well sorry for that, but that's not the problem couse the ; is missing only here I have it on my page... I'll fix it right away but the problem stays the same.... Parse error: parse error, expecting `')'' in /3w/euweb.cz/p/parobek/zuzkeconfirm.php on line 29 Here is corected code: <html> <body> <?php $NumberInStringFormat = $_POST[number]; echo $NumberInStringFormat; echo '<br>'; $lenght = strlen($NumberInStringFormat); echo $lenght; $IdetificatorArray = array( "1" => "ones" , "2" => "tens" , "3" => "hundreats" , "4" => "tousands" , "5" => "tentousands" , "6" => "houndrettousands" , "7" => "milions" , "8" => "tenmilions" , "9" => "houndretmilions" , "10" => "bilions" ); for ($i = $lenght ; $i > -1 ; $i-- ) { $valueArray = array( $IdetificatorArray[$i] => (int)$NumberInStringFormat[$i] ); } print_r($valueArray); //1 364 720 434 ?> </body> </html> PS: What I was trying to do is get a array, for example if imput $numberInStringFormat is 345 the array should look like this: [hundreats] => 3; // all of these in int format... [tens] => 4; [ones] => 5;
  21. <html> <body> <?php $NumberInStringFormat = $_POST[number]; echo $NumberInStringFormat; echo '<br>'; $lenght = strlen($NumberInStringFormat); echo $lenght; $IdetificatorArray = array( "1" => "ones" , "2" => "tens" , "3" => "hundreats" , "4" => "tousands" , "5" => "tentousands" , "6" => "houndrettousands" , "7" => "milions" , "8" => "tenmilions" , "9" => "houndretmilions" , "10" => "bilions" ); for ($i = $lenght ; $i > -1 $i-- ) { $valueArray = array( $IdetificatorArray[$i] => (int)$NumberInStringFormat[$i] ); } print_r($valueArray); //1 364 720 434 ?> </body> </html> PS: What I was trying to do is get a array, for example if imput $numberInStringFormat is 345 the array should look like this: [hundreats] => 3; // all of these in int format... [tens] => 4; [ones] => 5;
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.