Jump to content

devstudio

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    pngwyn22
  • MSN
    pngwyn22@hotmail.com
  • Website URL
    http://www.developersstudio.com/
  • ICQ
    8665218
  • Yahoo
    nathanc22

Profile Information

  • Gender
    Male
  • Location
    Boise, Idaho

devstudio's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My apologies for the oversights. Happy it is working for you! Best, Nathan
  2. It's late, I will simply present another method. index.php <div id="top_sellers_col1" onMouseOver="document.getElementById('ts_over_col1').style.display='block'" onMouseOut="document.getElementById('ts_over_col1').style.display='none"> <div id="ts_over_col1" class="dd-hidden">£32.99<br />RRP: £600<br />Save: A lot! <a href="javascript:void(0);"> <img src="bully.jpg" width="117px" height="178px" alt="Bully" class="col_img" /> <div id="col_info">Bully: Scholarship Edition<br />(Xbox 360)</div> </a></div> body.css (relevant data) #col_info { /* You will want to change this styling */ z-index:1000; clear:both; margin:0; padding:0; font: 16px/28px arial; font-weight:bold; padding-top:5px; position: absolute; } .dd-shown { display:block; } .dd-hidden { display:none; } All of that should parse. I am off to bed, if you need more help... I will check in the morning. P.S. Looks like your original code had an extra div in there near "Save a Lot!" -- That may have been your problem all along. Best, Nathan
  3. I am not entirely sure I understand. But I am going to assume your "WHERE" clause is all that needs to change. switch($category) { case 'WEBSITES': $whereTxt = " WHERE category = 'websites'"; break; case 'SOMETHINGELSE': $whereTxt = " WHERE category = 'SOMETHINGELSE'"; break; } if($whereTxt) { $queryTxt = "SELECT * FROM table ".$whereTxt; } else { // Select everything, or error? } No idea by what you mean that you need to do the same thing in JS. Best, Nathan
  4. Here is a good/basic example: http://www.w3schools.com/js/js_form_validation.asp You will find that they use an onSubmit for the entire form. Remove that, and simply do an onChange, to validate the field as they leave it. When the entire form validates properly you can update your submit button. Hint: You can use disabled on the button: <input id="submitButton" type="submit" disable="true"> -- When it validates use: document.getElementbyId('submitButton').disable="false"; Best, Nathan
  5. Sets a configuration option in your ini file. (http://us3.php.net/ini_set) ini_set ("SMTP","mail.pitpro.com.au"); -- Sets your SMTP server in PHP ini to the server listed. ini_set('sendmail_from',"sales@pitpro.com.au") -- Sets your return address in PHP ini. -- btw, just noticed this line doesn't have a semicolon terminating the end. Perhaps if you have errors surpressed, this is just a simple parse error? Best, Nathan
  6. foreach($_POST as $key => $val) { if($key = "submit") {break;} if($key != "submit") { foreach($val as $date => $gig) { mysql_query($query) or print "First: " and die(mysql_error()); mysql_query($query2) or print "Second: " and die(mysql_error()); } } } if($key = "submit") {break;} - Will always evaluate to true because you are using an assignment operator (successfully, which returns true/1). if($key == "submit") {break;} As far as what you didn't understand. Sounds like you ended up implementing it in the end anyways. Best, Nathan
  7. New lines in text areas are "\n". Explode on \n and you should get what you are looking for. Best, Nathan
  8. Change all of your link references to look like these: To Select Game: <a href="<?php echo $_SERVER['PHP_SELF'] ?>?game=GH">Guitar Heo</a> To Select Console: <a href="<?php echo $_SERVER['PHP_SELF'] ?>?game=<?php ehco $_GET['game']; ?>&console=PS2">PS2</a> To Select Difficulty: <a href="<?php echo $_SERVER['PHP_SELF'] ?>?game=<?php ehco $_GET['game']; ?>&console=<?php ehco $_GET['console']; ?>&diff=Easy">Easy</a> <a href="<?php echo $_SERVER['PHP_SELF'] ?>?game=<?php ehco $_GET['game']; ?>&console=<?php ehco $_GET['console']; ?>&diff=Medium">Medium</a> [etc...] Best, Nathan
  9. In that case, you can use the REQUEST_URI, as explained in the first example. However if it is to be architected like the example link, I would still use the switch case to determine what main "action" they are performing and then in the suburl's just include what is relevant from the current information. <?php if(!empty($_GET['id']) && file_exists("./$_GET[id].php")){ include("./$_GET[id].php"); } print("<a href=\"?id=hello\">Hello Page</a> | <a href=\"?id=goodbye\">Goodbye Page</a><br><br>"); switch($_GET['id']) { case 'hello': break; echo "<a href=\"?id=".$_GET['id']."&sub_id=Bob\">Hello Bob</a>"; echo "<a href=\"?id=".$_GET['id']."&sub_id=John\">Hello John</a>"; case 'goodbye': echo "<a href=\"?id=".$_GET['id']."&sub_id=Bob\">Goodbye Bob</a>"; echo "<a href=\"?id=".$_GET['id']."&sub_id=John\">Goodbye John</a>"; break; } ?>
  10. Should be able to do: mysql_query("UPDATE users SET money=money+money WHERE username='$username'"); -or- mysql_query("UPDATE users SET money=money*2 WHERE username='$username'"); MYSQL is probably better at it then php, because the value will never even be set in php's memory this way. Best, Nathan
  11. Switch to Euros?! If you have access to MySQL this may be of some help. http://www.biorust.com/tutorials/detail/256/en/
  12. It is indeed most-likely a server problem. You should be getting a mailer daemon at the reply-to address. Try changing the reply-to address to one of your hotmail accounts. If you could see a mailer-daemon, my guess would be something with the RCPTHOSTS config: Error 553. In a nutshell, the server you are trying to send from isn't authenticated or allowed to send messages to the SMTP server you are mailing to, but for whatever odd reason is acting with authority when routing mail to hotmail. Best, Nathan
  13. http://www.php.net/array_intersect ... should do it.
  14. Naming Convention (because of php4) http://drupal.org/coding-standards Best, Nathan
×
×
  • 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.