-
Replied To a Post in Issue with MySQL / PHP - Can't connect to local MySQL server through socket
If you're paying for hosting and if you don't have access to your own MySQL config files, I think you should contact your hosting company and ask them for help. … -
Replied To a Post in Generate unique time between two given times
I'm not sure, but most posts I've read about this notice that using the [format()](http://www.php.net/manual/en/datetime.format.php) function might work. So you would return a value that is returned by Datetime::format() instead … -
Replied To a Post in OR operator not working
Well that's pretty weird :p. The statement should then also be triggered with `||` if you ask me. -
Replied To a Post in OR operator not working
Does either of those statements return `true` or `1` or anything that is not `null` or `false`? If yes, then your `||` operator is working for sure :). -
Replied To a Post in login process doesn't recognise login details
Upon registration, you save the salt that was used to encrypt the password, and you retrieve it upon login to encrypt the password again with that same salt. At least, … -
Replied To a Post in login process doesn't recognise login details
Yes it could. If you encrypt the same password using different salts, you will get different results, and thus the passwords won't match - ever. Example: Upon registration you use … -
Replied To a Post in cloning table into another table and toggle
You need to re-assign the onclick functionality after you clone the content, because the cloned content doesn't have any onclick functionality yet. So I guess you need to execute this … -
Replied To a Post in login process doesn't recognise login details
Well then can't really think of another way to find out what's going wrong :\. What I would do is: 1. Check until where the script runs (is the while() … -
Replied To a Post in cloning table into another table and toggle
Yes :). It's because when the document is ready, a function checks for the existence of `.CityTable thead` elements and enables toggle functionality for them. If you clone the element, … -
Replied To a Post in login process doesn't recognise login details
I guess so. In your script above you are doing the following: $password = $_POST['password']; $hmac = hash_hmac('sha512', $password, file_get_contents('textfiles/key.txt')); And then you compare the given password to the one … -
Replied To a Post in Feedback on design
Nothing wrong with it. Simple. Maybe you could add some more details :). -
Replied To a Post in show form elements based on dropdown value
The inputs will indeed need new names. Maybe you could add square brackets to the names, to make them an array? PHP will be able to work with that. Example: … -
Replied To a Post in cloning table into another table and toggle
Well I'm not sure, but I don't think you can insert a whole new <thead> and <tbody> into an existing <tbody> straight away. I think you should either insert a … -
Replied To a Post in login process doesn't recognise login details
Yes I guess that would be it, then :). Check if the password that is inserted during the registration process is the same as the one that is checked against … -
Replied To a Post in login process doesn't recognise login details
And have you validated that the password that you are submitting through the form is actually the same as the one in the database? In other words: if you KNOW … -
Replied To a Post in Modifing session through simple variables
Might be that your webhost has [register_globals](http://php.net/manual/en/security.globals.php) enabled. Register_globals is deprecated since PHP 5.3, so if this is the case, your webhost is running an older PHP version. I guess … -
Replied To a Post in cloning table into another table and toggle
Why don't you just clone the table's <body> element's content and insert it into the other table's body? Why are you cloning the **whole** table and to which exact element … -
Replied To a Post in remove tr from table using jquery
I guess something like this should work: $('table#your_table_id tr').not(':first').remove(); -
Replied To a Post in login process doesn't recognise login details
From which point up is it going wrong? Is the user with the given username even being retrieved? Or does shit hit the fan when you compare the given password … -
Replied To a Post in Print Table
If you tell jQuery to `element.after('<tr>');`, the <tr> part is interpreted as "<tr></tr>" (as a whole tag). Therefore you should use another way to create the table you want. For … -
Replied To a Post in Getting duplicate key error: See log where the INSERT query error is
Well, can't you loop through your queries and validate that the correct data is being inserted? You could break the loop when the error occurs, showing you which data is … -
Replied To a Post in delete row using checkbox
This is not an error, not a warning, but merely a notice. It seems to be caused by `$_POST['check']` not being defined, while your script is trying to access it. … -
Replied To a Post in Simple recursion unique raffle
Tip: If you use time() or microtime() in your random number somehow, you will generate a number that is much more likely to be unique, which means you may have … -
Replied To a Post in Fetch image
What do you have so far? -
Replied To a Post in Fetch image
You could do that, but why don't you just save the image on the server, and save a link to it in the database, which you can use to display … -
Replied To a Post in Modifying MySQL data with PHP unknown count of rows and columns
What about displaying, for example, no more than 50 records per page, so that a maximum of 50 rows will be updated at a time? And then about updating a … -
Replied To a Post in Trip through the US
Interesting point about the life time span of a car and its impact on the environment when people get rid of it to buy a new car. I've never even … -
Replied To a Post in Create a table for databse results with rowspan
Okay, good luck then! -
Replied To a Post in Create a table for databse results with rowspan
Glad that it's working :). But why are you executing the exact same query twice? Seems like you can re-use the result stored in $count1_result instead of having to create … -
Replied To a Post in database connection in PHP
(However, note that the mysql_* functions will be deprecated in the future, so it is recommended you use another extension for making a MySQL connection, for example PDO or MySQLi.) -
Replied To a Post in Create a table for databse results with rowspan
Hmm well, taking that I assume that you will be working with a huge bunch of rows, and that you will probably need to build pagination possibilities. What you could … -
Replied To a Post in Create a table for databse results with rowspan
Well, it appears to me that he then wants the most recent logins, not necessarily grouped by username. You could solve this problem by simply retrieving the last x number … -
Replied To a Post in Create a table for databse results with rowspan
What abouuuut you select the logins only for the user that is logged in? :) For example `SELECT * FROM logins WHERE user = "julius"`. You will then only fetch … -
Replied To a Post in Refresh only Div
What is it that you want to do, exactly? If you need to "refresh" the content of a div, doesn't that mean you need to check if new data is … -
Replied To a Post in XML is not showing properly
I guess that the problem is that you are trying to display XML as XML in an HTML document. It works like this: Your HTML document has already told your … -
Liked / Shared Trip through the US
So I'm planning to make a trip through the US. More specifically: through the west of the US (San Fransisco, Las Vegas, that area). I was wondering if you had … -
Replied To a Post in problem with datediff
Yes, so that basically means that the returned value is NOT an integer, right? :) So that means that you are comparing a non-integer against an integer, which is why … -
Replied To a Post in problem with datediff
Well, according to the examples in the manual, DateDiff::format() does not always return an integer. That's why I said: you should check what it is returning, because you're comparing it … -
Replied To a Post in problem with datediff
You should place the ` var_dump($verscil_huwelijksdat_tot_zestien_jaar->format('%R%a'));` line **before** the if statement if you want to make sure it is executed :). Does it return an integer, a boolean, or something … -
Replied To a Post in problem with datediff
I'm not sure, but I don't think that that function is returning an integer, which **is** what you are comparing it against. I suggest you check out what exactly is … -
Replied To a Post in is there any way we can scrap php data from the website?
If your purpose is to hide your PHP code, don't worry, because as diafol says: that isn't visible to the client. -
Replied To a Post in Trip through the US
This is great, guys, thanks for so many useful tips :). Much appreciated! If anyone still has anything to add: I'm still interested, of course! -
Replied To a Post in Trip through the US
Thanks for the tips, guys! We're actually more into visiting nature/national parks, less into visiting a lot of cities. What do you think about taking a tent with us and … -
Edited Trip through the US
So I'm planning to make a trip through the US. More specifically: through the west of the US (San Fransisco, Las Vegas, that area). I was wondering if you had … -
Created Trip through the US
So I'm planning to make a trip through the US. More specifically: through the west of the US (San Fransisco, Las Vegas, that area). I was wondering if you had … -
Replied To a Post in How to convert html page to pdf and download in php
You could try using [HTML2PDF](http://html2pdf.fr/en/example). It's a (for as far as I know) free PHP class to convert.. HTML to PDF, yea! (guess you didn't see that coming). Create a … -
Replied To a Post in photo gallery
So.. do you have a start on this project? What have you created so far? :) -
Replied To a Post in redirect in another tab
Have you tried opening a new window with Javascript? You can use the window.open() function for that, if I'm not mistaken. -
Replied To a Post in blob image displaying from database
I think this post might help you: http://stackoverflow.com/questions/4110907/how-to-decode-a-base64-string-gif-into-image-in-php-html According to that post and a bit of experience in such matters, you either have a PHP page that outputs ONLY the … -
Replied To a Post in Auto Login
Maybe you can use curl for that? :) Example: http://davidwalsh.name/curl-post
The End.