Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
Attention Visitor:
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > Discutii Generale

Discutii Generale Discutii generale despre PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 14.06.2008   #1
doomed
16-Bit Member
 
Data înregistrării: 14.06.2008
Mesaje: 13
Rep Power: 4
doomed is on a distinguished road
Implicit Probleme " ' ' " ' " .... :) in php

Am o mica problema .. am instalat un SMF 1.1.5 , si am vrut sa instalez pe pagina index.template.php ... sau display.template.php ... nu mai tin minte .... un contor .. insa am dat de o mica problema ...

ok , Pentru a afisa continutul html , SMF-ul foloseste sintaxa echo ' ... ', apoi, in interiorul codului html , sunt foarte multe ghilimele "" ... deci .. problema, contorul foloseste la fel , si ghilimele, si apostrof ... in momentul in care il inserez in codul html .. imi zboara pagina ... adiq browserul interpreteaza aiurea html-ul .... sigur e problema cu ghilimele ... am incercat de mai multe ori sa le grupez altfel .. sa le mai schimb intre ele ... insa nimic ...

ok, sper ca ati inteles cate ceva din toata povestea asta ... astept raspuns, poate aveti voi vreo idee .. thx ant.
peace all.
__________________
Voxum Communities - refacem internetul...
voxum.net
Top 50 SEO Director Web Romanesc
Jocuri Barbie
doomed is offline   Reply With Quote
Sponsored Links
Vechi 15.07.2008   #2
Luxian
Spamofob
 
Luxian's Avatar
 
Data înregistrării: 26.06.2006
Locație: Timișoara
Vârsta: 25
Mesaje: 398
Rep Power: 6
Luxian is on a distinguished road
Trimite un mesaj prin Yahoo pentru Luxian
Implicit

Daca scriptul foloseste
Cod PHP:
echo '<b style="color:red">test</b>'
Tu poti sa afisezi stringuri ce contin ' astfel:
Cod PHP:
echo '<b style="color:red">test\'s</b>'// va afisa test's 
Regula este urmatoarea, cand vrei sa folosesti ' intr-un string incadrat de ' atunci pui \' (regula se respecta si pentru ").

O alta varianta ar fi sa pui codul intr-o variabila, si sa dai echo la variabila respectiva. (s-ar putea sa aberez cu fraza asta, nu stiu deloc cum arata scriptul si ce ai incercat deja)
__________________
www.luxian.ro | "Prieten e cel care te învață să pescuiești, nu cel care îți dă pește!"
Oo==oO | w210 owner
Luxian is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Pornit



Ora este GMT +3. Ora este acum 02:05:53.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design