Jump to content

Alanmoss

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Alanmoss's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks very much and it was a mistake , i did not mean to post it twice but i didn't think it was posted firts time . Thanks, alan
  2. Hi , Can someone tell me why this script redirects <? $var = 3; if($var = 2) { header ("Location: page2.php"); exit(); } else { echo' <p>Page 1 end</p>'; } ?> Thanks, Alan.
  3. Hi , Can someone tell me why this script redirects <? $var = 3; if($var = 2) { header ("Location: page2.php"); exit(); } else { echo' <p>Page 1 end</p>'; } ?> Thanks, Alan.
  4. [!--quoteo(post=378099:date=May 29 2006, 04:07 PM:name=Randy)--][div class=\'quotetop\']QUOTE(Randy @ May 29 2006, 04:07 PM) [snapback]378099[/snapback][/div][div class=\'quotemain\'][!--quotec--] you need a bit of javascript for that, i remember doing that for a calendar i made, when you selected the month, the days dropdown box was filled. Theres plenty stuff on google that'll help you [/quote] Thanks for that I'll go have a look
  5. How do you have a drop down list for a user to select a Categorie and then a sub categorie drop down list , but without loosing the first drop down list selection, when you click the second drop down list and redirect all to the same page, to show both selections, and the option to change either. Thanks, Alan
  6. [!--quoteo(post=378067:date=May 29 2006, 02:12 PM:name=Randy)--][div class=\'quotetop\']QUOTE(Randy @ May 29 2006, 02:12 PM) [snapback]378067[/snapback][/div][div class=\'quotemain\'][!--quotec--] try changing MYSQL_NUM to MYSQL_ASSOC MYSQL_NUM returns an array like: [0] -> Hello [1] -> Hi whereas MYSQL_ASSOC returns an array like: [Money] -> 12 [Tax] -> 17.5 you can refer to a MYSQL_ASSOC array with $array['tax'] which is what you seem to be using [/quote] Thanks Very Much it works.
  7. I'am trying to populate a drop down list from my date base The drop down list shows the correct number of entrys from the table but they are blank on the drop down list. What have I done wrong . I think its a simple syntax error but I just can't see it. Help please. Here's the code: [code] echo '<div align="center"> <form method="get" action="users_online.php"> <select name="type"> <option value="">Choose a Category:</option> '; // Retrieve and display the available categories. $query = 'SELECT * FROM currency ORDER BY currency_id'; $result = mysql_query ($query); while ($row = mysql_fetch_array ($result, MYSQL_NUM)) { //this line is the problem     echo '<option value="'.$row['exchange_rate'].'">'.$row['country_name'].'</option>'; } // Complete the form. echo '</select> <input type="submit" name="submit" value="Go!"> </form> </div>'; if(isset($_POST['type']))     {         $name = $_POST['type']; echo'<p>'.$name.'</p>'; }[/code]
  8. [!--quoteo(post=341371:date=Jan 31 2006, 02:21 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Jan 31 2006, 02:21 AM) [snapback]341371[/snapback][/div][div class=\'quotemain\'][!--quotec--] Did you copy the Javascript at the top of the document? Dreamweaver is a huge fan of putting code at the top of the page. [/quote] Yes I copied the Javascript into the header.
  9. Hi, I'm new to this so go easy. I'm trying to place a rollover image on my site. I create the image on an html page in dreamweaver Then copy and paste to echo in the php page. and replace the single quote with double quotes but still does not work? What have I forgot to do. Please help
×
×
  • 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.