74 Posted Topics

Member Avatar for Roldan_1

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 …

Member Avatar for Gideon_1
0
347
Member Avatar for berserk

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.

Member Avatar for berserk
0
1K
Member Avatar for ribrahim

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) …

Member Avatar for ribrahim
0
4K
Member Avatar for lily4nero

yh, and assigning all these html to one variable is a really bad practise

Member Avatar for Gideon_1
0
162
Member Avatar for SimonIoa

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?

Member Avatar for SimonIoa
0
183
Member Avatar for info@infotech
Member Avatar for Gideon_1
0
79
Member Avatar for Gideon_1

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. …

Member Avatar for broj1
0
1K
Member Avatar for AlexDada

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.

Member Avatar for diafol
0
408
Member Avatar for chrisschristou

You can also predefine the doctype and head tags in the current page and the load the contents of the inc.php files

Member Avatar for chrisschristou
0
758
Member Avatar for Trabelsi

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 …

Member Avatar for Trabelsi
0
404
Member Avatar for Stephano

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 …

Member Avatar for Gideon_1
-2
440
Member Avatar for showman13

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)

Member Avatar for rtrethewey
0
578
Member Avatar for AntonyRayan

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.

Member Avatar for Gideon_1
0
13K
Member Avatar for Elmar_2
Member Avatar for AndrisP
0
106
Member Avatar for Niloofar24
Member Avatar for Niloofar24
0
429
Member Avatar for AntonyRayan

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.

Member Avatar for AntonyRayan
-1
239
Member Avatar for phoenix254

I think fetchAll() is better since you get everything your sql returns in a single dump. Catch ya.

Member Avatar for jkon
0
5K
Member Avatar for chozotheqhai

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. …

Member Avatar for diafol
0
585
Member Avatar for Niloofar24

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.

Member Avatar for Aeonix
0
221
Member Avatar for UK-1991

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.

Member Avatar for Gideon_1
0
164
Member Avatar for Kamal_6

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

Member Avatar for Gideon_1
0
374
Member Avatar for Mushfik

In addition, try to use mysqli or PDO since mysql extension has been deprecated since PHP 5.0.

Member Avatar for Gideon_1
0
7K
Member Avatar for StuntHacks

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; }

Member Avatar for Gideon_1
0
420
Member Avatar for naazer.hussain

The End.