-
Began Watching error accure during store image indatabase using php
A.o.e any one can hlp me i want to image store in data base but i have problem mentiond here : Undefined index: pics in C:\wamp\www\newform\image_store.php on line 7 what … -
Replied To a Post in error accure during store image indatabase using php
Show the code, especialy the part that contains line 7. -
Stopped Watching how to store other type of information in cookies in php shopping cart data
how Cookies can store other things such as your name, last visit, shopping cart contents, etc. -
Stopped Watching Meaning of the sql query
Can someone help me explain the coding? if(isset($_SESSION['patron_ID'])) { set_time_limit(0); include 'dbconnect.php'; $studylevel1 = $_POST['studylevel']; if(isset($_POST['submit'])) { do { $senderid = $_SESSION['patron_ID']; $studylevel1 = $_POST['studylevel'];}}} -
Began Watching Deleting row of selected checkbox from database
Hey I write this code for delete the selected check box values from the database. Yeah I know there are some example already here. But when I take look on … -
Replied To a Post in Deleting row of selected checkbox from database
I have tested your script and it works OK. This is the data I tested on: INSERT INTO book (id, bname, aname, pname, description) VALUES (1, 'Book 1', 'Author 1', … -
Replied To a Post in Carry Forward
You don't have to be offended so quickly. I never said that I am better in PHP than you and I don't care about that anyway. And I was not … -
Replied To a Post in Carry Forward
Now if you do a bit fo googling (duckduckgoing actually) on a phrase like *posting a form in php* you get loads of examples such as: http://www.html-form-guide.com/php-form/php-form-post.html http://www.phpforkids.com/php/php-forms-post-data.php http://bytes.com/topic/php/answers/437197-posting-forms https://www.daniweb.com/web-development/php/threads/420480/html-form-not-posting-data-to-php … -
Began Watching Carry Forward
Any body know how to do balance carry forward in php -
Replied To a Post in Carry Forward
There are many ways: save it (database, json), store it in session, use $_POST/$_GET... Post what you have so far and describe what you want to achieve. -
Stopped Watching how to make a data to be displayed in fieldset?
hello guys.. i have made a form in checkbox which is in fieldset by categories.. so now the values is success inserted into database.. but i've got problem to make … -
Replied To a Post in SESSION
Repeating: You should put the `session_start()` command on top of the every script for session to work. -
Replied To a Post in PHP form to generate sequenced #
I agree that the lastInsertId() is the safest approach to keep your data consistent. I think it also requires that the ID field is autoincremented/unique so keep that in mind … -
Began Watching SESSION
Hallo, I am trying to create session that works! This is the test admin (assign session) then afterward pass to input_image.php but I wonder why I cannot pass the index.php … -
Replied To a Post in SESSION
You should put the `session_start()` command on top of the `admin.php` script for session to work. -
Replied To a Post in PHP form to generate sequenced #
For all the database manipulation nad testing it is a good idea to use some database GUI client. Many people use phpmyadmin, a web based client to mysql (mind you, … -
Replied To a Post in PHP form to generate sequenced #
If you get stuck just come back here with as specific question as possible. You might either continue here or mark this thread as solved and start a new one. -
Began Watching how to store other type of information in cookies in php shopping cart data
how Cookies can store other things such as your name, last visit, shopping cart contents, etc. -
Replied To a Post in how to store other type of information in cookies in php shopping cart data
https://www.daniweb.com/web-development/php/threads/488707/how-to-use-cookies-in-a-website-through-php http://davidwalsh.name/php-cookies ... -
Replied To a Post in PHP form to generate sequenced #
OK, I'll try to generate some steps I think would be appropriate and you then correct me where I might be wrong. 1. A user visits a task request form … -
Began Watching PHP form to generate sequenced #
Hi - I am creating a simple PHP Task Request form that will post to an email address. I am fine with everything except one problem. I need this form … -
Replied To a Post in PHP form to generate sequenced #
Before writing a next task to the database you read the last task. However, if the user has the form opened in the browser, there might be a problem displaying … -
Began Watching How can i redirect to admin and user page ?
How can i redirect to admin and user page ? <?php session_start(); $con = mysql_connect("localhost","root","nano"); $selected = mysql_select_db("airline"); $username=$_POST['uname']; $password=$_POST['ptxt']; $username = stripslashes($username); $password = stripslashes($password); $query = "SELECT * … -
Replied To a Post in How can i redirect to admin and user page ?
The `else if` part of the code (line 23) should contain a condition. The rest of the answer is waiting for you [here](https://www.daniweb.com/web-development/php/threads/488599/cant-redirect-to-adminuser-page-after-login#post2137412) (similar post you started earlier on). -
Stopped Watching PHP Login
Dear friends I am developing a php online registration form.I created login form which is without database becz admin user in only one to check enquiries.But some thing is wrrong … -
Began Watching making an ajax request from a multi query search form
hello i am trying implement a multi search query using an example i found online, http://www.w3schools.com/php/php_ajax_database.asp although the example on this page is a single query and makes use of … -
Replied To a Post in making an ajax request from a multi query search form
If you want to pass multiple values you can do it this way: xmlhttp.open("GET","getuser.php?q="+str+"&k="+somevalue,true); In this case you will always have both q and k elements in the $_GET array. … -
Replied To a Post in how to call a function in php if we click the submit button?
1. You put function definitions within the `if` block which might be OK but is not very clean. If you need to call the functions from outside the `if` block … -
Replied To a Post in PHP Login
The code looks OK. You just have to make sure there is no any character before the `<?php` tag, not even a single space (or a `!DOCTYPE` tag). Also if … -
Replied To a Post in Can't redirect to admin/user page after login
You should run the above code only when the form was submitted so you have to do a check first: // suppose your form has a submit button named submit … -
Replied To a Post in PHP Login
Can you post the last version of the code. -
Began Watching Can't redirect to admin/user page after login
<!DOCTYPE HTML> <html> <body> <p>Redirecting...</p> <?php session_start(); $user=$_POST['uname']; $_SESSION['username']=$user; $con=mysql_connect("localhost","root","nano"); mysql_select_db("airline")or die("Db error"); $username=$_POST['uname']; $password=$_POST['ptxt']; $query = mysql_query("select * from user where password='$password' AND name='$username'"); if($username=="" && $password=="")header('location:admin.php'); else if($username=="hijran" … -
Replied To a Post in Can't redirect to admin/user page after login
You shall not send any HTML output before the `header` function. It won't work. So rearrange your code. Something like: <?php if($username=="" && $password=="") { header('location:admin.php'); exit(); // add this … -
Replied To a Post in how to call a function in php if we click the submit button?
Fatal error means that the script encountered an error and can not continue. In your case the `searchform2.php` script can not find the `generateOrderedArray()` function. It either is not declared … -
Replied To a Post in PHP Login
As I said: no HTML can be output before the `header` function so put the `<!DOCTYPE html>` part after the first php block. <?php if(isset($_POST['login'])){ $uname = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); … -
Began Watching PHP Login
Dear friends I am developing a php online registration form.I created login form which is without database becz admin user in only one to check enquiries.But some thing is wrrong … -
Replied To a Post in PHP Login
You can not send headers after you have sent HTML output. Move the following block of PHP code to the top of the script and you'll be fine: if(isset($_POST['login'])) { … -
Began Watching how to call a function in php if we click the submit button?
//i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> … -
Replied To a Post in how to call a function in php if we click the submit button?
What does the error message say apart from Fatal error (post the whole text of the error message)? Also, the mysql_query function returns a resouce (a special php type). Are … -
Replied To a Post in FPDF thought make a Tree as output
Can you please post the table structure and some data so I (or anyone else) can do a test. Post the `CREATE TABLE mm_goats ...` statement and some `INSERT INTO … -
Began Watching FPDF thought make a Tree as output
Hello, In attachment image so i want to make Tree as output of PDF. i have built it but not exact. so can you make it some help if you … -
Replied To a Post in FPDF thought make a Tree as output
Can you post the code you've done so far. And then more precisely describe what you want but were not able to do. -
Began Watching Split line of text into two arrays and place them into database
Here is a link to a list of college names and their .edu email http://pastebin.com/LND21t5F I want to take those lines of code and put the .edu part into one … -
Replied To a Post in Split line of text into two arrays and place them into database
Something like: $rawString = 'aamu.edu: Alabama A&M University'; $temp = explode(': ', $rawString); // $temp[0] -> college_email // $temp[1] -> college_name $query = "INSERT INTO tableName (college_email, college_name) VALUES ('{$temp[0]}', … -
Replied To a Post in Looking for help on doing a simple category script
It shouldn't matter as long as you use correct syntax. The following is a working example using mysql: <html> <head> <style> div.gallery { display: inline-block; } </style> </head> <body> <?php … -
Replied To a Post in Looking for help on doing a simple category script
I tested my code and it displays exactly what you wanted: Cartoon Faces: [Gallery 1](http://localhost/DW/galery/select_portrait.php?id=00000&gallery=Gallery%201) [Gallery 2](http://localhost/DW/galery/select_portrait.php?id=00002&gallery=Gallery%202) Flags: [Gallery 1](http://localhost/DW/galery/select_portrait.php?id=00003&gallery=Gallery%201) Here is the test code: <html> <head> <style> div.gallery { … -
Replied To a Post in Looking for help on doing a simple category script
Not tested: // temporary array for reading data into $tempArray = array(); $result = $mysqli->query("SELECT * FROM portraits ORDER BY category"); while ($row = $result->fetch_row()) { $category = $row['category']; // … -
Replied To a Post in Looking for help on doing a simple category script
This is a rough code (might need some tuning): // temporary array for reading data into $tempArray = array(); $result = $mysqli->query("SELECT * FROM portraits ORDER BY category"); while ($row … -
Replied To a Post in Looking for help on doing a simple category script
I am not sure if I understand the question. Can you post some data from the table, it may help me understanding (i.e. `SELECT * FROM portraits LIMIT 10`). -
Began Watching Looking for help on doing a simple category script
Am trying to make a simple categorys script but am not having much luck . CREATE TABLE `portraits` ( `n` INT(11) NOT NULL AUTO_INCREMENT, `category` VARCHAR(25) NOT NULL DEFAULT 'Main', …
The End.