- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Paintball and coding
- PC Specs
- AMD Fx-8350 with H60 cooler, 16gb ddr3 ram, AMD Radeon 290x gpu, 256 SSD, 1tb, 250gb, 4tb, 2tb and 500gb,…
60 Posted Topics
I am trying to complete an assignment using stacks and I need a little guidance. My task is to make an array of 6 values and pass it to VIA stack to a subroutine where I need to increment through it and pass each value of the array to another … | |
I am trying to create a table in html/php that is dynamic sized but allows users to edit rows of the table, I have 99% of this done and the last piece is to send edited values VIA ajax to an edit page where I update to the database and … | |
My problem currently is that I am trying to call a function with jquery at a specific event but it is running at the wrong event. The function I want to call is: function resolvedAjax(tid){ $.ajax({type: 'post',url: 'resolveTicket.php',data: 'tid=' +tid, success: function(s){ $('#resolvedTicket').html("Resolved"); mainTable(); }}); } I am trying to … | |
I have a question regarding user membership of groups in Active directory and grabbing such memberships with PHP. My big question/situation is that I have a site I am making and essentially I am trying to assign administrators based off of groups in Active directory and I know how to … | |
Hello, I know that you don't provide solutions to homework but I know Daniweb will help with homework as long as we show we are doing some work ourselfs. My assignment is to generate the maximum spanning tree for a given matrix. I am CLOSE but not quite there. I … | |
Re: I am pretty sure what is happening is that your swaping area is not working too well, since you replace array[j] with 0 your next array[i] will AGAIN equal 0, think of it this way, the first 7 variables are none zeros, as soon as you hit a zero you … | |
So I am really not sure what the name of this device is as I have been trying to find out for some time now, basically in my home I have terrible connect in my room to my router and would like to get a wifi repeater similar to the … | |
Hello, currently on one of my development servers I have SQL Server 2014 installed, the problem I HAD was that when I executed any of my PHP sites connected to various databases I was getting `SQLSTATE[HY2000][2002] Connection was activily refused...` I fixed that error by forwarding the port through the … | |
Hi all, so the problem I have today is with my Asus laptop, it has a Intel Dual band Wireless-AC 7260 wifi adapter. Not sure if that will help or not but I am going to try to provide as much information as possible. So when I am at school … | |
I just figured out the answer to one of my previous questions but now I have a new problem, before I was just being a tad silly and forgot how to properly write a function but now my question is if I have the following function `int findMobile( string word, … | |
I am trying to declare a function to find the largest mobile element for a program to list permutations using johnson-totter algorithm. Here is my definition of the function in the header file: `int findMobile( string, int[] );` and here is my actual declaration of the function: `int findMobile( string … | |
So I have the following code: <script> function validateForm() { var homePhone = document.forms["volForm"]["hphone"].value; var mobPhone = document.forms["volForm"]["mphone"].value; var workPhone = document.forms["volForm"]["wphone"].value; var ehomePhone = document.forms["volForm"]["ehphone"].value; var emobPhone = document.forms["volForm"]["ehphone"].value; var fname = document.forms["volForm"]["fname"].value; var lname = document.forms["volForm"]["lname"].value; var digiSig = document.forms["volForm"]["digiSig"].value; var digiSplit = digiSig.split(" "); if((homePhone.length == 0 … | |
Hello, I do want to start off by saying this is completely out of my area as I've never really worked with any ASP.net sites and hosting off IIS is also new to me. The site we currently have deployed is c#.net and was written back in 2005-2007, I have … | |
I have a page running scrolling nav bootstrap theme which essentially means for me that I have multiple forms on one page. The problem I am having is whenever someone submits any of the 3 forms it sends data from all forms on the page. The code is below, I … | |
Hi all, I have been using this tutorial: [bootply.com](http://www.bootply.com/lxa0FF9yhw) and I almost have it working, the problem is that my table is generated VIA AJAX from a php file. Basically I see my table but no working pagination unless I open chrome web tools and go to console and paste … ![]() | |
I have a quick question, I am hoping it is an easy answer but if I wanted a query like the following: SELECT * FROM items ORDER BY date ASC Is there anyway to replace the order by information with prepared statement attributes? would either of the following work? SELECT … | |
Hi all, I am newish to Ajax, I've used it in the past in very rare circumstances and I understand for the most part how ajax works to combine client side and server side by sending information off to the server and displaying returned information from whereever it sent it's … | |
First off, here is the code I will be referencing: package com.airamerica.dataConversion; import com.airamerica.Airports; import com.airamerica.Person; import com.airamerica.Products.Products; import com.airamerica.Products.Tickets; public class FindObject { public static Airports findAirport(String airportCode, Airports [] airportsArray){ Airports airport = null; for(int j = 0; j < airportsArray.length; j++) { if (airportCode.equals(airportsArray[j].getCode())){ airport = airportsArray[j]; … | |
Re: I agree with rubberman, you should attempt to do the work yourself but to set you in motion look at rproffitt's article as well as write it out on paper. It is always good to trying to solve the program using Pseudo code and then do the actually programming. Ask … | |
I have an old sqlite database that I am no longer going to be using but I want to transfer all of my data to my new mySQL database. I have everyone imported and it all looks good but the problem is when I order my one of my columns … | |
Re: I agree with @almostbob but also your `<form>` is empty where you should pass an action and a method for example `<form action='nameofpagehere.php' method='get'>` | |
Re: I've heard about issues like this, never really had to experience one but across most search results most people recommend something like this following: Use Msconfig->services to turn off services (most people check the box that says hide all microsoft services) and disable services one by one until you find … | |
Re: I agree with Broj1, what are the error codes you are getting? As far as syntax errors I really only found one on line 97 you have `!==` where it is supposed to be `!=`. But becasue you can't use `!==` that may be giving you some fault. | |
Re: Try the following change: <?php if($error == 1){ echo "<p>The username and password did not match!</p>"; } ?> and replace lines 9 to 11 with it. HTML is always executed on the page, and you had the HTML outside the PHP so it was always written. This change will make … | |
Re: How are you returning your data to the HTML from the PHP? Is that your question? If you have `style='display:none;'` for the CSS of the `DIV` then it won't display anything unless you change the CSS when something happens. JQuery works well for that but to get the data from … | |
Re: Line 47: `if(isset($_GET['msg']) {` should be `if(isset($_GET['msg'])) {` missing a parentheses. Do you have errors turned off? | |
Re: Can we see the form you are using to submit data to this script. Also Remove the `@` and use `error_reporting(E_ALL)` and `display_errors(1)` so you can see if there are any errors. Also what does `$success` equal? can you add `var_dump($success)` just so we can see if it is true … | |
Re: Do you have any code started? If you have the login process done then in my opinion you've done the hardest part. Just write a simple SQL query to **Select** data from your table **Where** the username submitted is equal to the username column in your table. If it is … | |
With windows server 2003 losing support in the coming weeks we have upgraded our 2003 servers to virtualized 2008 servers. The only problem we are having at the moment is with Group Policy and mapping drives. Previous to this upgrade we used a logon.vbs which "worked" but was nearing 10 … | |
I have a form which pushes data to this page: <?php session_start(); if(!isset($_SESSION['sess_user_id']) || (trim($_SESSION['sess_user_id']) == '')) { header("location: login.php"); exit(); } if($_SESSION['sess_status'] < 0){ header("location: sorry.php"); exit(); } $tz = new DateTimeZone('America/Chicago'); $age = new DateTime(filter_input(INPUT_POST, 'dob', FILTER_SANITIZE_STRING)); $checked = filter_input(INPUT_POST, 'minor', FILTER_SANITIZE_STRING); $now = new DateTime('NOW'); $y = … | |
I am working on an internal in and out board for our work place. Our current application is having issues plus it is being hosted on Windows Serer 2003 which is losing support come July (2015). We are starting on a new application since our old one is now 7 … | |
I don't work too much in jquery and javascript so I am a little stuck on this problem. I have a long form for people to fill out and it gets added to a database and we use the information for certain reports we need. We want to add a … | |
Re: I am not sure I fully understand what you are doing with this but I think I get it enough to help you out a little bit. If you want to change just the banner as people click certain links you can do something with simple Requests like GET or … | |
Re: @thrizy Start a new thread and include all the information covering it and how far you've got. Include any code that you want help with or as much as you have. People here will help you but noone wants to do it all for you. | |
Re: Personally I would get just a single 2tb drive rather than a 2x1tb drives. I have seen 2 or 3 different 2tb HDD go for $59.99 this last week so you can't really beat that price. Plus the more parts you have the more that can go wrong. I think … | |
I have the code: $VolunS = array('aro','clergy','intskills','interpt','bus','child','law','cpr','cpryn','data','security','emergency','computer','mechanical','administration','firstaid','faid','translation','translate','construction','basicclean','foodprep','animalcare','heavy','other3'); foreach($VolunS as $skill){ if($person["$skill"] != ""){ echo $person["$skill"] . ", "; //this is the line where echo is replacing $row .= } } And my problem is that I am adding an extra comma at the end of the list. The purpose of … ![]() | |
Re: Adding to whtat mlesniak said above, with windows you have the default back up and restore program, if you made an backups you may luck out and be able to restore to a previous version. I just had this problem last Wednesday, BSOD on boot but was fine to boot … | |
Re: What part do you not understand specifically? To do an edit type function all you would have to do is an UPDATE query similar to the insert query you did to add the comments to the database. You can read up on it here:[Click Here](http://www.w3schools.com/php/php_mysql_update.asp) For the deleteing you can … | |
Re: I may be totally off on your question but to me it seems like you want to display "yes" if a check box has been checked and the check boxes that were checked were sucessfully stored in the database. Is that correct? Where do you want to show "yes" at? … | |
A while back [diafol](https://www.daniweb.com/members/120589/diafol) helped me get a searching script working. It works very well the only problem I am having now is getting it to return the searched values. Here's some context to walk you through the process. I have a search page, image attached as help1.png, which I … | |
Re: Did you do what gabrielcastillo said? If you are storing Hashed passwords in your database then you will never get a result back if you are comparing the plain password that the user inputs in the form to the hashed password in the database. You need to do what he … | |
Re: Below is the code I use for my site's searching page. I had a similar question a while back and [diafol](https://www.daniweb.com/members/120589/diafol) answered it for me. This is a script he showed me to slim down my original process. You just need to do some tinkering in it to set it … | |
Re: Is this just for testing or learning about JS? Login pages should not be done in JS, it's all client side, how are you storing values to retrive login information of past users. What's the whole purpose of this site? | |
Re: You could use a code that looks like this: <?php echo "<form>"; // not sure what gmale is your supposed to be or if it is supposed to be an if statment. $gmale = 1; } else { $gmale = 0; } if ($_REQUEST['fmale']!='') { echo "<input type='checkbox' name='fmale' id='fmale' … ![]() | |
Re: As stated above you can use JS for real time calculation instead of requiring a second page and the load time. If you still want php I can write a script after I get out of class a little later that will work in php. | |
Re: As Adrian was saying on line 9 the if statment is not going to work because you close the php mid way through to type the html. Try using one large <?php ?> tag and instead using echo to display the html. For example. <?php if(!isset($userl) == '') { echo … | |
I have the following code: <?php $fieldsClause = array(); $bindArray = array(); $fields = array('status','fname','middle','lname','address','city','state','zip','county','mailing','hphone','mphone','wphone','ext','fax','email','ethgroup','other1','occupation','poe','dob','gender','bhv','mrc','general','evv','allCounties','fillmore','johnson','otoe','richardson','seward','butler','gage','lancaster','pawnee','saline','thayer','cass','jefferspm','nemaha','polk','saunders','york','other2','aro','clergy','intskills','bus','child','law','cpr','data','security','emergency','computer','mechanical','administration','firstaid','translation','construction','basicclean','foodprep','animalcare','heavy','dataentry','identification','phone','runner','greeter','interviewer','safety','other2','interpt','cdl','cpryn','translate','other3','license1','verf1','num1','exp1','license2','verf2','num2','exp2','license3','verf3','num3','exp3','license4','verf4','num4','exp4','license5','verf5','num5','exp5','lsrd','syes','bcert','pauth','dist1','tdate1','dist2','tdate2','dist3','tdate3','dist4','tdate4','dist5','tdate5','felony','felonys','ename','erelation','ehphone','eaddress','ecity','ezip','hdyhau','bdesc','record'); foreach($fields as $field){ if($san = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING)) { $fieldClause[] = "`$field` = :$field"; $bindArray[":field"] = $san; } } $sql = "INSERT INTO volunDB("; if (!empty($fieldClause)) $sqlF = implode(', ', $fieldClause); $stmtString = $sql; if(isset($sqlF)) … | |
I have the following code: <?php $fieldsClause = array(); $bindArray = array(); $fields = array('status','fname','middle','lname','address','city','state','zip','county','mailing','hphone','mphone','wphone','ext','fax','email','ethgroup','other1','occupation','poe','dob','gender','bhv','mrc','general','evv','allCounties','fillmore','johnson','otoe','richardson','seward','butler','gage','lancaster','pawnee','saline','thayer','cass','jefferspm','nemaha','polk','saunders','york','other2','aro','clergy','intskills','bus','child','law','cpr','data','security','emergency','computer','mechanical','administration','firstaid','translation','construction','basicclean','foodprep','animalcare','heavy','dataentry','identification','phone','runner','greeter','interviewer','safety','other2','interpt','cdl','cpryn','translate','other3','license1','verf1','num1','exp1','license2','verf2','num2','exp2','license3','verf3','num3','exp3','license4','verf4','num4','exp4','license5','verf5','num5','exp5','lsrd','syes','bcert','pauth','dist1','tdate1','dist2','tdate2','dist3','tdate3','dist4','tdate4','dist5','tdate5','felony','felonys','ename','erelation','ehphone','eaddress','ecity','ezip','hdyhau','bdesc','record'); foreach($fields as $field){ if($san = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING)) { $fieldClause[] = "`$field` = :$field"; $bindArray[":field"] = $san; } } $sql = "INSERT INTO volunDB("; if (!empty($fieldClause)) $sqlF = implode(', ', $fieldClause); $stmtString = $sql; if(isset($sqlF)) … | |
By default the page after login.php is authorize.php which just checks the information then sends it off to index.php. From index.php I cannot get to my page 'volunForm.php', it just redirects me back to the login page. This is my first ever login system and my first time using sessions. … | |
I have a basic query I was working on with optional search parameters. The query code is: $query = $db->prepare("SELECT * FROM VolunDB " . $whereClause . " 1 = 1"); $query->execute(); $result = $query->fetch(PDO::FETCH_OBJ); $table = $result->fname . " " . $result->lname; and $whereClause equals: WHERE general = General … ![]() |
The End.