Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Delete record

Posted on 2009-05-18
2
Medium Priority
?
924 Views
Last Modified: 2013-12-12
I made a record deletion page to remove users. Have followed all the instructions, but it still does not work. After I click the Confirm Deletion button, it indeed goes to List_users.php, but the record I chose to delete is still there. Below and the code for Delete_users.php. I also enclsed the code for List_users.php. Thanks in advance for any help.

<?php require_once('Connections/sb0.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

if ((isset($_POST['User_ID'])) && ($_POST['User_ID'] != "")) {
  $deleteSQL = sprintf("DELETE FROM Users WHERE User_ID=%s",
                       GetSQLValueString($_POST['User_ID'], "int"));

  mysql_select_db($database_sb0, $sb0);
  $Result1 = mysql_query($deleteSQL, $sb0) or die(mysql_error());

  $deleteGoTo = "List_users.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $deleteGoTo));
}

$colname_getUser = "-1";
if (isset($_GET['User_ID'])) {
  $colname_getUser = $_GET['User_ID'];
}
mysql_select_db($database_sb0, $sb0);
$query_getUser = sprintf("SELECT * FROM Users WHERE User_ID = %s", GetSQLValueString($colname_getUser, "int"));
$getUser = mysql_query($query_getUser, $sb0) or die(mysql_error());
$row_getUser = mysql_fetch_assoc($getUser);
$totalRows_getUser = mysql_num_rows($getUser);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body  {
      font: 100% Verdana, Arial, Helvetica, sans-serif;
      background: #666666;
      margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
      padding: 0;
      text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
      color: #000000;
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #container {
      width: auto;  /* this will create a container 80% of the browser width */
      background: #FFFFFF; /* the auto margins (in conjunction with a width) center the page */
      border: 1px solid #000000;
      text-align: right; /* this overrides the text-align: center on the body element. */
      margin-top: auto;
      margin-right: auto;
      margin-bottom: auto;
      margin-left: auto;
}
.twoColLiqLtHdr #header {
      padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #header h1 {
      margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
      padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

/* Tips for sidebar1:
1. since we are working in percentages, it's best not to use padding on the sidebar. It will be added to the width for standards compliant browsers creating an unknown actual width.
2. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColLiqLtHdr #sidebar1 p" rule.
3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
*/
.twoColLiqLtHdr #sidebar1 {
      float: left;
      width: 35mm; /* top and bottom padding create visual space within this div  */
      background-color: #FFFFFF;
      padding-top: 0px;
      padding-right: 0;
      padding-bottom: 0px;
      padding-left: 0;
      margin: 0px;
      height: auto;
      vertical-align: top;
}
.twoColLiqLtHdr #sidebar1 h3, .twoColLiqLtHdr #sidebar1 p {
      margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
      margin-right: 10px;
}

/* Tips for mainContent:
1. the space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 430px or smaller (this includes images).
3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
*/
.twoColLiqLtHdr #mainContent {
      margin-top: 0;
      margin-right: 20px;
      margin-bottom: 0;
      margin-left: 40mm;
}
.twoColLiqLtHdr #footer {
      padding: 0 10px;
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #footer p {
      margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
      padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
      float: right;
      margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
      float: left;
      margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
      clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
-->
</style>
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColLiqLtHdr #sidebar1 { padding-top: 30px; }
.twoColLiqLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->

