Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. $username = "test username"; $username = str_replace(" ","_",$username); print $username; // test_username
  2. the code i provided will work if incorporated correctly, have to tried outputting something in the if condition to make sure that it is being met...any errors?
  3. have you made a javascript function called "is_email"?
  4. The code I provided was not meant to be a fix, simply to debug. Glad you found a solution
  5. you will probably want to use the GROUP BY clause here, $sql = "SELECT name FROM table GROUP BY name"; or even $sql = "SELECT DISTINCT name FROM table";
  6. here
  7. you probably have you parent elements set to 100%, hard to say without seeing your code..
  8. can you paste your code on here please..
  9. do you not have a form submit button? you will want to check if the form has been passed before you execute the insertion code, also you cannot output data before calling the header() function <?php mysql_connect("localhost", "", "")or die("cannot connect"); mysql_select_db("main")or die("cannot select DB"); $data=$_POST['last']; if(!empty($data){ $mk=date("Y/m/d"); $data = mysql_real_escape_string($data); $insert_nextride=mysql_query("INSERT INTO last (id,ridereport,date) VALUES ('','$data','$mk')"); if($insert_nextride){ header("location:mb-admin.html"); exit; } else { echo "error in registration".mysql_error(); } } ?>
  10. an MD5 hash will translate your string into a 32 character hash.. so if you are seeing "pass" in you db table in the password field then something is wrong there and we will need to look at that code first being beginning to try and fix this issue..
  11. not a terrible idea, but I think that this would be more trouble then it's worth...cssfreakie brings up a good point...many quality members provide more than one of those kind of replies in a single post..
  12. this is most likely because the $menuStructures variable is getting output later than the echo...try this $menuStructures .= "<td>"; if ($row['multiLevel'] == 'Yes'){ $menuStructures .= "<a href=\"#\"><img src=\"".$managerURL."images/file_open.png\" class=\"menuCateggories\" alt=\"\" title=\"\" border=\"0\" id=\"".$row['id']."\" /></a>"; } $menuStructures .= "</td>"; same goes for the other one, instead of outputting the links...you need to concatenate them onto your variable for output..
  13. then your $password variable does not match your $pass variable..most likely because you are hashing the password twice, however this might not be what is causing this...output both variables and compare the values...
  14. glancing at the code im not really sure as nothing jumps out at me as being incorrect..what does a view source in your browser show the HTML doing?
  15. start another thread..
  16. dude chill i'm just messing with you... no homo.... p.s you are kinder than I am, I pointed php_mysql to a plethora of pagination tuts once..wants people to do the work for him/her...no thanks and its AyKay47 not AyKay7... I get PM's all the time...I ignore them...
  17. what website are you making
  18. mark topic as solved....oops I pulled a Sensei..
  19. why do you tell people to mark the topic as solved so much? I think you have told people to mark as solved in the last 20 posts I have read of yours...once the user says they are content with their issue is when you can direct them to the "Topic Solved" button...
  20. first, it would be much easier if you simply set the form action to the php page that you want to use for validation, however you can also do something like this.. function validateEmail(){ var a = $("#email").val(); $.ajax({type: "GET", url: "email_validation.php", data: "email="+a, success: function(response){ alert("Success"); } }); }
  21. please do not double post...refer to the other thread
  22. I would use the mysql BETWEEN() function here...it would be easier to help if you posted your code...
  23. ha...
  24. To add to Mikesta's statement which is also a valid point, "file_is_valid" isn't a predefined PHP function, so unless you have created this function...it will always return FALSE... I think you want is_file instead...?
  25. lets have a look at the code and approach this the best way...
×
×
  • 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.