dennismonsewicz
Members-
Posts
1,136 -
Joined
-
Last visited
Everything posted by dennismonsewicz
-
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());
-
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";
-
[SOLVED] populates the database but shows different person
dennismonsewicz replied to sandbudd's topic in PHP Coding Help
something else is wrong in the PHP code -
[SOLVED] populates the database but shows different person
dennismonsewicz replied to sandbudd's topic in PHP Coding Help
change SELECT * FROM mastodon WHERE name = $_GET['name'] to $name = $_GET['name']; SELECT * FROM mastodon WHERE name = '$name' -
[SOLVED] populates the database but shows different person
dennismonsewicz replied to sandbudd's topic in PHP Coding Help
what does your updated code look like? -
[SOLVED] populates the database but shows different person
dennismonsewicz replied to sandbudd's topic in PHP Coding Help
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'] -
[SOLVED] populates the database but shows different person
dennismonsewicz replied to sandbudd's topic in PHP Coding Help
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 -
scrap this post... Its order by not sort by... I am a dumbass
-
$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?
-
I would look into creating a switch to perform your action(s) on page2.php
-
you forgot single quotes around some of the variables in the VALUES
-
another little help needed with queries.
dennismonsewicz replied to seany123's topic in PHP Coding Help
how are you getting $gang['money']? -
[SOLVED] Error message not displaying
dennismonsewicz replied to dennismonsewicz's topic in PHP Coding Help
Problemed solved lol... its been too long of a day. TKS! -
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?
-
[SOLVED] Coudl someone explain this line of code
dennismonsewicz replied to rv20's topic in PHP Coding Help
its short hand for an if/else statement. if page is set then get page else do whatever "main" is -
[SOLVED] Unexpected T_STRING What is going on here!?
dennismonsewicz replied to TGWSE_GY's topic in PHP Coding Help
check your include file of config.php for any unclosed brackets -
HTML form, insert an image when you click the submit button
dennismonsewicz replied to alexislalas's topic in PHP Coding Help
look into submitting forms using AJAX -
[SOLVED] Can't figure why my form is not inserting...
dennismonsewicz replied to pneudralics's topic in PHP Coding Help
XAMPP is a great program. Kudos KingPhillip -> I bow before thee