nav33n 472 Purple hazed! Team Colleague Featured Poster

Web application or windows application ? I have never done any windows application, but WinBinder is the tool..

nav33n 472 Purple hazed! Team Colleague Featured Poster

And you need to be specific in your question. 'Give me idea' put us in alot of doubt :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol ! Just had a milestone! still long way to go !

nav33n 472 Purple hazed! Team Colleague Featured Poster

-880

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check this example to add html elements dynamically.
http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/
When the page is reloaded on submit, you can have the previous value by assigning $_POST as value. For example, <input type="text" name="name" value="<?php echo $_POST['name']; ?>"> will retain the value entered in the textbox on submit.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can check http://www.php-mysql-tutorial.com/php-mysql-paging.php for a step by step tutorial !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Simple. Add a href for each department with department_id. ie.,

while(get_all_records){
echo '<a href="department_details.php?id=id_of_the_department> departmentname</a>'; //lists all the departments
}

In department_details.php, get the id, fetch its details from the table.

$id = $_GET['id'];
$query = "select * from department where id='$id'";
//execute it and get the department details and print it.

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

I guess you want to display some (say 10) records at a time and a button, called next to display the next 10 records ? Search for pagination in google. You will find some examples.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hey Bunty1 ! Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Since you are storing the path in the database, when selecting records order it by id (descending) limiting 10.

$q = "select * from path_table order by id desc limit 0,10";

I hope you have an auto increment field called id in your table.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check the sourcecode of the html. See what the form tag contains ! There must be something wrong !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb! Post your question in related forum and please read the guidelines. :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

The id will be posted when the form is submitted. Query the table where you have the ids to get the name of the selected id. Then send him to retrieved name table.

nav33n 472 Purple hazed! Team Colleague Featured Poster

print_r($_POST["bookings"]);

You need to put that when the user submits the form (in the script which processes the form!).

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. You can create folders. I don't think thats a problem.

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol..

nav33n 472 Purple hazed! Team Colleague Featured Poster

Did you refresh your ftp client ? Anyway, If it isn't giving you any error while creating the directory, it should have created the directory. Do a simple check if it exists.

if(is_dir($uploaddir)){ echo "Exists!"; } else { echo "Doesn't exist" ; }
nav33n 472 Purple hazed! Team Colleague Featured Poster

You dont need <?= because you are already echoing something ! You can do this.

echo "<form name=\"tsgh_add\" method=\"post\"  action=".$_SERVER['PHP_SELF']." onSubmit=\"return checkWholeForm(this);\">";
Venom Rush commented: Rocking! I initially thought of that myself but because my submit button's type was wrong I thought that I was wrong :P +1
nav33n 472 Purple hazed! Team Colleague Featured Poster

-874

nav33n 472 Purple hazed! Team Colleague Featured Poster

echo "<script>window.print()</script>"; You can see an example of window.print() here.http://www.w3schools.com/htmldom/met_win_print.asp

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check for connection string in your script. Its unable to connect. $connection =mysql_connect("host","user","password") or die (mysql_error()); Will give you the correct error message.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb BstrucT!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Lingamurthy !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Metal
cult
girl

Automatic

nav33n 472 Purple hazed! Team Colleague Featured Poster

-872

nav33n 472 Purple hazed! Team Colleague Featured Poster

I don't know whats on line 111. Can you post your code within code tags ? Also, { is missing after while loop.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb !

nav33n 472 Purple hazed! Team Colleague Featured Poster

umm..

and send them 2the database but the records are coming from a database.

thats what I meant ! insert to a table/send them to the database.

This is how it works. Checkbox is an array. When you select a checkbox, that index of the checkbox array is selected. For example, if there are 5 checkboxes and the user selects 2 and 5, Only, checkbox[1] and checkbox[4] will be posted to the next page.
So, if you print the data of checkbox array using, print_r($_POST[checkboxname]); you can see the values.

:) Cheers.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

-865

nav33n 472 Purple hazed! Team Colleague Featured Poster

How to send rows to database ? umm.. You mean, inserting a record to the table ? Check this. http://www.w3schools.com/php/php_mysql_intro.asp

nav33n 472 Purple hazed! Team Colleague Featured Poster

1a.) How do I display online members?

Have a column(online) in your table and set it to 1 whenever the user logs in. Then list only those users who are online.

$q="select * from table where online=1";

b.) How do I sort the online members by location?

$q = "select * from table where online=1 order by location [asc|desc]"; //By default, the sorting is done in ascending order.

2) When members search for other members, I would like to have a search feature where
they can specify the search criteria by age, sex and location.

Simple again.

$q = "select * from table where age='user_input_age' and sex='user_input_sex' and location='user_input_location'";

Btw, you can check out w3schools.com . It has some nice tutorials.

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

if(isset($_GET) == TRUE) { Brace is not closed for that condition. One suggestion, Indent your code. You can easily find these kinda errors.

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

When you submit the form, see what is getting posted. I think the checkboxes aren't storing any values !
when you submit the form, add print_r($_POST); in the script which process the form variables.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hmm.. congrats..

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

Try out a simple upload script first. Just upload a file to some folder. If that works, then the problem is with your script and not the hosting company.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Are you sure you have the form action correct ? In your first post, it was

action="uploader" method="post">

. Then its uploader.php.
I am not really sure about the exact problem. If it was a hosting problem, print_r($_FILES) would atleast list the file details you are trying to upload.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can have a hidden variable and pass the username in it. What did print_r($_FILES) return ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

hmm.. Btw, why do you have $_SESSION["username"] in

<input name="uploadedfile" type="file" value="<? echo $_SESSION["username"]; ?>"/>

Have this in uploader.php. print_r($_FILES); See what is being posted when you upload a file.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Okay ! so you aren't getting mkdir error anymore. Now, thats some progress.

Print out $target_path. Check what's in it. Also, check the permissions on tmp directory. Print out $_FILES as well. Btw, $_FILES is the temporary name of the file you have uploaded.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Open the textfile, read it, display the read contents using html tags. Maybe you can find 'text to html conversion class' in sourceforge.

nav33n 472 Purple hazed! Team Colleague Featured Poster

-863

nav33n 472 Purple hazed! Team Colleague Featured Poster

The problem is with the first warning you are getting. Thats the cause of the other 2 warnings.
Check if safe mode is off(in php.ini).
Try this.

mkdir($_SESSION["username"]."/", 0777);

Why do you need the "/" in mkdir ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Argh! sorry.. -861 !

nav33n 472 Purple hazed! Team Colleague Featured Poster

This would make an interesting game. Counting our post count ;)

2602

lol..That would be an infinite loop. Everytime we post our 'post count', it will be increased by 1 !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb homonoki :) ! I hope you aren't lost anymore!

nav33n 472 Purple hazed! Team Colleague Featured Poster

859