Shanti C 106 Posting Virtuoso

1924

Shanti C 106 Posting Virtuoso

what is the error you are getting here ???

Shanti C 106 Posting Virtuoso

1920 good

Shanti C 106 Posting Virtuoso

There should be a better way to start a day than waking up every morning..

Shanti C 106 Posting Virtuoso

Hardworking - Success

Shanti C 106 Posting Virtuoso

1912 UFFF

Shanti C 106 Posting Virtuoso

"One half of the world cannot understand the pleasures of the other."
- Jane Austen

Shanti C 106 Posting Virtuoso

so in this below line you have to pass sender user name not the loggged user name(session).

$query=mysql_query("SELECT *FROM members WHERE username='$username'");
Shanti C 106 Posting Virtuoso

can i ask one question :

you want to display the to_user avatar or from_user avatar here ????

pass the appropriate username in your query while printing avatar.

Shanti C 106 Posting Virtuoso

1912

Shanti C 106 Posting Virtuoso

try to print $email value at line 67...and tell me.

Shanti C 106 Posting Virtuoso

can you please post the required code ???

Shanti C 106 Posting Virtuoso

1912

Shanti C 106 Posting Virtuoso

"Success is not to be pursued; it is to be attracted by the person we become."
- Jim Rohn

Shanti C 106 Posting Virtuoso

1912

Shanti C 106 Posting Virtuoso

Strong reasons make strong actions.
- Shakespeare.

Shanti C 106 Posting Virtuoso

you can validate spaces also like this :

var invalid = " "; // Invalid character is a space
// check for spaces
if (document.myForm.password.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed.");
return false;

and also check this link :
http://www.dreamincode.net/code/snippet68.htm

Shanti C 106 Posting Virtuoso

1912

Shanti C 106 Posting Virtuoso

Accept that some days you are the pigeon, and some days you are the statue.

Shanti C 106 Posting Virtuoso

1906

Shanti C 106 Posting Virtuoso

1906

Shanti C 106 Posting Virtuoso

1904

Shanti C 106 Posting Virtuoso

"We can learn nothing except by going from the known to the unknown."
- Claude Bernard

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

evstevemd is right.
and also use comparision operator in if condition instead of assignment operator.

If $_SESSION["Admin"]=='Y'

Shanti C 106 Posting Virtuoso

1904

Shanti C 106 Posting Virtuoso

"A moment's insight is sometimes worth a lifetime's experience."
- Oliver Wendell Holmes Jr.

Shanti C 106 Posting Virtuoso

1904

Shanti C 106 Posting Virtuoso

1904

Shanti C 106 Posting Virtuoso

You can implement this by PHP sessions or cookies.
Learn PHP Sessions here :
http://www.tizag.com/phpT/phpsessions.php

Then you can go for implementations.
refer :
http://marakana.com/blog/examples/php-implementing-secure-login-with-php-javascript-and-sessions-without-ssl.html


If you are using only sessions, you can differ your pages by setting one session like flag 1 for admin and 0 for users.
If you are using databases for this you differ your pages with query.

Try and implement this and post your code for help if you find any difficulties.
Thanks.

Shanti C 106 Posting Virtuoso

try with crystal reports..

Shanti C 106 Posting Virtuoso

you must have to close the printf function in line no 512.
like :

<?php printf( 'your content' );
Shanti C 106 Posting Virtuoso

@karthik , yes.
and also you can write like this simply..

SELECT username, timestamp, topic FROM hotspots GROUP BY topic ORDER BY id DESC
karthik_ppts commented: usefu; post +5
Shanti C 106 Posting Virtuoso

Be true to your work, your word, and your friend.
- Henry David.

Shanti C 106 Posting Virtuoso

1882

Shanti C 106 Posting Virtuoso

It is not enough to help the feeble up, but to support him after.
- Shakespeare

Shanti C 106 Posting Virtuoso

please post your peice of code..

Shanti C 106 Posting Virtuoso

After your update query redirect your page to main page.
So you have to include this line after your query line (line no : 23):

header("Location: main.php");

If this in not your requirement, Please be more specific.

karthik_ppts commented: Yes +5
Shanti C 106 Posting Virtuoso

"If you greatly desire something, have the guts to stake everything on obtaining it."
- Brendan Francis

Shanti C 106 Posting Virtuoso

My friend is one... who take me for what I am.
- Henry david.

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

Keep smiling, because life is a beautiful thing and there's so much to smile about.
- Marilyn Monroe

Shanti C 106 Posting Virtuoso

1718

Shanti C 106 Posting Virtuoso

DaniWeb IT Discussion Community is an on-line IT discussion community.

Shanti C 106 Posting Virtuoso

1662

Shanti C 106 Posting Virtuoso

you have missed semicolon in line 31.

karthik_ppts commented: good spot +5
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
- Bill Gates

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

Learning Jasper Repots...
Using ireport tool new version to create reports/charts.
And also learning how to edit the chart through java code.