Current location: Hot Scripts Forums » Programming Languages » PHP » Need Help In PHP Programming for a single code suggestion !!


Need Help In PHP Programming for a single code suggestion !!

Reply
  #1 (permalink)  
Old 11-27-04, 09:19 AM
CyberRomeo CyberRomeo is offline
New Member
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Need Help In PHP Programming for a single code suggestion !!

Hai Their
The Great PHP programmers Out Their I need a simple help in PHP programming I am developing an Online Address Book in PHP for school students to store their friends details online

I was successful in adding the data and reserving the data from the database to a webpage but as I feel I should bring some Interactivity to the address book on the client side I planned to show the address details like
Class name
Home Address
E mail address
Nick name
Animated on the webpage using JavaScript
For that The Part of JavaScript code along with the PHP code on the Page is Like this

<?php

print "\n";
Print " TextGlow.Blue(\""$classname\"");\n";
print "\n";

?>
<?php

print "\n";
Print " TextGlow.white(\""$Address\"");\n";
print "\n";

?>

Where the output to the Browser Should be

TextGlow.Blue("Value of The class name variable ");
TextGlow.white("Value of The Address variable ");


But For the code to work fine The Resultant JavaScript Output should be in a Line

But here I am getting the result as

TextGlow.Blue("Value of The class name variable
");
TextGlow.white("Value of The Address variable
");

where after the variable the the semi colon and bracket is coming on the Next Line which shows JavaScript error on the browser making the script Not to work
Can any body throw me a light into how can I bring the result in a single line so that I may get the result like :
TextGlow.Blue("Value of The class name variable ");
TextGlow.white("Value of The Address variable ");

And not

TextGlow.Blue("Value of The class name variable
");
TextGlow.white("Value of The Address variable
");
I need the result on a Single Line for the browser so that their can be any error I have used and tried many methods I have used
“\n”
It dint work for me
I have also Tried
<?=$ classname?>"

<?=$ address?>"
That method also it also dint work I tried using
Echo instead of print that also dint work

It would be a great help if any one could throw some help on the topic as the final product will be an Open Source Free Program and it will be given free for download pls help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-27-04, 11:38 AM
FiRe FiRe is offline
Code Guru
 
Join Date: Oct 2004
Location: UK
Posts: 801
Thanks: 0
Thanked 0 Times in 0 Posts
try:

echo '
TextGlow.Blue("".$classname."");
';
__________________
Alexa Share <-- Trade virtual shares in websites with this online game.

codR.us <-- Submit and vote for your favorite code snippets with codR.us.

XEWeb.net <-- The ultimate PHP resource network.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouseover with Single PHP page rjwebgraphix PHP 7 09-16-04 06:15 PM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 12:19 PM
PHP code on a remote file tonniar .rm PHP 2 05-24-04 03:32 AM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 01:10 PM
protecting code in PHP ckb PHP 12 01-02-04 09:53 AM


All times are GMT -5. The time now is 01:42 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.