Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

General Discussions


You are currently viewing our General Discussions as a guest. Please register to participate.
Login



Reply
Old 07-25-2006, 03:03 AM Some PHP help
Hoang's Avatar
$$$

Posts: 1,210
Trades: 1
I have this code:
Code:
echo "Copy and paste this code onto your profile!<br /><textarea cols='56' rows='4'><ul style='list-style-type: none; padding: 0; margin: 0;'><li class='nametext'>About You...</li><li class='text'>$z1:: $a1</li><li class='text'>$z2:: $a2</li><li class='text'>$z3:: $a3</li><li class='text'>$z4:: $a4</li><li class='text'>$z5:: $a5</li><li class='text'>$z6:: $a6</li><li class='text'>$z7:: $a7</li><li class='text'>$z8:: $a8</li><li class='text'>$z9:: $a9</li><li class='text'>$z10:: $a10</li><li class='text'>$z11:: $a11</li><li class='text'>$z12:: $a12</li><li class='text'>$z13:: $a13</li><li class='text'>$z14:: $a14</li></ul><br /><ul style='list-style-type: none; padding: 0; margin: 0;'><li class='nametext'>Have You Ever...</li><li class='text'>$y1:: $b1</li><li class='text'>$y2:: $b2</li><li class='text'>$y3:: $b3</li><li class='text'>$y4:: $b4</li><li class='text'>$y5:: $b5</li><li class='text'>$y6:: $b6</li><li class='text'>$y7:: $b7</li><li class='text'>$y8:: $b8</li><li class='text'>$y9:: $b9</li><li class='text'>$y10:: $b10</li><li class='text'>$y11:: $b11</li><li class='text'>$y12:: $b12</li><li class='text'>$y13:: $b13</li><li class='text'>$y14:: $b14</li></ul><br /><ul style='list-style-type: none; padding: 0; margin: 0;'><li class='nametext'>Who Was The Last Person to...</li><li class='text'>$x1:: $c1</li><li class='text'>$x2:: $c2</li><li class='text'>$x3:: $c3</li><li class='text'>$x4:: $c4</li><li class='text'>$x5:: $c5</li><li class='text'>$x6:: $c6</li><li class='text'>$x7:: $c7</li><li class='text'>$x8:: $c8</li><li class='text'>$x9:: $c9</li><li class='text'>$x10:: $c10</li><li class='text'>$x11:: $c11</li><li class='text'>$x12:: $c12</li><li class='text'>$x13:: $c13</li><li class='text'>$x14:: $c14</li></ul><br /></textarea><br /><br />";
And then I'm getting this error:
Parse error: syntax error, unexpected T_LNUMBER

Is it a missing ";" or something? I can't seem to find the problem :helpsmilie:
Hoang is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-25-2006, 03:24 AM
Hoang's Avatar
$$$

Posts: 1,210
Trades: 1
It was a problem with Joomla and its TinyMCE editor. Fixed it now. PHP newb, for those wondering.
Hoang is offline
Reply With Quote
View Public Profile
 
Old 07-25-2006, 03:38 AM
Junior Talker

Posts: 69
Trades: 0
Works fine for me, however I suggest you replace it with the following:
PHP Code:
echo 'Copy and paste this code onto your profile!<br />
<textarea cols="56" rows="4">
<ul style="list-style-type: none; padding: 0; margin: 0;">
<li class="nametext">About You...</li>
<li class="text">'
$z1 .':: '$a1 .'</li>
<li class="text">'
$z2 .':: '$a2 .'</li>
<li class="text">'
$z3 .':: '$a3 .'</li>
<li class="text">'
$z4 .':: '$a4 .'</li>
<li class="text">'
$z5 .':: '$a5 .'</li>
<li class="text">'
$z6 .':: '$a6 .'</li>
<li class="text">'
$z7 .':: '$a7 .'</li>
<li class="text">'
$z8 .':: '$a8 .'</li>
<li class="text">'
$z9 .':: '$a9 .'</li>
<li class="text">'
$z10 .':: '$a10 .'</li>
<li class="text">'
$z11 .':: '$a11 .'</li>
<li class="text">'
$z12 .':: '$a12 .'</li>
<li class="text">'
$z13 .':: '$a13 .'</li>
<li class="text">'
$z14 .':: '$a14 .'</li>
</ul><br />
<ul style="list-style-type: none; padding: 0; margin: 0;">
<li class="nametext">Have You Ever...</li>
<li class="text">'
$y1 .':: '$b1 .'</li>
<li class="text">'
$y2 .':: '$b2 .'</li>
<li class="text">'
$y3 .':: '$b3 .'</li>
<li class="text">'
$y4 .':: '$b4 .'</li>
<li class="text">'
$y5 .':: '$b5 .'</li>
<li class="text">'
$y6 .':: '$b6 .'</li>
<li class="text">'
$y7 .':: '$b7 .'</li>
<li class="text">'
$y8 .':: '$b8 .'</li>
<li class="text">'
$y9 .':: '$b9 .'</li>
<li class="text">'
$y10 .':: '$b10 .'</li>
<li class="text">'
$y11 .':: '$b11 .'</li>
<li class="text">'
$y12 .':: '$b12 .'</li>
<li class="text">'
$y13 .':: '$b13 .'</li>
<li class="text">'
$y14 .':: '$b14 .'</li>
</ul><br />
<ul style="list-style-type: none; padding: 0; margin: 0;">
<li class="nametext">Who Was The Last Person to...</li>
<li class="text">'
$x1 .':: '$c1 .'</li>
<li class="text">'
$x2 .':: '$c2 .'</li>
<li class="text">'
$x3 .':: '$c3 .'</li>
<li class="text">'
$x4 .':: '$c4 .'</li>
<li class="text">'
$x5 .':: '$c5 .'</li>
<li class="text">'
$x6 .':: '$c6 .'</li>
<li class="text">'
$x7 .':: '$c7 .'</li>
<li class="text">'
$x8 .':: '$c8 .'</li>
<li class="text">'
$x9 .':: '$c9 .'</li>
<li class="text">'
$x10 .':: '$c10 .'</li>
<li class="text">'
$x11 .':: '$c11 .'</li>
<li class="text">'
$x12 .':: '$c12 .'</li>
<li class="text">'
$x13 .':: '$c13 .'</li>
<li class="text">'
$x14 .':: '$c14 .'</li>
</ul><br /></textarea><br /><br />'

By the way - no need to put those line<br />eaks everywhere. Use margin and padding in CSS instead.
lenz is offline
Reply With Quote
View Public Profile
 
Old 07-25-2006, 01:30 PM
Tran's Avatar
Junior Talker

Posts: 1,223
Trades: 3
TinyMCE = lame jk haha.. glad you fixed it
__________________

Please login or register to view this content. Registration is FREE
Tran is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Some PHP help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
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 On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66005 seconds with 12 queries