Jump to content

piyushsharmajec

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

About piyushsharmajec

  • Birthday 03/14/1983

Contact Methods

  • Website URL
    http://piyushsharmajec.page.tl
  • Yahoo
    piyush2k4u

Profile Information

  • Gender
    Male
  • Location
    India

piyushsharmajec's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I install link point api for e commerce site, configure as per instructions. but get stuck as after processing php_form_min.php shows output like this Status :< Error: < Please help..
  2. i install linkpoint api for one of commerce site. 1. In site curl is working properly. 2. i fill details properly like this $myorder["host"] = "secure.linkpt.net"; $myorder["port"] = "1129"; $myorder["keyfile"] = "../yourpemfile.pem"; # Change this to the name and location of your certificate file $myorder["configfile"] = "storeNo"; # Change this to your store number and while run PHP_FORM_MIN.php it only shows success:< Error: < I cant understand by this.. can any one help me.....
  3. how to remove Web browser add-ons from site named "window media player shim"?
  4. i dont sure but change condition mysql_num_rows($sql<0) to mysql_num_rows($sql<1) and check table VacCat in database
  5. Insted of redirect logout page to index.php by header funtion, we have to write this piece of code after session_destroy. <META HTTP-EQUIV=\"refresh\" content=\"2; URL=index.php\"> ";
  6. search engine will obviously follow up id by get method. It is quite simple and neat to use & understand. It is easiest way by anyone to cheat from get method so use post and also check id by conditions.
  7. you can also use post variable $_POST['varname']='longvalue'; same like get variable it cant sow in url and it holds value in page, where form is redirected by action. Better learn by tutorials
  8. Dear, For any file like this $file.php echo '$file.php '; can't echo as $file.php is vaiable but it cant assign any value For this better to use functiones like include("filename"); or require("filename");in any page. But how could it echo the stuff that is in that file, so for this we have echo in the file itself as whatever we include. Like in filename.php we echo anything as by echo"stuff";
  9. Have you evr heard of e2 gallary. it is javascript based photo gallary. I cant find how to delete photo in uploader script.
  10. This is basically dreamweaver code for login section. Dont be panic if you cant understand most of stuffm, only view basic code that is mark up. This is for login section in which if username and password from mysql table admin are not mathced than it gives error as by get method. I dont write code fully here. <?php require_once('../Connections/mycon.php'); ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "donor.php"; $MM_redirectLoginFailed = "index.php?invalid=1"; $MM_redirecttoReferrer = false; mysql_select_db($database_mycon, $mycon); $LoginRS__query=sprintf("SELECT uername, password FROM admin WHERE uername='%s' AND password='%s'", get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password)); $LoginRS = mysql_query($LoginRS__query, $mycon) or die(mysql_error()); $loginFoundUser = mysql_num_rows($LoginRS); if ($loginFoundUser) { $loginStrGroup = ""; //declare two session variables and assign them $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; if (isset($_SESSION['PrevUrl']) && false) { $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; } header("Location: " . $MM_redirectLoginSuccess ); } else { header("Location: ". $MM_redirectLoginFailed ); } } ?> <?php if(isset($_GET['invalid']) && $_GET['invalid']==1) { ?> <table> <tr class="box"> <td colspan="2" bgcolor="#FFFFCC"><div align="center"><span style="color:#FF0000; font-size:14px;" > <?php echo "Invalid Username/Password."; ?> </span></div></td> </tr> </table> <?php } ?>
  11. you validate either by javascript or either by php. By php you have to check all get or post data with corrected values. For javascript you have to validate by reguler expression. For this help either go to w3school.com
  12. We can fetch date from database and change it in our desirable format. After that you can also store in format as you want by making changes in insert query.
  13. I think for your usual format either you can fetch in your desired format, by form it through php
×
×
  • 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.