|
Ajax or not Ajax, updating the database is still the same.
The only difference is using Ajax you can send data back to the server without posting the form.
There are plenty of examples in CodeProject itself on Ajax (check your navigation menu on the left for AJAX).
If you're interested, Anthem.Net is a very good .Net AJAX library you can use right away without needing to understand all the complexity*.
*Disclaimer: Brain required
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
|
|
|
|
|
Dear All,
I have saved my username and password using PHP in Mysql Server. I have used PASSWORD('password').But for user verification how I will check user password from Mysql server using PHP.Because PASSWORD() one way process.
What things I have to do?
Pl anybody in help ? Any hints.
rpkumar
|
|
|
|
|
SELECT PASSWORD('mypass')
will give the the value of the encripted password 'mypass' simply check the returned value from this against the value in the password field.
I have not tested this, I assume it will wortk.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
Well As I think, He should do as:
select password from table_name where userName = 'passedUserName'
Now,in while loop $pass = $result['password'];
if($pass == PASSWORD(myPass))
return true;
else
return false;
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
hi, how can i attched a text or image file with the email. if any body knows then plz send me the code.
Regards,
Deepak More
Software Developer
Mumbai
|
|
|
|
|
I need a php code OR ASP which sends the
subject,body and attachment of email
to the local intranet configured lotus notes 6.
vivek
-- modified at 4:55 Monday 6th February, 2006
|
|
|
|
|
how to redirect from this page to another page using PHP language??
Militiaware
Faris Madi
|
|
|
|
|
See http://uk.php.net/header
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
$URL="http://www.example.com";
header ("Location: $URL");
|
|
|
|
|
you can redirect to the same php with different action case too.
like just pass action in the php link and then write:
header("Location: phpFile?action=newaction");
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my question is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
take a look at this code ...
<div style="height:100%;">
<div style="height:20px;"></div>
<div style="height:100%;"></div>
<div style="height:20px;"></div>
</div>
basically i want it so that the top and bottom inner divs always stay 20px in height, and the inner div fills in the rest of the left-over space of the outter div ... but i don't want the outter div becoming taller than the page itself ... any help?
~ Munky
|
|
|
|
|
I believe you can use the css float property to do this.
Try the following steps:
1. Float the first inner div to the top, and specify height: 20px
2. Specify height of second inner div as 100% (I'm not sure whether this works in FireFox though)
3. Float the third inner div to the bottom, and specify height: 20px
That should allow the middle (second) div to fill in the page.
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
|
|
|
|
|
Maybe you can try this?
In your CSS document create a class like so:
.Top
{
position:absolute;
top:0px;
width:100%;
max-height:100%;
overflow:hidden;
}
and then create a bottom part like this:
.Bottom
{
position:absolute;
bottom:0px;
width:100%;
max-height:100%;
overflow:hidden;
}
Now, when you define the classes in div it would look something like this:
and bottom:
everything between top and bottom will scroll under the top and bottom classes.
hope it helps!!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
I have noticed in Netscape and Opera that web sites can display an icon in the address bar just before http:// as this site does.
I am interested in doing this for my web site but have no idea what is involved.
Can anyone help?
old, but still trying new things!
|
|
|
|
|
|
Thank you so much for the prompt response!! I will try out the suggestion on the link you gave me.
I did search the site for this topic but perhaps worded it wrongly.
Again, Thanks.
Never too old to learn!
|
|
|
|
|
I followed the instructions and now have my icon appearing in Netscape and Firefox.
It does NOT work with IE 6.01 SP 1
I am currently using IE and the Codeproject icon does not appear either.
This would appear to be consistent with Microsoft wanting to over-ride anything that interferes with their logo and also attempting to take over all types of MEDIA using their own products.
Les
|
|
|
|
|
Weird, try bookmarking the page and IE only then downloads the icon... I just tried a quick google[^] and it seems *it's by design*
I don't think your going to get around it unfortunately
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
After playing around for a few hours, it is true that any page on a site that is added to Favorites in IE, AND where favicon is present in the root, that page will always display the site icon.
Thanks for your help and pointers on this matter.
Les
|
|
|
|
|
what is the code where when i click on a button, then a value will be passed to the next page?
Thanks
|
|
|
|
|
use "session"
you can save anything in the session and get it in anypage you want...
Militiaware
Faris Madi
|
|
|
|
|
That depends on how you load the next page.
You can put values in the querystring of the URL.
You can put a value in a hidden form field.
---
b { font-weight: normal; }
|
|
|
|
|
Hi. I am writing a data web service in VS 2005 using Ms Sql Server 2005 as data server. I wrote a connection strin gin the web.config file in the <appsettings> area. I used it in the code, but when I invoke it, it doesnt bring up the details. I know there is some data in the table, but it doesnt bring it up via the web service call.
what would I be doing wrong?
|
|
|
|
|
<%
Dim RS
Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("forum.mdb") & ";"
Conn.Open
SQL = "SELECT * FROM profile"
RS.Open SQL, Conn
%>
<title>Youth Aloud!Forum
#content {
margin-right:1%;
margin-left:1%;
margin-top:5%;
padding-bottom:10px;
background:#fff;
border:2px solid #ffaf38;
text-align:left;
min-width:600px;
}
Name:
">
Age:
">
Gender:
">
Website:
">
MSN:
">
Yahoo:
">
Occupation:
">
|
<%
RS.Close
Set RS = Nothing
Conn.Close
Set Conn = Nothing
%>
The above code is my code. After running for a few times, an error occured...i cannot solve it... :'( This happened to my previous code too..I redo my code and this time it's happening again..may i know what is the prob???
Script error detected at line 61.
Source line: response.write(RS("Name"))
Description: Type mismatch: 'Response.Write'
girl77
|
|
|
|
|
Are you checking to make sure your record set has values? Are you displaying a single record because I do not see a loop.
|
|
|
|