Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. Are you sure that all of the conditions are being met in order for $msg to have a value?
  2. In the SQL, use UNIX_TIMESTAMP() to convert the daytime field to a TIMESTAMP, then use the php function date to format it.
  3. Arrays need to be declared before you can push values onto them. You define the first array $itemcode_array = array(); but not the other two.
  4. I am not familiar with that either, but if you are simply trying to remove characters from a string, use str_replace
  5. Use JS events to change the CSS direction: property of the <texarea>.
  6. can you provide the relevant code please? The correct way to do this would be to modify the CSS.
  7. Well, that's relationships between tables.. I'm talking complete different databases. you think the concept is any different? Referential Integrity has absolutely NOTHING to do with multiple databases. From IBM... Debbie As noted, you can most certainly reference tables between databases, and if the databases are to relate in any specific way, you need to. Please do not read a quick article on a certain subject and pretend that you know what you are talking about, you don't. I was responding to a suggestion of using separate databases, which in this case would not benefit you in any sort of way. To your question, encrypting data to be inserted into a db table is a waste of resources and db space. Simply prevent SQL injection in the first place using the methods that you have already been given.
  8. Well, that's relationships between tables.. I'm talking complete different databases. you think the concept is any different?
  9. It's called referential integrity, and it should be practiced.
  10. that is the exact thread I was referring to. This topic should be continued there, I posted the last reply, a response is needed. And my replies are most certainly not short there. If you do not want my help, I do not have to give it.
  11. would that be a join statement ? yes, refer to the join documentation for correct syntax
  12. echo mysql_num_rows($result); = 0 this means that there are 0 results being returned. Something is not right in the SQL if you are expecting results.
  13. then there aren't any rows being grabbed from your query. Have you debugged your query?
  14. in the mysql_num_rows call, the variable should be $results, not $result. what exactly are you asking?
  15. didn't we discuss this topic in the application design forum a few days ago? I gave a very detailed answer in that thread.
  16. not a problem, sometimes the easiest fixes are the hardest to spot.
  17. this is because a textarea accepts text as plain/text instead of html. There are ways to convert the text in a textarea to html, what exactly are you trying to do?
  18. Look at this bug report https://bugs.php.net/bug.php?id=34536 It should be returning a value. As a quick fix, change the header to header("location:home.php?myusername=" . $myusername); and grab the value in home.php using $_POST['myusername'];
  19. If this is solved, please post the solution.
  20. well you are sending $myusername to home.php, which comes from this line in the checklogin page: $myusername=$_POST['myusername']; So it should contain the username that the user enters. Check to see if register_globals is turned on, place this code at the top of the page. <?php echo "Register Globals: " . ini_get('register_globals'); ?>
  21. <div id="leftnav"><center> <?php echo $_GET['username']; ?> <br><br>
  22. please don't double post, this belongs in the html section. Refer to my reply there.
  23. post the relevant code.
  24. this actually made me laugh. That is not how it works. Inputs are used to send form data, not divs.
  25. you have a space in the URL instead of a question mark (?). The question mark starts the query string of the URL. Use: header("location:home.php?username=" . $myusername); NOT header("location:home.php username=" . $myusername);
×
×
  • 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.