Jump to content

dennismonsewicz

Members
  • Posts

    1,136
  • Joined

  • Last visited

Everything posted by dennismonsewicz

  1. did you include this in a SQL command? usually this is how you would do an update: mysql_query("UPDATE roster SET antal='1' WHERE id='1'")or die(mysql_error());
  2. you have to include this when sending HTML emails: $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
  3. change SELECT * FROM mastodon WHERE name = $_GET['name'] to $name = $_GET['name']; SELECT * FROM mastodon WHERE name = '$name'
  4. change $insertGoTo = "thankyou.php"; to $insertGoTo = "thankyou.php?name=" . $_POST['name'] . ""; and on thankyou.php make sure to grab the name from the URL and then in your SQL: SELECT * FROM mastodon WHERE name = $_GET['name']
  5. yeah I would pass the ID of the name you are wanting to use unless you set the ID to a session. And no you do not need to put ID if it is set to auto
  6. scrap this post... Its order by not sort by... I am a dumbass
  7. $search->setQuery("SELECT * FROM #__metropcs_locator WHERE city = '$val' OR state = '$val' OR zip = '$val'"); if I add SORT BY city at the end of the above query... no results are displayed. Any suggestions?
  8. I would look into creating a switch to perform your action(s) on page2.php
  9. I would throw a mac out of the window just cause it was a mac! LINUX!!!!!
  10. you forgot single quotes around some of the variables in the VALUES
  11. Problemed solved lol... its been too long of a day. TKS!
  12. I have the following code: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; if($name == '') { $submit_msg = '<span class="errormsg">'; $submit_msg = 'There was an error processing your submission. Please try again!'; $submit_msg = '</span>'; } else { $submit_msg = '<p>Test</p>'; } echo $submit_msg; } else { ?> <form action="contactus.php" method="post" id="contactUsForm"> <p> <strong style="color:#ff0000;">*</strong> <i>is required</i><br/><br/> Name:<strong style="color:#ff0000;">*</strong><br/> <input type="text" name="name" id="name" class="fInput" style="width:300px;"/> </p> <p> Email:<strong style="color:#ff0000;">*</strong><br/> <input type="text" name="email" id="email" class="fInput" style="width:300px;"/> </p> <p> Message:<strong style="color:#ff0000;">*</strong><br/> <textarea rows="6" cols="50" class="fInput" style="width:300px;" name="message" id="message"></textarea> </p> <p> <input type="submit" id="submit" value="Submit" name="submit" /> </p> </form> <?php } ?> $submit_msg is not displaying for some reason... any suggestions?
  13. try this <td> <font face="Arial, Helvetica, sans-serif"> <?php echo "<a href='updateview_shrink4.php?cmd=edit&id=" . $id . "&lab_report_no=$lab_report_no'>" . $lab_report_no . " - Edit Shrink</a>"; ?> </font> </td> </tr> //Where I pass the data...
  14. its short hand for an if/else statement. if page is set then get page else do whatever "main" is
  15. check your include file of config.php for any unclosed brackets
  16. Are you passing the id in the URL? for example http://someurl.com/somepage.php?id=3 Also, can you use code tags when displaying code?
  17. XAMPP is a great program. Kudos KingPhillip -> I bow before thee
×
×
  • 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.