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