Jump to content

gbunny

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gbunny's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for all the feedback, I'm working on a better layout now. Design has never been my strong point
  2. I have created a website that can be used to review other websites and bookmark your favorite sites. I have done some testing, but I'm sure there's probably alot that needs to be done to it. Please let me know what you guys think and if you find in problems All of the javascript used is in the page so you should be able to see it just by viewing the source. The url is http://www.ibbler.com Thanks!
  3. You can just add it in addition to what you have. That will simply tell you if the value is getting submitted or not.
  4. One other thing I think you need semi colons when you echo the checked variable you have <?=$checkaddy1 ?> and you should have <?=$checkaddy1; ?>
  5. Is the value from your form making it to the next page? Try echoing out the post value for your radio button. If it is please post your insert statement.
  6. I'm not really sure I understand what you're asking, but here's a shot. When I do this I always set a count and use an array. $sql = "SELECT mName, mFigure FROM tbl_margins WHERE mSelect = 1; $mResult = mysql_query($sql) or die (mysql_error()); $count = 0; //count to increase array index while ($margin = mysql_fetch_array($mResult)){ $m[$count] = $margin['mFigure']; //set value in array to value from database $count++; //increase count }
  7. The from and reply to settings are set in the header parameter of the mail function. The following example is from php.net <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> The full function details are here http://us2.php.net/manual/en/function.mail.php Hope this helps
  8. You have to associate your where clause with the table so it would look more like this SELECT table1.username, table2.username FROM table1, table2 where table1.username = '".$_POST['username']."' AND table2.username = '".$_POST['username']."'"
  9. lol I was just getting ready to respond with the limit 5 part. Something I like to do when setting up pages like that is actually pull 1 extra row from the database and use that extra row to determine whether or not i need to put the next button on the page or not. There's probably a better way to do this, but that works for me
  10. If you don't want to cast it as an int you could use the ltrim function. It would look something like this. <? $newString = ltrim($yourString, "0"); ?> You can find the documentation here http://www.php.net/manual/en/function.ltrim.php
  11. What data type is id in your database? It looks like you're putting quotes around it in your query, if its not some form of character this could cause a problem.
×
×
  • 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.