Shanti C 106 Posting Virtuoso

ok naveen....

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

i have done one project on school management system as my acadamic project...its very interesting ..maintaining the all teachers information,applying online leave s,browsing their history of service,applying online transfer etc....

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

thanks for all suggestions....

what book is good for preparing sun certification in core java....

Shanti C 106 Posting Virtuoso

yes!!!
google does not put more load on meta tags......

Shanti C 106 Posting Virtuoso

this is your table having text fields:

<table width="291" id="prl" style="display:none">
  <tr>
    <td width="95">message</td>
    <td width="196"><input name="message" type="text" id="message" ></td>
  </tr>
  <tr>
    <td>name</td>
    <td><input name="name" type="text" id="name"></td>
  </tr>
  
 
  </table>

this is your link to show the text boxes:

<a href="#" onClick="toggle_it('prl')">show</a>

include this script in your page:

<script language="javascript">
  function toggle_it(itemID){
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }
</script>
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

Provide small code that runs on online and show output immediately and provide them to edit that code...just like in w3schools....
and also showing input and output with simple examples is the best way to show them what is going there.....

Shanti C 106 Posting Virtuoso

i think you just import your notepad file to your mysql database.....
check this:
http://www.clockwatchers.com/mysql_dump.html

Shanti C 106 Posting Virtuoso

sorry,,,
the above two are for inserting the data from notepad to mysql table...
please ignore them...

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

use this MySQL command


LOAD DATA INFILE 'path/to/text/file'

IGNORE INTO TABLE mytable;

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

these are some downloads...
have a look on that...

Shanti C 106 Posting Virtuoso

in first page:

<?php

session_start();

$my="blue";
session_unregister("my");
session_register("my");
$_SESSION['my']=$my;
echo "<a href='show_session_var.php'>Click here to go to next page</a>";
?>

in second page:

<?php
session_start();
echo $_SESSION['my'];

?>
Shanti C 106 Posting Virtuoso

Fine...

Shanti C 106 Posting Virtuoso

yes, this is really friendliest forum!!
im also feeling like...........

Shanti C 106 Posting Virtuoso

this is correct one:

SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag='1' and a2.flag='1'";
Shanti C 106 Posting Virtuoso

that is not correct..
see the following is correct:

SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag='1' and a2.flag='1'
Shanti C 106 Posting Virtuoso

coming to your thread title...
you can use joins to use two tables in single query:

"select * from table1 as t1,table2 as t2 where ti.id=t2.id";

this is simple....
Have look on this url follows:
http://www.tizag.com/mysqlTutorial/mysqljoins.php

Shanti C 106 Posting Virtuoso

set your flag field according to your requirement, means when you clicked on the delete make your flag to 1,then the message is under trash...
Explanation:
when user send one message ,then insert it into messages table with flag=0,then when in inbox ,write your query with where clause is where flag=0...and when user deletes that,make your flag to be 1,then it is under trash....
try this and notify if any error comes...

Shanti C 106 Posting Virtuoso

you just sort your table by id ,no need of sort by date..because your id is auto incremented one....

$selcount = "SELECT * FROM autoalto_mail ORDER BY auto_id DESC" ;
Shanti C 106 Posting Virtuoso

ok

Shanti C 106 Posting Virtuoso

this is code for getting file name with out extension:

$fname=substr($HTTP_POST_FILES['myfile']['name'],0,strpos($HTTP_POST_FILES['myfile']['name'],'.'));

the fname will have the file name....

Shanti C 106 Posting Virtuoso

I am newbie to java implementation...
can any one tel me the oops concepts with real time examples....

thanks in advance...

Shanti C 106 Posting Virtuoso

i got its working now...
i have reinstalled the GD library...
its working...
sorry for silly thread...

Shanti C 106 Posting Virtuoso

can any one tel me what is reason behind this error???

Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\web\test\thumbnailcode.php on line 18

and i have already installed GD library in my system...
thanks ....

Shanti C 106 Posting Virtuoso

k..

Shanti C 106 Posting Virtuoso

naveen, please tel me the difference between your post and my post....

Shanti C 106 Posting Virtuoso

That will just redirect the page once the button is clicked. To post the form data to different scripts depending upon the button clicked, you need to make use of javascript.

ok naveen...
i have understand the thread in that way..

Shanti C 106 Posting Virtuoso

change your query to:

$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND flag='1'";
Shanti C 106 Posting Virtuoso

you just give different names to your buttons like:

<input type="submit" name="b1">
<input type="submit" name="b2">
<input type="submit" name="b3">

then at the top of your page:
do like this:

<?
ob_start();
if($_POST['b1'])
{
header("location:one.php");
}
if($_POST['b2'])
{
header("location:two.php");
}
if($_POST['b3'])
{
header("location:three.php");
}
Shanti C 106 Posting Virtuoso

put the above php code in your jobapp.php....

Shanti C 106 Posting Virtuoso

hello..
you should put one submit button...
Try this:

<?
if($_SERVER['REQUEST_METHOD']=='POST')
{
print_r($_POST);
}
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<form action="" method="POST" name="app">
	
	Please, enter your name:
	<input type="text" name="applicant" /><br />
	Please, enter your telephone number:
	<input type="text" name="telephone" /><br />
	Please, enter your e-mail address:
	<input type="text" name="email" />
	<br /><br />
	<input type="submit" name="Submit" value="Go!!" />
	</form>
</body>
</html>
Shanti C 106 Posting Virtuoso

check these:
References
[1] Jesse Burns. Cross site reference forgery - an introduction to a common web application weakness.
Whitepaper, https://www.isecpartners.com/documents/XSRF Paper.pdf, 2005.
[2] David Endler. The evolution of cross-site scripting attacks. Whitepaper, iDefense Inc., http://
www.cgisecurity.com/lib/XSS.pdf, May 2002.
[3] Jeremiah Grossman. Javascript malware, port scanning, and beyond. Posting to the websecurity
mailinglist, http://www.webappsec.org/lists/websecurity/archive/2006-07/
msg00097.html, July 2006.
[4] Jeremiah Grossman and TC Niedzialkowski. Hacking intranet websites from the outside. Talk
at Black Hat USA 2006, http://www.blackhat.com/presentations/bh-usa-06/
BH-US-06-Grossman.pdf, August 2006.

Shanti C 106 Posting Virtuoso

do this first as first aid:
• Do not use the firewall for authentication: All http services in the intranet should employ authentication mechanisms on their own.
• Change all default passwords on home appliances: Authentication is useless if the password is known.
• Disable JavaScript: Enable JavaScript only for trusted pages that really require JavaScript to function.
This does not provide protection for the case that one of this pages was victim of an XSS [2]
attack, but it reduces the attack surface significantly.

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

you also post this thread in viruses forum....
may you get good advices.....

Shanti C 106 Posting Virtuoso

You can do it with DATEADD, directly in MySql

SELECT DATEADD(...) AS IncrementedDate from ...
DATEADD("2000-12-01",INTERVAL 1 DAY)

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

your thinking is right...
i think its all because of one virus called JavaScript malware.....
scan your all web pages with anti virus scanner and find what is the exact virus.....
find the source of it...

Shanti C 106 Posting Virtuoso

use ob_start(); funtion as first line of your page like:

<?
ob_start();
?>
Shanti C 106 Posting Virtuoso

why are you placing the same post again and again...
do your application in different ways according to the posts mentioned above...and notify the errors...
dont place same post again....

Shanti C 106 Posting Virtuoso

this is also done by using simple php and database queries...
why are you try to do this by java script????

Shanti C 106 Posting Virtuoso

hello

Shanti C 106 Posting Virtuoso

hii..

if a admin login go to uregister.php page
if users login go to userlink.php but following code every one go to the uregister.php page only so i nead above the following condition clear my doubt..


if(isset($_REQUEST))

{
if($_SERVER=="POST"){

$qer="select * from login where username='".$_POST."' and password='".$_POST."'";

$res=mysql_query($qer)or die(mysql_error());

$num=mysql_num_rows($res);

if($num==1 && $res==0)

{

echo'<script language="javascript">window.location.href="uregister.php";</script>';

}

else{

echo'<script language="javascript">window.location.href="login.php";</script>';

}

if($num==1 && $res==1)
{
echo'<script language="javascript">window.location.href="userlink.php";</script>';

}

else{
echo'<script language="javascript">window.location.href="login.php";</script>';

}

}

}

i think your if conditions are not correct:

if( $res['usertype']==0)

{

echo'<script language="javascript">window.location.href="uregister.php";</script>';

}

if( $res['usertype']==1)
{
echo'<script language="javascript">window.location.href="userlink.php";</script>';

}
else
{
echo'<script language="javascript">window.location.href="login.php";</script>';
}
Shanti C 106 Posting Virtuoso

Praveen....

Hope you will achieve more in your life....

All The Best...

ShantI

Shanti C 106 Posting Virtuoso

nice.........

Shanti C 106 Posting Virtuoso

you can use joins for this:

"select * from table1 as t1,table2 as t2 where ti.id=t2.id";

this is simple....
Have look on this url follows:
http://www.tizag.com/mysqlTutorial/mysqljoins.php