Printer Friendly Version
Email this thread to a friend
|
what is best php or html? (In: General Search Engine Optimization)
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
cbirdsong22
Joined: Feb 27, 2006
# Posts: 82
|
Posted: 2006-Jun-24 02:28
Hi,
my site has the following PHP code:
if ($s == 0)
{
print "<font face=arial size=2>No advertisement has been posted- Be the first to advertise in your town this week.</font>";
}
this basically says, if no data is present, say the above.
How can I make it so my PHP says, if no ads are present, run this javascript (it's a basic script).
any help would be greatly appreciated.
PS.. Clearly, I'm a PHP novice.
|
 |
Dinkar
Staff
Joined: Aug 12, 2001
# Posts: 4391
|
Posted: 2006-Jun-24 06:53
Write JS function in HTML head and call it using php's print function.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|