Jump to content

Search the Community

Showing results for tags 'pho'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 2 results

  1. Hey there, I'm trying to make a simple point adding system and it works so far, but it works with a submit button and not an image. So if i click the button it will add 20 'points' to the database i provided but this does not seem to work with an image. Can someone help me with this, i'm kinda new to php. Code: <?php //defining username and amount of points to give + the current points $username = 'djexploit'; $seepoints = mysql_query("SELECT points FROM members WHERE username='$username'") or die(mysql_error()); $fetchresults = mysql_fetch_row($seepoints); $currentpoints = $fetchresults['0']; echo "Current points are: $currentpoints points."; $points = $currentpoints + 20 ; if(isset($_POST['submit'])) { $newpoints = $points; //the updating of the points field mysql_query("UPDATE `members` SET `points` = '$points' WHERE `username`= '$username'") or die(mysql_error()); echo "The amount of points has been updated. You now have $newpoints"; } else { echo '<br>click the image to add 20 points'; } ?> <html> <body> <form id="form" action="give.php" method="post"> <a href="http://www.google.com"><input type="image" src="http://hamovhotov.com/advertisement/wp-content/uploads/2007/03/468x60ad.gif" name="submit" value="submit"></a> </form> </body> </html>
  2. Hi all, I have a page with 3 comboboxes. After selecting options from the three. Onclick of the submit button I would like for an image to load in dynamically for that selection. What would the easiest and best way to implement such a feature ? Any help would be much appreciated ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.