nav33n 472 Purple hazed! Team Colleague Featured Poster

Check why admin login is failing.. Maybe you have given the wrong username/password ? umm.. Don't you have an option to add an admin ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

-676

nav33n 472 Purple hazed! Team Colleague Featured Poster

Is it a custom message or the one from mysql ? If its a custom message, check all your scripts for this string. Check on what condition does it print this statement.

nav33n 472 Purple hazed! Team Colleague Featured Poster

1. Line 74. You are ending a comment */. It doesn't have a matching /* .
2.

function WriteOutput() {
$output = '<br /><table bgcolor="#CCCCCC"><tr><td>";

You are assigning a string to $output. It starts with a ' but ends with a ".
3. I am not sure if your switch case will work. I usually use

switch($value) {
case 1:
case 3: 
   echo "Odd number"; 
   break;
case 2:
case 4: 
   echo "even number";
    break;

I m not sure about case 1,256: Umm.. These are the few errors that I see.

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. Are you working on linux by any chance ? Because in linux, the column names are case-sensitive. If you use $list in your query and you have NAME as a column name, then it would return null ! That might be the problem. Print out $list. There must be something wrong ! And check this link for the syntax of heredoc.

nav33n 472 Purple hazed! Team Colleague Featured Poster

No I used Google to find an anagram tool that counts them.

ah! I see!

Illusion
rain
ill

Republic

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Sahiba ! :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) You are welcome man! And yep, we learn something new everyday !

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can extend the maximum execution time by changing max_execution_time in php.ini to whatever amount you want. You can remove the time limit by setting it to 0. If you want to change it during the runtime, use set_time_limit(0); in your script.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Check your loops. I guess you have an infinite loop somewhere OR maybe the queries to fetch the data from the table is taking a long time. Umm.. I think the problem is with the loops!

nav33n 472 Purple hazed! Team Colleague Featured Poster

zend studio is good. But its very expensive! Free editors, umm.. You can use eclipse with php plugins ! And then there is devphp, maguma which are open source IDE's too.

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) You are welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

You can try Notepad++ or devphp. There are many more free ide's available. :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

its not
$_SESSION('u_name') = $usr_nam_chk_avail; But the one I posted above.

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Its $_SESSION=$usr_nam_chk_avail;

nav33n 472 Purple hazed! Team Colleague Featured Poster

On successful registration, add username to the session. In the next page, check if session is set, if yes, then redirect directly to the page which he gets after successful login. If session is not set, redirect him to login page.

nav33n 472 Purple hazed! Team Colleague Featured Poster

(Incidentally, if you get the time, what exactly is the recommended code doing?)

ob_start() . Its turning on the output buffer. So any output is kept in the buffer. And ob_flush() is to flush the buffer :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

I do not know why it is, with all of the sites that talk about replacing a space with an underscore, none of them gave this, ever so simple answer.

What did you search for :P

Maybe it just doesn't look as cool as all of that regular expression stuff?

No. regular expressions are slower than string functions. Regular expressions are preferred only for complicated string matching and stuff.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Every Vulture Eat Rats, Young and Wasted Hen, Eggs, Rotten Eggs!

nav33n 472 Purple hazed! Team Colleague Featured Poster

-672

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi naveen, the whole process is working now, but when you update/delete it affects all the records you have submitted to the database e.g. if you have 10 countries and you wanted to edit only 1, it changes all.

Are you updating the table depending on the unique key ? If you try updating the table like, update table1 set col1='value1', col2='value2'"; , it will update all the records.

I don’t require filling in the checkbox, because only users will be doing that process, I want to update the existing checkbox values or add new checkbox.

I still don't understand the flow of your program.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Yep.. And also, thats the best way, storing the path of the image instead of the image file. Displaying 1 image(if stored in a table), can be done. But I have no clue how to fetch all the images from the table. hmm!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Rats, Elephants, Giraffes Irrated Some Tigers Resulting In Early Scuffle.

nav33n 472 Purple hazed! Team Colleague Featured Poster

There are 268 words in Herbivorous !

Dont tellme you counted the words ! :-O

dodo
node
nerd

Amphibian

nav33n 472 Purple hazed! Team Colleague Featured Poster

So you define the path to your image directory thus:

define("MAIN_IMAGE_STORE","../images/");

The OP is saving the images in a table.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Well, It wont go wrong unless you have made any mistake. Now open config.inc.php file in your phpmyadmin and change the username.

$cfg[$i] = 'testuser';
$cfg[$i] = '';

If even this doesn't work, then, install wamp.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Again, print out all your queries. Check if they insert/update and delete the record. It worked fine when I wrote the code. I don't know where you have misplaced something.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Open mysql console and create a new user.

create user testuser;
grant all privileges on *.* to 'testuser'@'localhost';

This will create a new user called testuser with all the privileges. Use this user account in your script.

?

nav33n 472 Purple hazed! Team Colleague Featured Poster

H for hen.

nav33n 472 Purple hazed! Team Colleague Featured Poster

guide
dance
dig

Herbivorous

nav33n 472 Purple hazed! Team Colleague Featured Poster

boiled

nav33n 472 Purple hazed! Team Colleague Featured Poster

-670

nav33n 472 Purple hazed! Team Colleague Featured Poster

its mysql -u root and mysql -u root -p password if your root has a password. Before that, you should have mysqld started. (ie, mysql server running!)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Open mysql console and create a new user.

create user testuser;
grant all privileges on *.* to 'testuser'@'localhost';

This will create a new user called testuser with all the privileges. Use this user account in your script.

nav33n 472 Purple hazed! Team Colleague Featured Poster

the query isn't returning any resultset. Check your query, execute it in phpmyadmin/mysql and see if it returns any value.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

That means you have an echo statement or a html tag before session_start().

nav33n 472 Purple hazed! Team Colleague Featured Poster

Where is the while loop ? Let me show you an example.

$query="select * from table";
$result=mysql_query($query);
$row=mysql_fetch_array($result); //This will fetch only 1 record
echo $row['name'];
...
//to fetch all the records, loop through it.
while($row=mysql_fetch_array($result)){
echo $row['name'];
....
}

Well, thats the way to fetch all the records.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Code please.

nav33n 472 Purple hazed! Team Colleague Featured Poster

$rid=$line[0];

You are just assigning the value to $rid. You can pass the value from one page to another in 3 ways.
1. pass it in the query string ($_GET method).
2. use a session variable to pass the values.
3. Post it through the form. ($_POST).

In page 1, you are passing the id in query string. In page 2, you aren't doing passing the value ot $rid to page 3.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Thats in page 2. You are passing it href='detailjob.php?id=".$row[3]., so you are getting. My question is, where are you passing $line from page2 to page3 ? Can you post page2 and page3's code using code-tags ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

and where are you passing id in page 2 ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

i found the solution... the tmp directory was the main evil here.. i gave 0777 permissions to the tmp ... n whoa everything is solved..

Wow! Congrats ! :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi Gowtham! Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!