Shanti C 106 Posting Virtuoso

Your update query should be like this:

$qur= "update tbl_circular set `date`='".$date."', `headline`='".$headline."', `description`='".$des."' where headline like  '%".$head."%'";	
$update1=mysql_query($update) or die("Could not Update");

Post if error occures...

Shanti C 106 Posting Virtuoso

What is done in login page is:

You just compare your typed name and password with database name and password,
if they are correct ,then you just put them in sessions like:

session_unregister(user_name);
session_register(user_name);
$_SESSION['user_name'];

Then you can use them where ever you want...

please reffer some session materials by googling...

Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

shanti said:
"8.Register your site address with google maps.."

How do I do this?

Thanks Again All, Regards X

By login in to the following link:

https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.google.com%2Flocal%2Fadd%2FbusinessCenter%3Fgl%3Dus%26hl%3Den-US&service=lbc&hl=en-US&gl=US

Shanti C 106 Posting Virtuoso

Hello..
i have posted another two ways which i have posted...
try to implement with those also...
then tel me where will be the error...

Shanti C 106 Posting Virtuoso

always mark thread as solved, when you get solution, as it will help others if they are searching for a solution.

Shanti C 106 Posting Virtuoso
if (Date.parse(fromDate) > Date.parse(toDate)) {
alert("Invalid Date Range!\nStart Date cannot be after End Date!")
return false;

}

or

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<script type="text/javascript">
<!--
function check (f) {
var start = new Date (f.start.value);
var end = new Date (f.end.value);

start.setDate (start.getDate() + 28);
if (end >= start) {alert (); return false}
}
// -->
</script>

<style type="text/css">
<!--
fieldset {padding:1ex; width:10em}
label {display:block; margin:1em 0}
input {display:block}
button {display:block; margin:auto}
-->
</style>

</head>
<body>
<form action="some-script.pl" onsubmit="return check (this)">
<fieldset>
<legend>Dates</legend>
<label>Start Date<input name="start" onchange="this.value = new Date (this.value).toDateString()" type="text"></label>
<label>End Date<input name="end" onchange="this.value = new Date (this.value).toDateString()" type="text"></label>
<button type="submit">Submit</button>
</fieldset>
</form>
</body>
</html>

or simply

function dt()
    {
        var ch=Date.parse("06/19/2008");
       
        var currentdt=new Date;
        if(ch>Date.parse(currentdt))
        {
            alert("Date is greater.");
        }
        else
        {
            alert("Date is less");
        }
    }
Shanti C 106 Posting Virtuoso

If you got correct information,then make this thread as solved...

Shanti C 106 Posting Virtuoso
//your database connections...
<select name="state" class="input_form" style="width:150" >
                      <option value="" selected>Select State</option>
                      <?

$query1=mysql_query("SELECT * FROM onetable ");
$cnt=mysql_num_rows($query1);
if($cnt>0)
{ 
while($list1=mysql_fetch_array($query1))
{
echo "<option value='$list1[id]' >$list1[name]</option>";
}
}
?>
                    </select>
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

Read seo tips and follow them and do hardwork on that....

Shanti C 106 Posting Virtuoso

Check this material is the best:

Shanti C 106 Posting Virtuoso

This is which i attached , a complete material about seo....

Shanti C 106 Posting Virtuoso

This is the code for validating your emailid is same as confirm mail id:

if (d.email.value!=dc.value)  {  alert("Your email and Confirm emaildoesn't match..");  d.cemail.value="";  d.cemail.focus();  return false;  }

isNan function to be used to validate your phone number be having only numbers....

Shanti C 106 Posting Virtuoso

Then what am i supposed to do ???

First you should see the forums sites clearly...
And analyse them to develop..
Set your database with how many tables you want...
And then implement your self...
Check attachments of forums here:
http://www.daniweb.com/forums/thread134261.html


If we helped you to solve your problem, answered your question please mark your post as SOLVED.
ALL THE BEST.

Shanti C 106 Posting Virtuoso

Its working fine what you have posted...
Check your database queries once.
The syntax is also correct...

Shanti C 106 Posting Virtuoso

sites you were giving are really gud and helped me..
Thank you rakheeeeeeeeeeee..............
Thank you for your time...

