74 Posted Topics
Re: First of all, why are you using two database connection layers in one script; mysql and mysqli. Please, I encorage you to use mysqli since mysql is deprecated. Also I think you should be precise of the form method you are using so that you don't just use $_GET or … | |
Re: To clarify things when you were encrypting the password during registration, I hope you stored the salt which was added to the password during the encryption in the database. | |
Re: Yh I agree with todyITguy, learning it will be of great help but if you are in need seriously you can use these ajax codes; <script type="text/javascript"> function load () { var xmlhttp = new XMLHttpRequest (); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) … | |
Re: yh, and assigning all these html to one variable is a really bad practise | |
Re: I don't get what you are trying to express. Your first script has no relation to the second one. Can you express yourself vividly? | |
Hello everyone, I have been using xampp for my web app developments for quite a while now. Usually after the app development is done, I upload my files to paid hosting. Now, this is the case I'm designing a school's accounts managements software which will be used on an intranet. … | |
Re: Yh, I will contribute to diafol's contribution. One thing you must keep in mind that storing music tracks directly in the database is a bad practice. This can slow down you server and make the SQL datables unnecessary large in terms of file size. ![]() | |
Re: You can also predefine the doctype and head tags in the current page and the load the contents of the inc.php files | |
Re: Since you are using a plugin, it has predefined functions upon which your application is built. 1. Your database structure is correct to achieve this results. 2. Why your results are not being displayed, I can't actually tell, because I don't know if the leftjoin and process methods used by … | |
Re: in the $SQL you just gave only four fields to be INSERTED so its either 1. You delete the NULL from the VALUES so $SQL = "INSERT INTO `safaris8_wo5946`.`wp_vkfj_users` (`user_login`, `user_pass`, `user_email`, `user_phone`) VALUES ('$username', '$password', '$email','$phone')" 2. Or you add the id field to the fiedls to be updated … | |
Re: I don't know exactly what you are looking for, but i think jsPDF will help. Check this [http://stackoverflow.com/questions/17293135/download-a-div-in-a-html-page-as-pdf-using-javascript](http://stackoverflow.com/questions/17293135/download-a-div-in-a-html-page-as-pdf-using-javascript) | |
Re: Please first of all mysql database connection layer is deprecated, so try to use mysqli or PDO for database connections. And, I don't actually get what you are trying to say. Can you please ellaborate your question further. | |
Re: Naa, you must output it, with echo in PHP, document.write in Js | |
Re: I will use ajax and php with to asynchronously to display the username if there is a match in my database | |
Re: Really, I thought here is a forum which help solve problems but not generating codes for people. But by the way you can show us what you have done, so maybe we can continue it for you. | |
Re: I think fetchAll() is better since you get everything your sql returns in a single dump. Catch ya. | |
Re: To autoload classes, the standard php library which is already built in php can do this in just three lines. You have to place it in your core.inc.php or any php file that you will always include in your pages. And after this you will not touch the code anymore. … ![]() | |
Re: Hmm, this really depends on you. Or, try to figure out some solutions to problems in every day life like companies doing stuffs like writing receipts by hand. Create a template for them. | |
Re: Your are still using ORDER BY DATE instead of p_date. Also you can save you fetch_assoc to an array and use fetch assoc to ouput the data which will be relevantly fast than echoing every thing bit by bit when dealing with huge amount of data. | |
Re: I don't know whether your codes are just for training purposes but for production purposes declare the state of your methods, be it, public, private or protected | |
Re: In addition, try to use mysqli or PDO since mysql extension has been deprecated since PHP 5.0. | |
Re: I think provided your query is correct, use a while loop to output the rows like $query = //this is your SQL statement; while ($row = $query->fetch_object()) { echo $row->id, '<br>'; echo $row->the name of your column you selected; } | |
The End.