pulpfiction
-
Posts
1,210 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by pulpfiction
-
-
Try \r\n\n for New Line and \r for Return. Use both to work in IE.reason="title:"+\r\n+"paragraph"
-
sql question
in SQL
Not the website.... what serverside scripting language are you using [php, ASP...... ??] post the code from the file. guessing it should be Index.asp or Index.php... something like that.
-
Customized alert message...http://slayeroffice.com/code/custom_alert/
-
sql question
in SQL
Post your SQL query, should be something with syntax......
-
Try this...
SELECT Type, COUNT(*) AS CountFROM Tbl_Name GROUP BY Type
-
Code below shows a simple demo.....
<html><head><script type="text/javascript">function over() {alert("Onmouseover function working");}function out() {alert("Onmouseout function working");}</script></head><body><a href="#" onmouseover="java script:over();" onmouseout="java script:out();">Click here</a><!-- Calling javascript function defined in head/script section above --></body></html>
More info.....Onmouseover: http://www.w3schools.com/jsref/jsref_onmouseover.aspOnmouseout: http://www.w3schools.com/jsref/jsref_onmouseout.asp
-
-
Use CSS property float:left for the tables....Also what do i do to make it so the table will go up next to another instead of going underneath it -
[im not really good at PHP]Since you have given same name for all the checkbox, when you do a $_POST['delete'] you will get the values of checked checkbox seperated by commas. then you can split and then delete the records.<input type='checkbox' name='delete' value=......
-
Try this...
dim str, slt' some sample textstr = "With ASP you can dynamically edit, change or add any content of a Web page, respond to data submitted from HTML forms, access any data or databases and return the results to a browser, customize a Web page to make it more useful for individual users"dim st, i, size' Mention number of characters to splitsize = 10i = 0st = 1while st<=len(str) slt = Mid(str, st, size) st = st + size i = i + 1 response.write(slt) response.write("<br />")wend
-
User Login
in PHP
You need to use the correct server name to connect to the database. Since its not in your local machine then mysql_connect("localhost"..... will not work. put the correct server name.Try this code below to check database connection.... <?php$username = "uname";$password = "pass";$hostname = "servername"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");print "Connected to MySQL<br>";mysql_close($dbh);?>
-
User Login
in PHP
It is not necessary to have but doesnt make difference in the SQL query.is it necessary to have the apostrophes around 'name' and 'pass'?
. [dot] is concatenation in PHP. so to join a string and a variable its like that.$str1 = "Bob";$str2 = "Good Morning" . $str1;echo $str2;Output: Good Morning Bobwhy did you put ".$name." instead of "$name"?
Since you are using SHA1() for password, so when you validate the login, you need to do the same process.... And now, if the password is correct then $_SESSION['logged'] will be 1.$pass = mysql_real_escape_string($_POST['pass']);$pass = SHA1($pass);$search = mysql_query("SELECT * FROM users WHERE `name` = '".$name."' AND `pass` = '".$pass."'");GET Method: In the login page where the user inputs username and password, you will have a <form> tag and in that change the "method" attribute to GET\<form method="get" action="nextpage.php">With this you must also change the current page too...$name = mysql_real_escape_string($_GET['name']);$pass = mysql_real_escape_string($_GET['pass']);I used SHA('password')? -
Textarea is pretty much straight forward....<td><textarea rows="5" cols="20"><%= x.txtAreafld %></textarea></td>
-
just starting
in SQL
This might help.. [look for "Adding Users"]http://www.wampserver.com/phorum/read.php?...8927&t=8927
-
Are you looking for something like this...http://www.asp101.com/samples/db_edit.asp
-
This might help a little..http://www.serverwatch.com/tutorials/article.php/1476961
-
Totally misunderstood the question, wrong post. sorry....
-
First of all you will need a database to store all the employee information.... so when the user types the number then you can get the corresponding user information. so you need to decide on some database and get employee info. then learn ASP.NET/C# connectivity [with database]. query database and retrieve data. finally populate textbox with that data.ASP.NET & DB Conection.http://www.w3schools.com/aspnet/aspnet_dbconnection.asp
-
I'm pretty new to PHP too.... eregi: Case insensitive regular expression match [Just make it easy to validate]. Email@domain.com is same as email@domain.com....Also it should allow .net and .co.in or anything like that...
-
Try this to validate email.if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $YourEmail)) { // Valid Email mail( "author@tsrealms.com", "From $YourName", "$YourMessage", "From: $YourEmail" ); echo "<h1>Thank you for your message! One of the admins should be getting back to you via email within 24 hours.</h1>"; } else { echo "<h1>Please Enter a Valid Email Address</h1>"; }
-
div questions
in CSS
Try this....
<html><head><title></title><style type="text/css">* {margin:0px;padding:0px;}body {text-align:center;}div#container {margin:0px auto;text-align:left;width:780px;height:800px;}div#left {float:left;width:30%;height:100%;border:1px solid #ff0000;}div#right {float:left;width:70%;height:100%;border:1px solid #0000ff;}</style></head><body><div id="container"><div id="left"></div><div id="right"></div></div></body></html>
-
Google gave these results, checked first 2. they seem to be under $100....http://www.google.com/search?hl=en&q=m...amp;btnG=Search
-
Well I tried the code and resize seems to be working fine. Are you asking about the "menu" frame size changing when the whole page [browser] is resized. i.e., when the browser window's size changed. Then you need to give a particular value [px] rather than giving a % value in the second frame.Replace <frameset border="0" cols="20%,*">with <frameset border="0" cols="200,*"> [200px]
-
The order you check must be changed....1. isset($_REQUEST['Email'])2. ereg3. send email.
if (isset($_REQUEST['Email'])) {if (ereg("^.+@\.com$",$_REQUEST['Email'])) {// Correct email idmail( "author@tsrealms.com", "From $YourName", "$YourMessage", "From: $YourEmail" );echo "<h1>Thank you for your message! One of the admins should be getting back to you via email within 24 hours.</h1>";}else {echo "ERROR: Enter valid email";}} //End of isset() IFelse{ echo "<h1>Please Enter an Email Address</h1>";}
Textarea problems
in JavaScript
Posted
Yeah, \n works for me too. but this site below says something about \r\n......http://www.rgagnon.com/jsdetails/js-0001.html