Shanti C 106 Posting Virtuoso

http://www.thehindubusinessline.com/2007/12/28/stories/2007122852320400.htm

See this once and tell me in directly means (vocal)

Rakesh Nagekar

Its Gud...

Shanti C 106 Posting Virtuoso

Hello all see this material is damn good:
http://www.xul.fr/web-2.0.html

Shanti C 106 Posting Virtuoso

What is web2.0 and what is going to implement with it??

Shanti C 106 Posting Virtuoso

Can anyone spend sometime to read my thread and post info???

Shanti C 106 Posting Virtuoso

you just create a table like messages in your database, and create a sent form , insert customer quotes in database including customer id which is in session,,
And at service provider side,you just retrieve them to his box means:

function getdata($tble,$field,$whr) { 
 $q="SELECT $field FROM $tble where $whr";
$res=mysql_query($q);
$r=mysql_fetch_array($res);
return $r[0];
}
$msgcount=getdata("messages","count(*)","status=0");?>
<a href="inbox.php?read" >inbox(<?=$msgcount; ?>)</a>

You have place a field like status,then whenever it is 0,make the message as unread..otherwise read..

When ever user clicks on that message:
you have make the status as 1.

By using this function:

if(isset($_GET['read']))
{
update messages set status=1 where senderid=$_SESSION['user_id'];
// execute query...
Shanti C 106 Posting Virtuoso

In second page you just register session variables.
But not insert any info in that:

$emailid=$_POST['emailid'];
		$password=$_POST['password'];
		$conpass=$_POST['conpass'];
		$businessname=$_POST['businessname'];
		$streetaddress=$_POST['streetaddress'];
		$zip=$_POST['zip'];
		$phoneareacode=$_POST['phoneareacode'];
		$phoneprefix=$_POST['phoneprefix'];
		$phonesuffix=$_POST['phonesuffix'];
		$faxareacode=$_POST['faxareacode'];
		$faxprefix=$_POST['faxprefix'];
		$faxsuffix=$_POST['faxsuffix'];
		$contactfirstname=$_POST['contactfirstname'];
		$contactlastname=$_POST['contactlastname'];
		$comments=$_POST['comments'];
		session_register("emailid");
		session_register("password");
		session_register("conpass");
		session_register("businessname");
		session_register("streetaddress");
		session_register("zip");
		session_register("phoneareacode");
		session_register("phoneprefix");
		session_register("phonesuffix");
		session_register("faxareacode");
		session_register("faxprefix");
		session_register("faxsuffix");
		session_register("contactfirstname");
		session_register("contactlastname");
		session_register("comments");
Shanti C 106 Posting Virtuoso

I got the error with your database:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'businessName` varchar(45) collate latin1_general_ci NOT NULL,

Shanti C 106 Posting Virtuoso

Hey..
I found a material about web2.0
its very gud..
http://www.jisc.ac.uk/media/documents/techwatch/tsw0701b.pdf
http://blogs.zdnet.com/web2explorer/?p=5

But clearly tel me about..

Shanti C 106 Posting Virtuoso

Please post database also...

Shanti C 106 Posting Virtuoso

Hello all..
Can anybody clearly explain about web 2.0???
And tel me about mashup also....

Shanti C 106 Posting Virtuoso

please post your code as attachment...

Shanti C 106 Posting Virtuoso

See this:

function get_all_listings() { 
  $query = "SELECT * FROM `metlistings`";
		
  $result = mysql_query($query) or die(mysql_error());
		
  //Count the rows retrieved
  $count = mysql_num_rows($result);	
  for ($i = 0; $i <= $count; $i++) {						    
    while($row = mysql_fetch_array($result)) {
	$title = stripslashes($row['metName']);
	$link = $row['metId'];
	$arr = array("listings" => array("total" => $count, "data" => array($i => $link)));
	
    return $arr; //doest not work
					
    //print_r($arr); //works fine
			
	}
     }
 
}
 
$test = get_all_listings();
for($i = 1; $i <= $test["listings"]["total"]; $i++) { 
 
  echo $test["listings"]["data"][$i];
	
}
Shanti C 106 Posting Virtuoso
Shanti C 106 Posting Virtuoso

I attach the code for pagination here..
check and implement for your application..

Shanti C 106 Posting Virtuoso

Fine...

And make this thread as solved...

Shanti C 106 Posting Virtuoso

You have to insert all variables like what his order number,items form products table,amount,date into one table like order_user_details before mailing them to customer.At the admin side you can see who ordered for what,and also the status of order....

Shanti C 106 Posting Virtuoso

Hello nav..
In the above code CURDATE is database field or its todays date...tel me.

Shanti C 106 Posting Virtuoso
if($_GET['stat']==1){$p=1;$m=5;}
else{$p=0;$m=6;}
$q="update yourtable set status='".$p."' where id='".$_GET['id']."' ";
mysql_query($q);

this is to display status:

if($row['status']==0)
			{
			$i="In-Active";
			$j=1;
			}
			else
			{
			$i="Active";
			$j=2;
			}

This is where your status link in your page:

<td  align="center"class="style13" ><a href="managepage.php?id=<?=$row['id']?>&stat=<? echo $j?>" > <? echo $i?></a> </td>
Shanti C 106 Posting Virtuoso

k thank you...

Shanti C 106 Posting Virtuoso

See this link where your error all about:
http://drupal.org/node/76156

Shanti C 106 Posting Virtuoso

Try a bigger
"memory_limit"
in
"php.ini"
or

please put the following code in your php page for increasing the memory size without making any change in php.ini

ini_set("memory_limit","24M");

By default the memory size is 8M,So if you need more memory to execute any script code please try it.

Shanti C 106 Posting Virtuoso

i got the correct output...
What my mistake is:
i have declared dob with varchar,after i changed it to date,correct output came...

Thank you naveen....

Shanti C 106 Posting Virtuoso

Dear Friend,

things are actually easy to prevent this:

In Function get_temp_urls located in spider.php a sql gets executed. The results of this sql get stored in an Array named $tmp_urls.

Limit the SQL results to say 0,100 and your spider will work fine as the Array is kept small. Now, if you think the spider will stop after 100 URLs, then you are wrong, he continues way as long as there is something to spider (depending on your settings)!

The SQL I use reads:
$result = mysql_query("select link from ".$mysql_table_prefix."temp where id='$sessid' limit 0,10");

This also speeds up the overhead before the spider starts and limits queries against the database!
Try it and be surprised!

:-) Keep smiling!

