suzzane2020
Members-
Posts
233 -
Joined
-
Last visited
Never
Everything posted by suzzane2020
-
<script language="JavaScript" type="text/javascript"> function changeIt() { var i = 1; my_div.innerHTML = my_div.innerHTML +"<br> ><input type='text' name='others'+ i>" </script> place te div tags in the form where u want te field to appear. eg: <div id="my_div"></div> //call this function on a onclick event of te link
-
u can try this write a code tht checks the diff between te current date and the invoice date. n when the diff is 7 the query to archive is executed so put the query in the if condition.
-
do u get any error in IE
-
Try this format if(is_uploaded_file($_FILES['uploadedfile']['tmp_name'])) { $target_path = "/uploads/"; $filename = basename( $_FILES['uploadedfile']['name']); $target_path = $target_path .$filename; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { $uploadNotice = "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded.<br />"; } else { echo "cannot move uploaded file"; } } else {echo "cannot upload"; }
-
u need to upload it first and then move it to the target path before if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) u need to use if(is_uploaded_file($_FILES['uploadedfile']['tmp_name']))
-
[SOLVED] Help with "Tell a Friend" link?
suzzane2020 replied to suzzane2020's topic in PHP Coding Help
hi i tried that out and it worked fine..used the same variable.. thanx a lot fert -
[SOLVED] Help with "Tell a Friend" link?
suzzane2020 replied to suzzane2020's topic in PHP Coding Help
ok its like i go to this site and find a particular page tht i want to send to my friwnd..there is a link "Tell a friend" where i can enter info about the site and send it . along with te info i, want the link i had just visited in te site to be sent to him/her. -
Hi Thnx in advance for any help. I have a function where i need to send the recently visited link in my site ,to a friend. The link should appear in one of the mail form fields. hw do i get it?
-
try this use the round function $dec=12.234; $new=round($dec,2);
-
sure... :)glad u found te problem!!
-
n better still u could use the _GET or _POST methods when using isset eg if( !isset($_POST["$mail1"])) { }
-
when the email is not set does it go to the else part n display $logged2 or just give an empty string?
-
hi, where have u placed the second part on the program?
-
after echoing the ile name try pasting that in the browser n see wat u get..im there the extension or filepath needs to be changd a bit
-
headers and sesions are normally kept before an html code..if not u wud get the error
-
thnx!! tht worked great.
-
hi, hw can i select the latest 10 job postings from my table datewise?
-
[SOLVED] 2 connections in the same script
suzzane2020 replied to suzzane2020's topic in PHP Coding Help
thnx a lot for all your help guys... :) -
[SOLVED] 2 connections in the same script
suzzane2020 replied to suzzane2020's topic in PHP Coding Help
ok..thnx..was asked this question in a previous interview n wasnt sure of the ans... thnx again -
[SOLVED] 2 connections in the same script
suzzane2020 replied to suzzane2020's topic in PHP Coding Help
smebody help... :-[ :-[ -
hello, gt a doubt.(gt an interview 2mrw..need all te help)!!!!.plz help can we have 2 connections to the same db and like wise two connections to diff db's in te same script?
-
try takin the space out between messages and (to, subject) mysql_query("INSERT INTO messages(to, subject) VALUES ('$to', '$subject')") or die (mysql_error());
-
add a part over here else if (($Actual < $Target) &&( ($Actual-$Target)!=2)) { $colour = "red"; return $colour; }
-
sorry te other way around if(($Target-$Actual)==2) { $color="Amber"; return $color; }