Page 1 of 1

Frustrating codes [RESOLVED]

Posted: Sun Sep 28, 2014 8:46 am
by Epiales
Okay, I've been trying for about 2 or so hours to figure out ONE LINE OF CODE! lmao :lol: :lol: It'd driving me mad. Below are the ways I have tested so far, and many more, but don't remember them all. The issue is that it's not putting the deposit amount in there.

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited <?php echo "$deposit_amount"?>  </b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited <?php echo '$deposit_amount'?>  </b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited <?php echo . '$deposit_amount'. ?>  </b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited <?php echo . "$deposit_amount". ?>  </b></center></font></span>

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited <?php echo . \$deposit_amount\ . ?>  </b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited '$deposit_amount' ?></b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited '.'$deposit_amount'.'</b></center></font></span></big>';

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited '.\'$deposit_amount'\.'</b></center></font></span></big>';
Any Idears? :D

EPI

Re: Frustrating codes

Posted: Sun Sep 28, 2014 9:36 am
by a_bertrand
solution:

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited '.$deposit_amount.'</b></center></font></span></big>';
or

Code: Select all

echo "<span id='errormess'><big><font color='red'><center><br><b>You have successfully deposited $deposit_amount</b></center></font></span></big>";

Re: Frustrating codes

Posted: Sun Sep 28, 2014 10:17 pm
by Epiales
a_bertrand wrote:solution:

Code: Select all

echo '<span id="errormess"><big><font color="red"><center><br><b>You have successfully deposited '.$deposit_amount.'</b></center></font></span></big>';
or

Code: Select all

echo "<span id='errormess'><big><font color='red'><center><br><b>You have successfully deposited $deposit_amount</b></center></font></span></big>";
You all make it look so simple :lol: :lol: :lol: But when I go to add

"$" at the beginning; number_format and "dollars" at the end of it, it messes it all up. But the code you provided does work YAY. Just need to figure ou thow to add the last two things. Thank you!

Re: Frustrating codes

Posted: Sun Sep 28, 2014 11:40 pm
by Epiales
Okay, after a few more hours, I have it. Thanks again for starting me in the right place with the above code :)

EPI