PHP issue- Need Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mirana
Forum Newbie
Posts: 9
Joined: Wed Dec 08, 2010 11:56 pm

PHP issue- Need Help

Post by mirana »

Hello Guys,

I Have a question regarding a real estate website.

I bought a webkit for Real Estate business and I'm trying to customize it. I'm new to PHP and I'm kind of stuck now :(

Ex:

Picture 5
Video 3
Document 8

instead of number I would like to replace with * .

Picture *
Video *
Document *

I checked Picture, video document, it is in text field but when ever I type a letter or char it always replace zero like this

Picture 0
Video 0
Document 0

Does anyone know what is happening?

Thank you
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: PHP issue- Need Help

Post by social_experiment »

If you could paste the offending code it would aid the troubleshooting process :)
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
mirana
Forum Newbie
Posts: 9
Joined: Wed Dec 08, 2010 11:56 pm

Re: PHP issue- Need Help

Post by mirana »

<tr bgcolor="#EAF8FE">
<td height="50"><strong>Max. Videos</strong></td>
{section name=var loop=$package_id}
<td align="center">{$package_video[var]}</td>
{/section}
</tr>
---------------------------------------------------------------------------------
$txt_field .= "package_listing_video;";
--------------------------------------------------------------------------------
I want to put * instead of 0 or any number that can only take.

Max Video * : 0

Hopefully I explained ok :?
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: PHP issue- Need Help

Post by greyhoundcode »

Not too clear about what you're after, but I assume this isn't viable for you:

[syntax]<td height="50"><strong>Max. Videos *</strong></td>[/syntax]
(Noting the asterix)
Post Reply