<style type="text/css">
<!--
.style1 {color: #0033FF}
.style2 {
      color: #00FF00;
      font-family: "script MT Bold";
      font-size: 36px;
}
.style6 {
      font-family: "Times New Roman", Times, serif;
      font-size: 9pt;
      font-weight: bold;
}
.style10 {font-family: "Times New Roman", Times, serif}
.style11 {font-size: 12%}
.style13 {font-size: 12pt}
.style14 {font-family: "Times New Roman", Times, serif; font-size: 12pt; }
a:link {
      color: #0033FF;
      text-decoration: none;
}
a:visited {
      text-decoration: none;
}
a:hover {
      text-decoration: none;
}
a:active {
      text-decoration: none;
}
.style15 {font-size: 9px}
.style16 {font-size: 12px}
.style17 {color: #000000}
.style19 {font-family: "segoe Print"; font-size: small;}
.style3 {
      font-family: "book Antiqua", "script MT Bold";
      font-size: 24pt;
      color: #0033FF;
}
.style20 {font-family: "book Antiqua";
      font-size: 36pt;
      color: #0033FF;
}
.style21 {font-size: 24pt}
-->
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body class="twoColLiqLtHdr">

<div align="right"></div>
<div id="container">
  <div id="header">
    <form action="http://www.sourcesbook.com/Results.php" method="post" name="form1" target="_blank" id="form1">
      <div align="left">
        <p class="style1"><span class="style3">N</span><span class="style20"><span class="style2"><sup>n </sup></span><span class="style21">SourceBook</span></span> <span class="style19">your sourcing assisstant</span></p>
      </div>
      <label></label><label>
      <input name="searchterm" type="&quot;text&quot;" size="60"/>
      <input type="submit" name="submit" value="Search"/>
      <input type="reset" name="Reset button" id="Reset button" value="Reset" />
      </label>
      <div align="justify"> </div>
    </form>
  </div>
  <div id="sidebar1">
    <div align="left">
      <p>
        <!-- end #sidebar1 -->
        <a href="Registration1.php" class="style14">Register</a></p>
      <p><a href="Login1.php" class="style14">Login</a></p>
      <p><span class="style10"><span class="style11"><span class="style13"><a href="Home.html" title="ENEN Home">Home</a> </span></span></span></p>
      <p class="style14"><a href="Company.html" title="About ENEN">Company</a></p>
      <p class="style14"><a href="Categories.html" title="Categories the SourceBook covers">Categories</a></p>
      <p><span class="style14"><a href="Contact.html" title="Contact Us">Contact</a></span></p>
    </div>
  </div>
  <!-- InstanceBeginEditable name="EditRegionMainContent" -->
  <div id="mainContent">
    <p align="left" class="MsoNormal style10" style="margin-top: 15px">
      <!-- end #mainContent -->
    </p>
    <form id="form2" name="form2" method="post" action="List_users.php">
      <label>
      <div align="left">
        <p>&nbsp;</p>
        <p class="style10 style11 style13">You are about to delete the below user. This cannot be undone. Please confirm your decision.</p>
        <p><span class="style10 style11 style13">Name:
          <?php echo $row_getUser['First_Name']; ?><?php echo $row_getUser['Last_Name']; ?><br />
          <br />
          Username:
          <?php echo $row_getUser['Username']; ?></span><br />
          <br />
          <input name="User_ID" type="hidden" id="hiddenField" value="<?php echo $row_getUser['User_ID']; ?>" />
          <br />
          <input type="submit" name="Submit" id="Submit" value="Confirm Deletion" />
          </p>
      </div>
      <br />
      <br />
      </label>
                </form>
    </div>
  <!-- InstanceEndEditable -->
  <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p align="center" class="style6">&nbsp; </p>
    <p align="center" class="style6">&nbsp;</p>
    <p align="center" class="style6">Copyright© 2009 ENEN Corporation All Rights Reserved </p>
    <p align="center">
      <span class="style6">
      <!--webbot bot="Timestamp" s-type="EDITED" s-format="%A, %B %d, %Y %I:%M:%S %p" startspan -->
      <!-- #BeginDate format:fcAm1a -->Monday, May 18, 2009 4:10 PM<!-- #EndDate -->
      </span>
      <!--webbot bot="Timestamp" i-checksum="8077" endspan -->
    </p>
  <!-- end #footer --></div>
<!-- end #container --></div>

</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($getUser);
?>

Below code is for List_users.php

<?php require_once('Connections/sb0.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$maxRows_listUsers = 10;
$pageNum_listUsers = 0;
if (isset($_GET['pageNum_listUsers'])) {
  $pageNum_listUsers = $_GET['pageNum_listUsers'];
}
$startRow_listUsers = $pageNum_listUsers * $maxRows_listUsers;

mysql_select_db($database_sb0, $sb0);
$query_listUsers = "SELECT * FROM Users ORDER BY Last_Name ASC";
$query_limit_listUsers = sprintf("%s LIMIT %d, %d", $query_listUsers, $startRow_listUsers, $maxRows_listUsers);
$listUsers = mysql_query($query_limit_listUsers, $sb0) or die(mysql_error());
$row_listUsers = mysql_fetch_assoc($listUsers);

if (isset($_GET['totalRows_listUsers'])) {
  $totalRows_listUsers = $_GET['totalRows_listUsers'];
} else {
  $all_listUsers = mysql_query($query_listUsers);
  $totalRows_listUsers = mysql_num_rows($all_listUsers);
}
$totalPages_listUsers = ceil($totalRows_listUsers/$maxRows_listUsers)-1;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body  {
      font: 100% Verdana, Arial, Helvetica, sans-serif;
      background: #666666;
      margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
      padding: 0;
      text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
      color: #000000;
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #container {
      width: auto;  /* this will create a container 80% of the browser width */
      background: #FFFFFF; /* the auto margins (in conjunction with a width) center the page */
      border: 1px solid #000000;
      text-align: right; /* this overrides the text-align: center on the body element. */
      margin-top: auto;
      margin-right: auto;
      margin-bottom: auto;
      margin-left: auto;
}
.twoColLiqLtHdr #header {
      padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #header h1 {
      margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
      padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

/* Tips for sidebar1:
1. since we are working in percentages, it's best not to use padding on the sidebar. It will be added to the width for standards compliant browsers creating an unknown actual width.
2. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColLiqLtHdr #sidebar1 p" rule.
3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
*/
.twoColLiqLtHdr #sidebar1 {
      float: left;
      width: 35mm; /* top and bottom padding create visual space within this div  */
      background-color: #FFFFFF;
      padding-top: 0px;
      padding-right: 0;
      padding-bottom: 0px;
      padding-left: 0;
      margin: 0px;
      height: auto;
      vertical-align: top;
}
.twoColLiqLtHdr #sidebar1 h3, .twoColLiqLtHdr #sidebar1 p {
      margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
      margin-right: 10px;
}

/* Tips for mainContent:
1. the space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 430px or smaller (this includes images).
3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
*/
.twoColLiqLtHdr #mainContent {
      margin-top: 0;
      margin-right: 20px;
      margin-bottom: 0;
      margin-left: 40mm;
}
.twoColLiqLtHdr #footer {
      padding: 0 10px;
      background-color: #FFFFFF;
}
.twoColLiqLtHdr #footer p {
      margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
      padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
      float: right;
      margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
      float: left;
      margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
      clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
