Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. you will need to edit how the dialogue box is constructed, should be in the css file that you were given during the install..im not exactly sure what classes are given to the dialogue box..shouldn't be too hard to find though
  2. I don't even see an input with the name of "path" in your code...how would you grab $_POST['path'] if it doesn't exist..? Unless i'm just missing it
  3. dcro2 is referring to the custom function that you have specified in your code...pt_register()
  4. stop talking like a literature major. In certain circumstances, I entirely agree -- the parser is far too forgiving and lets novice users walk down the primrose path without so much as a warning. DISTINCT is mean to remove duplicate rows -- but that obscures the intent of the query in ways that GROUP BY does not. I'm not sure why you keep feeling the need to couch all of your statements with theoretical arguments -- either you agree or you disagree. I don't care if some theory agrees with me or not -- this isn't a peer-reviewed scientific journal, and no one needs to provide written evidence of their opinions & experience.
  5. ini_set("error_reporting", E_ALL)
  6. first question, you most certainly can <div><?php print "<div>This is another div</div>"; ?></div>
  7. I would recommend encrypting your password before db insertion $username = $_POST['username']; $password = $_POST['password']; $submit = $_POST['submit']; if(!empty($username) && !empty($password)) //make sure that both fields are filled out.. { $query = mysql_query("SELECT * FROM urbex_users WHERE username = '$username' AND password = '$password'"); $num_rows = mysql_num_rows($query); if($num_rows > 0){ //if there is a match in the database $row = mysql_fetch_array($query, MYSQL_ASSOC); $userid = $row['user_id']; $username = $row['username']; $_SESSION['urbex_username']=$username; $_SESSION['urbex_user_id']=$userid; echo "<p>You have successfully logged in! Welcome back $username</p>"; echo "<meta http-equiv=\"refresh\" content=\"2;URL=index.php\">"; } else echo "<p>Login details incorrect. Please <a href=\"login.php\">Login</a> again!</p>"; } }
  8. set your error_reporting to E_ALL if it isn't already.. what errors do you receive in your error.log?
  9. your params are a little backwards, and you did not space your from header correctly.. $to = 'mail@mail.com'; $subject = 'test subject'; $from = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $headers = "From: <{$email}>"; mail($to, $subject, $message, $headers, $from);
  10. you will need to put session_start on the top of every page that you are planning on using sessions
  11. there a various resources on this matter http://www.google.com/#sclient=psy&hl=en&source=hp&q=linux+php5+install&pbx=1&oq=linux+php5+install&aq=f&aqi=g1g-v1&aql=&gs_sm=e&gs_upl=1707l5552l0l5714l20l14l0l0l0l2l989l7151l3-2.1.4.4l11&bav=on.2,or.r_gc.r_pw.&fp=b1778f3db6f45f54&biw=837&bih=287
  12. true it should, that was an educate matter, most likely you do not have a PHP server installed..? As tendolla said, a view source in you browser should give you more of an understanding as to what the parser is doing, if you do have a PHP server installed that is
  13. not really sure what you are trying to accomplish, but you will most likely want to increment a variable to distinguish the number iteration you are in.. <div class="form2"> <form action="" method="post" id="bioConfigurationsForm" class="niceform"> <?php $count = 0; while ($row = mysqli_fetch_array($groupsResult, MYSQLI_ASSOC)) { if($count == 1){ //first iteration, act accordingly }elseif($count == 2){ //second iteration, act accordingly } echo "<fieldset>"; echo "<legend>".$row['groupName']."</legend>"; echo "</fieldset>"; $count++; } formEdit($contentPageID,$pageName); formFooter($fileName,$pageName); ?> </form> </div>
  14. you will want to include the php before the closing </body> tag <html> <head> <title>Bob's Auto Parts - Order Results</title> </head> <body> <h1>Bob's Auto Parts</h1> <h2>Order Results</h2> <?php echo "<p>Order submitted.</p>"; ?> </body> </html>
  15. something like this.. $sql = "SELECT * FROM table_name"; $query = mysql_query($sql); print "<table>"; while($row = mysql_fetch_array($query, MYSQL_ASSOC)){ $id = $row['id']; $name = $row['name']; $label = $row['label']; if($label == ''){ print "<tr><td>$id</td><td>$name</td></tr>"; }else{ print "<tr><td>$id</td><td>$label</td></tr>"; } } print "</table>";
  16. don't post your ip, he doesn't need that to tell you how to do this
  17. sure it is $total += $my_no; right there.. OP print "The average is: $average"; I think you should go back to the basics. You're trying to update a variable that has never been defined before. $total needs to be instantiated before you can start throwing things at it. $total = 0; // this would be instantiating it right you are, I don't need to go back to basics..human error
  18. lol...your're too quick with the replies..keep beating me... :'(
  19. sure it is $total += $my_no; right there.. OP print "The average is: $average";
  20. There's no "should" should about it. It does work lol right but for someone that is new to PHP, dealing with arrays and array functions might not be the best approach here...it's important that he understands what he is doing instead of simply copy pasting code...but yes your code w :-*ill work too...
  21. same code I posted Your code would throw an undefined variable. and where would the undefined variable be?
  22. huh? what exactly is your issue?
  23. same code I posted
  24. should work but is more work than needs to be done here
×
×
  • 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.