Frustrating codes [RESOLVED]

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.

Frustrating codes [RESOLVED]

Postby Epiales » Sun Sep 28, 2014 3:46 am

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
Last edited by Epiales on Sun Sep 28, 2014 6:40 pm, edited 1 time in total.
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
 
Posts: 1119
Joined: Wed Aug 14, 2013 8:38 pm
Has thanked: 62 times
Been thanked: 6 times

Re: Frustrating codes

Postby a_bertrand » Sun Sep 28, 2014 4:36 am

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>";
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
a_bertrand
New Worlds Engine creator
 
Posts: 1535
Joined: Mon Feb 25, 2013 8:46 am
Has thanked: 15 times
Been thanked: 23 times

Re: Frustrating codes

Postby Epiales » Sun Sep 28, 2014 5:17 pm

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!
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
 
Posts: 1119
Joined: Wed Aug 14, 2013 8:38 pm
Has thanked: 62 times
Been thanked: 6 times

Re: Frustrating codes

Postby Epiales » Sun Sep 28, 2014 6:40 pm

Okay, after a few more hours, I have it. Thanks again for starting me in the right place with the above code :)

EPI
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
 
Posts: 1119
Joined: Wed Aug 14, 2013 8:38 pm
Has thanked: 62 times
Been thanked: 6 times


Return to Beginner Help and Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x