Shanti C 106 Posting Virtuoso

Yep..
I changed my date to date1..
Still i got the error...

Shanti C 106 Posting Virtuoso

date is my database field, and i declared it as varchar...
Is it a problem?

Shanti C 106 Posting Virtuoso

date is a mysql reserved keyword. You should use `` around reserved keyword fields to make them work.

If dont mind...
Please edit my code and resend...
Thank you...

Shanti C 106 Posting Virtuoso

Hi Naveen...

I have done a code with your reference..
But i got error in mysql:

Error
SQL query:

"SELECT fname,date,curdate(),(YEAR(curdate())-YEAR(date))-(RIGHT(curdate(),5)<RIGHT(date,5)) AS age FROM date_profiles ORDER BY fname";

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT fname,date,curdate(),(YEAR(curdate())-YEAR(date))-(RIGHT

Shanti C 106 Posting Virtuoso

Thank you so much Vivek Rawat for your help....

Shanti C 106 Posting Virtuoso

Hi Shanti,

I have included the files that matches exactly your requirements in my earlier posts.

Its gud..
Very thanks for your time...

But i got this error..
Notice: Undefined variable: a_img in E:\web\test\photoalbum.php on line 39

Shanti C 106 Posting Virtuoso

Hai and thanks !!
I had some what the same sort of ideas, especially the one on forums.
But, you mentioned "portals" what exactly did u mean by that ???

Typical services offered by portal sites include a directory of Web sites, a facility to search for other sites, news, weather information, e-mail, stock quotes, phone and map information, and sometimes a community forum. Excite is among the first portals to offer users the ability to create a site that is personalized for individual interests.

Shanti C 106 Posting Virtuoso

Thanks vivek...
I will have a look..

Shanti C 106 Posting Virtuoso

i never saw this error....