-->
</style>
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColLiqLtHdr #sidebar1 { padding-top: 30px; }
.twoColLiqLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->

<style type="text/css">
<!--
.style1 {color: #0033FF}
.style2 {
      color: #00FF00;
      font-family: "script MT Bold";
      font-size: 36px;
}
.style6 {
      font-family: "Times New Roman", Times, serif;
      font-size: 9pt;
      font-weight: bold;
}
.style10 {font-family: "Times New Roman", Times, serif}
.style11 {font-size: 12%}
.style13 {font-size: 12pt}
.style14 {font-family: "Times New Roman", Times, serif; font-size: 12pt; }
a:link {
      color: #0033FF;
      text-decoration: none;
}
a:visited {
      text-decoration: none;
}
a:hover {
      text-decoration: none;
}
a:active {
      text-decoration: none;
}
.style15 {font-size: 9px}
.style16 {font-size: 12px}
.style17 {color: #000000}
.style19 {font-family: "segoe Print"; font-size: small;}
.style3 {
      font-family: "book Antiqua", "script MT Bold";
      font-size: 24pt;
      color: #0033FF;
}
.style20 {font-family: "book Antiqua";
      font-size: 36pt;
      color: #0033FF;
}
.style21 {font-size: 24pt}
-->
</style>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body class="twoColLiqLtHdr">

<div align="right"></div>
<div id="container">
  <div id="header">
    <form action="http://www.sourcesbook.com/Results.php" method="post" name="form1" target="_blank" id="form1">
      <div align="left">
        <p class="style1"><span class="style3">N</span><span class="style20"><span class="style2"><sup>n </sup></span><span class="style21">SourceBook</span></span> <span class="style19">your sourcing assisstant</span></p>
      </div>
      <label></label><label>
      <input name="searchterm" type="&quot;text&quot;" size="60"/>
      <input type="submit" name="submit" value="Search"/>
      <input type="reset" name="Reset button" id="Reset button" value="Reset" />
      </label>
      <div align="justify"> </div>
    </form>
  </div>
  <div id="sidebar1">
    <div align="left">
      <p>
        <!-- end #sidebar1 -->
        <a href="Registration1.php" class="style14">Register</a></p>
      <p><a href="Login1.php" class="style14">Login</a></p>
      <p><span class="style10"><span class="style11"><span class="style13"><a href="Home.html" title="ENEN Home">Home</a> </span></span></span></p>
      <p class="style14"><a href="Company.html" title="About ENEN">Company</a></p>
      <p class="style14"><a href="Categories.html" title="Categories the SourceBook covers">Categories</a></p>
      <p><span class="style14"><a href="Contact.html" title="Contact Us">Contact</a></span></p>
    </div>
  </div>
  <!-- InstanceBeginEditable name="EditRegionMainContent" -->
  <div id="mainContent">
    <table width="700" align="left">
      <tr>
        <th scope="col"><div align="center"><span class="style10 style13 style13">Name</span></div></th>
        <th scope="col"><div align="center"><span class="style10 style13 style13">Username</span></div></th>
        <th scope="col"><span class="style13"></span></th>
        <th scope="col"><span class="style13"></span></th>
      </tr>
      <?php do { ?>
        <tr>
          <td><div align="center"><span class="style13 style10 style10"><?php echo $row_listUsers['First_Name']; ?> <?php echo $row_listUsers['Last_Name']; ?></span></div></td>
          <td><div align="center"><span class="style13 style10"><?php echo $row_listUsers['Username']; ?></span></div></td>
          <td><span class="style10 style13 style13"><a href="Update.php?User_ID=<?php echo $row_listUsers['User_ID']; ?>" target="_blank">EDIT</a></span></td>
          <td><a href="Delete_users.php?User_ID=<?php echo $row_listUsers['User_ID']; ?>" target="_blank" class="style10 style11 style13">DELETE</a></td>
        </tr>
        <?php } while ($row_listUsers = mysql_fetch_assoc($listUsers)); ?>
    </table>
    <p align="left" class="MsoNormal style10" style="margin-top: 15px">
      <!-- end #mainContent -->
    </p>
  </div>
  <!-- InstanceEndEditable -->
  <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p align="center" class="style6">&nbsp; </p>
    <p align="center" class="style6">&nbsp;</p>
    <p align="center" class="style6">Copyright© 2009 ENEN Corporation All Rights Reserved </p>
    <p align="center">
      <span class="style6">
      <!--webbot bot="Timestamp" s-type="EDITED" s-format="%A, %B %d, %Y %I:%M:%S %p" startspan -->
      <!-- #BeginDate format:fcAm1a -->Monday, May 18, 2009 2:14 PM<!-- #EndDate -->
      </span>
      <!--webbot bot="Timestamp" i-checksum="8077" endspan -->
    </p>
  <!-- end #footer --></div>
<!-- end #container --></div>

</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($listUsers);
?>
0
Comment
Question by:DomerBill
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 24417454
Your form on Delete_users.php is posting back to List_users so the Deletion event never fires:

<form id="form2" name="form2" method="post" action="List_users.php">

Change the action to:

<form id="form2" name="form2" method="post" action="Delete_users.php">

and then this code will evaluate:

if ((isset($_POST['User_ID'])) && ($_POST['User_ID'] != "")) {
0
 

Author Closing Comment

by:DomerBill
ID: 31582819
Thanks a million. It works!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question