Jump to content

angelsRock

Members
  • Posts

    49
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

angelsRock's Achievements

Member

Member (2/5)

0

Reputation

  1. if i pay 300 one year for the hosting server... 10 for one new domain eaech year... how much should i charge my customer for a project ?? ;D ;D some said is 10 for 10Mb ?
  2. if i from asia.. should i buy the server based in asia? faster?
  3. actually i am from Asia country.. i wonder will the speed be faster if i buy the server based in US/UK?? basically my website is on php / .net
  4. hi expert.. i would like to get an account for hosting server.. but there are currently too many too choose from.. any advice for me to choose the best? is it getting the server from US or UK is better and faster in terms on bandwidth?
  5. hahaha ;D don laugh at me lee..hahaha if i were to use paypal... how should i integrate it ya? they provide the module for us? ;D
  6. hi.. what should i do if i want to set up a website with credit card service? the hosting server has a module on credit card.. so.. do i need to go to bank to ask for this service to set up to my website? or the hosting server handle for us??
  7. so how should i put this if(!$connection) die("Connection failed"); else { mysql_select_db($db); $query = "delete from prem_propertyad where premPropertyID = '".$_GET[prem77]."' "; $exec=mysql_query($query); echo '<script>alert("Property deleted");</script>'; echo '<script>window.location="myneuproperty-postings.php";</script>'; }
  8. echo"<td align=center><a href='delete.php?prem77=$row[premPropertyID]'><font size=2 color='#666666'>".Delete."</font></a></td>"; in delete.php <?php if(isset($_GET[prem77])){ $connection=mysql_connect($server, $user, $pass); if(!$connection) die("Connection failed"); else { mysql_select_db($db); $query = "delete from prem_propertyad where premPropertyID = '".$_GET[prem77]."' "; $exec=mysql_query($query); echo '<script>alert("Property deleted");</script>'; echo '<script>window.location="myneuproperty-postings.php";</script>'; } }?> how do i add in the warning to prompt " Are u sure want to delete?" with yes or no button
  9. oh .. actually i don want to put any link for them... .. can they just use the backspace to go back?
  10. where should i put that $_SERVER['HTTP_REFERER'] ? into the previous page? or current page? where thanks
  11. hi.. i use backspace to link back to my previous page.. but it fails me ...showing webpage has expired .. what should i do??
  12. <?php if(is_uploaded_file($_FILES[image1][tmp_name])) { $imagename1 = basename($_FILES['image1']['name']); $newimage1 = "art/" . $imagename1; $thumbimage="thumbs/" . $imagename; echo $_FILES['image1']['type']; if(move_uploaded_file($_FILES[image1][tmp_name],$newimage1)) { echo"<p class=good>FIRST PICTURE UPLOADED OK</p>"; } else { echo"<p class=error>PICTURE ERROR</p>"; } } mysql_select_db($db); $query = "update premium_propertyad set address='".$_POST[address]."', area='".$_POST[area]."', state='".$_POST[state]."', type1='".$_POST[type1]."', type2='".$_POST[type2]."', type3='".$_POST[type3]."', selling_price='".$_POST[selling_price]."', rental_price='".$_POST[rental_price]."', land_area='".$_POST[land_area]."', buildup_area='".$_POST[buildup_area]."', tenure='".$_POST[tenure]."', bedroom_num='".$_POST[bedroom_num]."', bathroom_num='".$_POST[bathroom_num]."', remarks='".$_POST[remarks]."'," if($_FILES['image1']['name']>0 || $_FILES['image2']['name']>0|| $_FILES['image3']['name']>0) { $query = $query & "photo1='$imagename1',photo1='$imagename1',photo1='$imagename1'," } $query= $query& " facilities='$facilities' where username='".$_SESSION[username]."' and premPropertyID='".$_POST[basic_id]."' "; echo $query; echo mysql_error(); $result=mysql_query($query);?> sorry... i don get what u meant.. i do everything in a page.. if($_FILES['image1']['name']>0 || $_FILES['image2']['name']>0|| $_FILES['image3']['name']>0) the above is to check whether any picture exist in the <input type=file> my idea is to check out of that 3 <input type=file> , if one got value.. then it will update the $query = $query & "photo1='$imagename1',photo1='$imagename1',photo1='$imagename1'," thanks for hlep
  13. ohh.. the above page is the edit page.. the user descriptions and pictures will be shown.. if user want to update the data but not the picture .. mean the <input type="file" size=50 name="image1"> will be left blank.. if i update the blank value.. it will overwrite the previous picture.. so i put the above code like that .. but it prompt me error on the <?php if($_FILES['image1']['name']>0 || $_FILES['image2']['name']>0|| $_FILES['image3']['name']>0) { $query = $query & "photo1='$imagename1',photo1='$imagename1',photo1='$imagename1'," }?>
  14. i got error on the if part in mysql query..!! :'( <?php if(is_uploaded_file($_FILES[image1][tmp_name])) { $imagename1 = basename($_FILES['image1']['name']); $newimage1 = "art/" . $imagename1; $thumbimage="thumbs/" . $imagename; echo $_FILES['image1']['type']; if(move_uploaded_file($_FILES[image1][tmp_name],$newimage1)) { echo"<p class=good>FIRST PICTURE UPLOADED OK</p>"; } else { echo"<p class=error>PICTURE ERROR</p>"; } } mysql_select_db($db); $query = "update premium_propertyad set address='".$_POST[address]."', area='".$_POST[area]."', state='".$_POST[state]."', type1='".$_POST[type1]."', type2='".$_POST[type2]."', type3='".$_POST[type3]."', selling_price='".$_POST[selling_price]."', rental_price='".$_POST[rental_price]."', land_area='".$_POST[land_area]."', buildup_area='".$_POST[buildup_area]."', tenure='".$_POST[tenure]."', bedroom_num='".$_POST[bedroom_num]."', bathroom_num='".$_POST[bathroom_num]."', remarks='".$_POST[remarks]."'," if($_FILES['image1']['name']>0 || $_FILES['image2']['name']>0|| $_FILES['image3']['name']>0) { $query = $query & "photo1='$imagename1',photo1='$imagename1',photo1='$imagename1'," } $query= $query& " facilities='$facilities' where username='".$_SESSION[username]."' and premPropertyID='".$_POST[basic_id]."' "; echo $query; echo mysql_error(); $result=mysql_query($query);?> i want to update the page.. if the picture are not change.. so it will just update the record .. where the previous picture willl be remained...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.