Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • what is best php or html? (In: General Search Engine Optimization)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    There are 0 guests and 1 members in the forums right now.
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    cbirdsong22
    Joined: Feb 27, 2006
    # Posts: 82

    View the profile for cbirdsong22 Send cbirdsong22 a private message

    Posted: 2006-Jun-24 02:28
    Edit Message Delete Message Reply to this message

    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

    View the profile for Dinkar Send Dinkar a private message

    Posted: 2006-Jun-24 06:53
    Edit Message Delete Message Reply to this message

    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:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. 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

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions