Shanti C 106 Posting Virtuoso
ok naveen....
hello..
have a look on following...
help full to make web crawler in php:
http://www.thecredence.com/creating-bots-spiders-and-crawlers-with-php/
and this for web crawler in visual:
http://www.topshareware.com/Visual-Web-Spider-download-39202.htm
http://www.beansoftware.com/NET-Tutorials/Web-Crawler.aspx
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....
thanks for all suggestions....
what book is good for preparing sun certification in core java....
yes!!!
google does not put more load on meta tags......
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>
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.....
i think you just import your notepad file to your mysql database.....
check this:
http://www.clockwatchers.com/mysql_dump.html
sorry,,,
the above two are for inserting the data from notepad to mysql table...
please ignore them...
see this link for reference:
http://www.mwasif.com/2007/5/download-data-csv-using-php/
http://dev.mysql.com/doc/refman/5.0/en/insert.html
use this MySQL command
LOAD DATA INFILE 'path/to/text/file'
IGNORE INTO TABLE mytable;
these are some downloads...
have a look on that...
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'];
?>
yes, this is really friendliest forum!!
im also feeling like...........
this is correct one:
SELECT * FROM autoalto_mail as a1, autoalto_contractor_sentitems as a2 where a1.flag='1' and a2.flag='1'";
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'
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
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...
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" ;
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....
I am newbie to java implementation...
can any one tel me the oops concepts with real time examples....
thanks in advance...
i got its working now...
i have reinstalled the GD library...
its working...
sorry for silly thread...
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 ....
naveen, please tel me the difference between your post and my post....
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..
change your query to:
$query1="SELECT * FROM autoalto_mail where mail_id='".$mailid1."' AND flag='1'";
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");
}
put the above php code in your jobapp.php....
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>
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.
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.
you also post this thread in viruses forum....
may you get good advices.....
You can do it with DATEADD, directly in MySql
SELECT DATEADD(...) AS IncrementedDate from ...
DATEADD("2000-12-01",INTERVAL 1 DAY)
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...
use ob_start(); funtion as first line of your page like:
<?
ob_start();
?>
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....
this is also done by using simple php and database queries...
why are you try to do this by java script????
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>';
}
Praveen....
Hope you will achieve more in your life....
All The Best...
ShantI
nice.........
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