Search found 11 matches

by vishalonne
Mon Apr 08, 2013 11:13 pm
Forum: PHP coding => General
Topic: How to do Multiple Condition in SQL query using PHP and Ajax
Replies: 3
Views: 1029

How to do Multiple Condition in SQL query using PHP and Ajax

Hello I have databse in MySQL with 21 fields which are listed below Field Name Data Type NULL status text No roll_no text No branch_id int(5) No student_name text No father_name text No phone1 text No phone2 text No email text No dob date No city text No course_id varchar(5) No class_id int(2) No pr...
by vishalonne
Sun Oct 07, 2012 9:28 am
Forum: mySQL & php coding
Topic: Why fetch_assoc() or fetch_row() giving error always
Replies: 2
Views: 740

Re: Why fetch_assoc() or fetch_row() giving error always

Sorry I forgot to add the error, this is the error I am getting -
Fatal error: Call to undefined method mysqli_stmt::fetch_assoc() in /home/cbsecpsn/public_html/confirmation.php on line 38
by vishalonne
Sun Oct 07, 2012 9:15 am
Forum: mySQL & php coding
Topic: Why fetch_assoc() or fetch_row() giving error always
Replies: 2
Views: 740

Why fetch_assoc() or fetch_row() giving error always

Hi Every Body I am facing problem in retreving the data from my mysql table I want to use prepared statement with mysqli for security reason. Here is my code Please give a guidance - <?php $host="localhost"; // Host name $username="**********"; // Mysql username $password="**********"; // Mysql pass...
by vishalonne
Tue Oct 02, 2012 2:52 pm
Forum: PHP coding => General
Topic: Value is POSTED definitly but isset() says NO....
Replies: 11
Views: 1698

Re: Value is POSTED definitly but isset() says NO....

Thank you very much seandisanti for this great information, unnecessarly I was banging my head on these code.

Can you please tell me from where I can get good security tutorial for php.
So, I can do same job in PHP

Regards
by vishalonne
Tue Oct 02, 2012 1:33 pm
Forum: PHP coding => General
Topic: Value is POSTED definitly but isset() says NO....
Replies: 11
Views: 1698

Re: Value is POSTED definitly but isset() says NO....

Sure this the checkforms.js and here is the code // JavaScript Document csnip function formhash2(form,password) { // Create a new element input, this will be out hashed password field. alert(form.id + " " + password.value); var p = document.createElement("input"); // Add the new element to our form....
by vishalonne
Tue Oct 02, 2012 12:44 pm
Forum: PHP coding => General
Topic: Value is POSTED definitly but isset() says NO....
Replies: 11
Views: 1698

Re: Value is POSTED definitly but isset() says NO....

OK in my index.php there are 2 forms you can see here First Form is giving troble to me :-x but the second form is Cool :D both the form is going with same process as you can see in the code of functions.js I have only 1 question to know before that take a look in my form - <td> <FORM ID="Login" ACT...
by vishalonne
Tue Oct 02, 2012 12:06 pm
Forum: PHP coding => General
Topic: Value is POSTED definitly but isset() says NO....
Replies: 11
Views: 1698

Re: Value is POSTED definitly but isset() says NO....

Hello seandisanti Thank you for consideration I just add echo var_dump($_POST); //just before isset and got OUTPUT - array(0) { } <tr> <td> <FORM ID="Login" ACTION="login.php" METHOD="POST"> <h1>welcome to the login page</h1> please input the login details to create an account here<br /> <table bord...
by vishalonne
Tue Oct 02, 2012 11:43 am
Forum: PHP coding => General
Topic: Value is POSTED definitly but isset() says NO....
Replies: 11
Views: 1698

Value is POSTED definitly but isset() says NO....

Hi All See the code give given below. I was fighting with this code since last 5 hours to know why isset() is eveluating the condition as false if value is posted exactly what it shall POST. If I uncomment the line no. - 4,5,6,7,8 and put rest of the code from line no. 10 to 28 I can see the POSTED ...
by vishalonne
Fri Aug 03, 2012 5:02 am
Forum: PHP coding => General
Topic: Hit Counter Code giving ERROR
Replies: 3
Views: 937

Re: Hit Counter Code giving ERROR

Thank you for looking in my problem, actually I want to display hit counter at the bottom of the page. Do I need session...?????
I just want to keep track of numbers of visitors.

Is it possible without session??
by vishalonne
Fri Aug 03, 2012 12:39 am
Forum: PHP coding => General
Topic: Hit Counter Code giving ERROR
Replies: 3
Views: 937

Hit Counter Code giving ERROR

Hi All I am getting an warning on my web page when I uploaded the page on server I just writing a PHP Page Hit Counter- Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cbsecpsn/public_html/csnip/form_453570.php:7) in /h...