Jump to content

MDCode

Members
  • Posts

    640
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MDCode

  1. Hardly anyone will download a file to look at your error. Post the relevant code here. Especially since no other links work on the site.
  2. Step 1. Create the system. Step 2. Ask a question if something goes wrong. If it's for a user, store it in mysql or cookies because they can log out and lose all their cart
  3. They can use $_FILES["originalfilename"]["type"] to see what kind of file it is, which would make the process much simpler. They are also looking for pictures.
  4. <script> var auto_refresh = setInterval( function() { $('#lalala').load('lalala'); }, 100); </script> This is all I will provide. In order to learn how to use it, look in to jquery.
  5. <?php // You can keep adding if you want but this a very basic way if(empty($one_variable) || empty($second_variable) || empty($keep_going)) { echo "You left some blank"; } else { // update the database } ?>
  6. Moderator please delete my post ^.^
  7. <?php if(empty($whatever_variable_to_check)) { echo "You left it blank oh noses!"; } ?>
  8. The URL is of an html file so unless they have it configured to parse php, they would need an ajax call. And then all the errors would be displayed at the top of the page instead of where they want
  9. You have the form pointed to contact.php, and will always go to contact.php
  10. UPDATE users SET category = '', aboutcompany = '', firstname = '', surname = '', email = '', website = '', company = '', building = 'g', streetname = '', town = '', state = '', postcode = '', country = '', form_id = 'submit', submit = 'Submit' WHERE id=163 Refer to the bolded part. Unknown column error means that column does not exist in the database. The column you are trying to update, thus, does not exist.
  11. Escaping = protecting basically; use mysql_real_escape_string($_POST['term']); mysql extensions are deprecated (mysql: query, fetch_array, etc.) so using mysqli or pdo is suggested but not yet required
  12. It means your query is wrong basically. Take requinix's advice
  13. You are setting your table width to 96% yet it adds up to 100%
  14. <td><textarea name="address" id="address" value="<?PHP echo $_SESSION['MM_address']; ?>></textarea></td> You are missing the end quote for value=
  15. Well. I'm not too sure what error "undefined" means, unless you are setting it to die with undefined
  16. And...what is the question?
  17. Besides keeping your passwords stored in the database as plain text, I see nothing wrong with your code. Do you have error reporting turned on?
  18. <?php function rot13 ($str) { $before = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $after = "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM"; return strtr($string, $before, $after); } ?> You are using the function by $str not $string. And I believe you are mixing up $before and $after (not sure)
  19. If anyone is interested: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd> <head><title>UG Pipeline Fiedl Data Capture</title></head> <body> <?php $serverName = "SQLEXPRESS"; $uid = "sa"; $pwd = "Casa2009"; $databaseName = "UGSPIPELINE"; $connectionInfo = array("UID"=>$uid, "PWD"=>$pwd, "Database"=>$databaseName); /* Connect using SQL Server Authentication. */ $conn = sqlsrv_connect( $serverName, $connectionInfo); if(!$conn) { echo "Connection established.<br />"; }else{ echo "Connection could not be established.<br />"; die( print_r(sqlsrv_errors(), true)); } //$query = "SELECT pipeno,heatno,pipeno2,jointno,from UGSPIPELINE.fieldtally order by fieldtallyID asc"; $query = 'select PIPENO from fieldtally'; $params = array(); $options = array( "Scrollable" => SQLSRV_CURSOR_KEYSET ); $result = sqlsrv_query($conn,$query,$params,$options); if( $result === false) { die( print_r( sqlsrv_errors(), true) ); // what appears to be line 26 } while( $row = sqlsrv_fetch_array( $result, SQLSRV_FETCH_ASSOC)){ echo $row['PIPENO']."<br />"; } // This function creates dropdowns that can be used in your forms function dropdown($field_name, $num){ // Creates the Dropdown echo "<select name=\"".$field_name."\" id=\"".$field_name.$num."\"\n"; echo "<option value=\"\"> --- Select --- </option>\n"; // Chooses which array to use for Dropdown options global $pipeno_array; $name_array = ($field_name == 'pipeno') ? $pipeno_array: $y; // Creates the Dropdown options based off the array above foreach($name_array as $k){ echo "<option value=\"$k\">$k</option> \n"; } // Ends the Dropdown echo "</select>\n"; } ?> <p></p> <form action="" method="post"> <table width="800" cellpadding= "10" cellspacing="1" border="2"> <tr align="center" valign="top"> <td align="center" colspan="1" rowspan="1" bgcolor="#00CC00"> <h3>Input Field Tally Information</h3> Select Wall Thickness:<select name="wthick" id="wthick"> <option value=""> --Select-- </option> <option value="9.80"> 9.80 </option> <option value="13.50"> 13.50 </option> <option value="15.90"> 15.90 </option> </Select> Select Pipe No:<?php dropdown('pipeno', 1);?> HeatNo1: <input type="text" name="heatno1" id="heatno1"><br /><br /> PipeNo2: <input type="text" name="pipeno2" id="pipeno2"> HeatNo2: <input type="text" name="heatno2" id="heatno2">DJoint No: <input type="text" name="Djointno"><br /><br /> Input measured Length: <input type="text" name="measuredlength"> Input Serial No: <input type="text" name="serialno"><br><br> Remarks: <input type="text" name="remarks"><br><br> <input type="Submit" name="submit_1" value="Submit"> </td></tr></table> </form> <form action="" method="post"> <table width="800" cellpadding= "10" cellspacing="1" border="2"> <tr align="center" valign="top"> <td align="center" colspan="1" rowspan="1" bgcolor="#FF99FF"> <h3>Input Field Bend Information</h3> Select Wall Thickness:<select name="wthick1" id="wthick1"> <option value=""> --Select-- </option> <option value="9.80"> 9.80 </option> <option value="13.50">13.50 </option> <option value="15.90"> 15.90 </option> </select> Select Pipe No:<?php dropdown('pipeno', 2); ?> HeatNo1: <input type="text" name="heatno1" id="heatno1_2"> <br><br> PipeNo2: <input type="text" name="pipeno2" id="pipeno2_2"> HeatNo2: <input type="text" name="heatno2" id="heatno2_2"> DJoint No: <input type="text" name="Djointno"> <br><br> Input Measured Distance: <input type="text" name="measureddistance"> Input Bend Angle: <input type="text" name="benddegree"> <br><br> Select Bend Type:<select name="bendtype" id="bendtype"> <option value=""> --Select-- </option> <option value="Combo">Combo</option> <option value="SAG">SAG</option> <option value="OB">OB</option> <option value="SBRT">SBRT</option> <option value="SBLT">SBLT</option> <option value="HBLT">HBLT</option> <option value="HBRT">HBRT</option> </select> Remarks: <input type="text" name="remarks"> <input type="Submit" name="submit_2" value="Submit"> </td></tr></table> </form> <form action="" method="post"> <table width="800" cellpadding= "10" cellspacing="1" border="2"> <tr align="center" valign="top"> <td align="center" colspan="1" rowspan="1" bgcolor="#99FF33"> <h3>Input App. Tally Information</h3> Select Wall Thickness:<select name="wthick2" id="wthick2"> <option value=""> --Select-- </option> <option value="9.80"> 9.80 </option> <option value="13.50"> 13.50 </option> <option value="15.90"> 15.90 </option> </select> Select Pipe No:<?php dropdown('pipeno', 3); ?> <br><br> Input Tally Type: <input type="text" name="tallytype"> Input Tally Qty: <input type="text" name="qty"> ?><br /><br /> Input Serial No: <input type="text" name="serialno"> RefID: <input type="text" name="referenceid"> ?><br /><br /> <input type="Submit" name="submit_3" value="Submit"> </td></tr></table> </form> </body>
  20. Taken straight from your source code: <ul> <!-- Notice the paragraph that you're closing? --> </p> <li>Our clients provide us with models and prints.</li> <li>If needed, our engineering team gives our clients valuable detailed feedback on, possible product improvements, how to lower the cost of their metal manufacturing and fabrication process, and speed up the lead-time schedules.</li> <li>Once this process has been approved by our client, we move on to manufacturing parts per print.</li> </ul>
  21. Cron jobs
  22. You have way too many 404 errors to give it a full review, but I'll just do the home page. The transition in your header from blue to white, with text inside the transition makes it harder to read.
×
×
  • 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.