Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~26.6K People Reached
Favorite Forums
Favorite Tags

61 Posted Topics

Member Avatar for davidjennings

Hi all, I am trying to compare data from $_POST['Net'] which has 6 elements to check to see if the data has changed in the form when submitted. Below is the Post array from form. array(16) { ["Submitted"]=> string(4) "true" ["NetValue"]=> string(1) "0" ["ProductID"]=> array(6) { [0]=> string(5) "76458" [1]=> …

Member Avatar for davidjennings
0
430
Member Avatar for davidjennings

Hi All, I am trying to get tooltip to work when I hover text in a table. It does work but it produces an extra data table column. If you have any idea how I can stop this, please let me know. Thanks David <script type="text/javascript"> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script> …

Member Avatar for davidjennings
0
271
Member Avatar for davidjennings

Good afternoon all, The issue I am having is that when POST data values are looped through inside the while loop as each record is compared with the POST data and the database record for any changes. For this test the data from the post is exactly correct. The if …

0
403
Member Avatar for davidjennings

Good day to you all, I ham having an issue the the following error (Fatal error: Call to a member function fetch_result() on a non-object in on line 167) which is the while ($row = $result->fetch_object()) every way I try to change this another error crops up. If yo can …

Member Avatar for davidjennings
0
1K
Member Avatar for davidjennings

Hi I am trying to redirect a url in the htaccess file. RewriteEngineOn RewriteRule ^wakins.co.uk$ http://www.watkins.co.uk [R=301,L] and I have also tried this RewriteEngineOn RewriteRule ^/wakins.co.uk$ http://www.watkins.co.uk [R=301,L] Thanks in advance D

Member Avatar for davidjennings
0
294
Member Avatar for davidjennings

Hi all, I am trying to compare output from DB The code below works on 1 check, but I require to do this on multiple products like so `if rowProduct("GRPCODE") <> "Cross Hire" or rowProduct("GRPCODE") <> "Boiler Ancillaries" then` etc but the above line does not work as I have …

Member Avatar for MaxMir
0
603
Member Avatar for davidjennings

Hi All, I am currently trying to update a check box . Then pass the data back through the same page and if set update DB. The code is long so I shall be as concise as possible. I have pulled the data from the DB and I am using …

Member Avatar for davidjennings
0
972
Member Avatar for davidjennings

Hi I am trying to convert the following mysql function to mysqli. Thanks in advance David <?php /*------------------------------------------------- This class contains generic database functions to view, add, edit and delete all facets of a database -------------------------------------------------*/ require_once ("sitesettings.php"); class Database extends SiteSettings { var $Query; var $Connection; function Database() { …

Member Avatar for diafol
0
494
Member Avatar for Iikeloa

Hi Keloa, I think this what you are asking for? You created 2 tables only 1 was required. Also make sure you use the th and td correctly. You may have to change the table width. See how you get on with it d <?php ?> <table border="1" width="40%"> <tr> …

Member Avatar for Iikeloa
0
187
Member Avatar for Mike_danvers

Hi, This seems a good link http://www.sitepoint.com/html5-javascript-file-upload-progress-bar/ http://www.johnboy.com/php-upload-progress-bar/ Hope it helps

Member Avatar for davidjennings
0
198
Member Avatar for davidjennings

The following code is producing this error `Microsoft VBScript compilation error 800a03f6 Expected End ` followed by `/stock/availability-quick/availability2.asp, line 130` I think it is a if else error. I have looked over the code and i don't see the error and would benefit from an expert pair of eyes to …

0
162
Member Avatar for davidjennings

Hi All, I am tring to capture the data being passed from an ASP page. `<td height="30"><a href="http://admin.boilerrentalservices.co.uk/availability.php?<%= rowProduct("GRPCODE") %>"><%= rowProduct("GRPCODE") %></a></td>` using VAR_DUMP($_GET) in the PHP page which produces this `array(1) { ["AHU-100-200"]=> string(0) "" }` How can I extract this 'AHU-100-200' data in a usable form and use …

Member Avatar for davidjennings
0
164
Member Avatar for davidjennings

Hi All, I am a new user to ASP and would like to add a to an accumalted value. The value stored in QTYALLOC can be a 1 or a 2 but currently the code will only add increment by 1, but what I am trying to do is increment …

Member Avatar for davidjennings
0
978
Member Avatar for davidjennings

Hi all, I am looking to extract address line of text into arrays in a word document. I am only really looking for the postcode to extract. Any help would be appreciated Thanks David Velta - The Underfloor Heating Company, Wombwell School, S73 8AX Speedy Asset Services Limited, C/O Arnold …

Member Avatar for davidjennings
0
303
Member Avatar for davidjennings

Hi all, I have to update some classic ASP code and I need to add an if statment to compare if a uppercase value is == "N/A" and to compare value with request("productLink") line 8 and if it is it should by pass validation on line 16. Any further information …

Member Avatar for JorgeM
0
382
Member Avatar for davidjennings

Hi All I am trying to find out the best way to capture the var_dump($contents) on line 29. I am think array? but I don't know how many string elements the array is returning. This is the output via var_dump($contents); array (size=45) 0 => string '.' (length=1) 1 => string …

Member Avatar for davidjennings
0
351
Member Avatar for davidjennings

Hi All, I am trying to connect to a Network drive remotely using authentication data(\\drive_name)(T:). I will need to upload and download documents. If possible can you give me some pointers. If you require any additional information please let me know Thanks in advance David

Member Avatar for davidjennings
0
492
Member Avatar for davidjennings

Hi All, I am getting an undefined error in the following code Undefined variable: Settings in C:\wamp\www\sessions\index.php on line 14(last line) Any help would be appreciated Thanks in advance David class SiteSettings { var $Settings; function SettingValues() { $Settings['WS-Filepath'] = "/wamp/crud/view.php/"; $Settings['WS-HTTPpath'] = "http://localhost/crud/view.php/"; $Settings['DB-Hostname'] = "localhost"; $Settings['DB-Username'] = "root"; …

Member Avatar for davidjennings
0
872
Member Avatar for davidjennings

Hi I am having a problem with the user ID being set, resulting in not deleting the chosen record. This is the data being passed in the url from view.php - delete.php http://localhost/crud/delete.php?91 . I have put in an if statement to check if the UserID is set and it …

Member Avatar for davidjennings
0
260
Member Avatar for davidjennings

Hi All, I am trying to add insert/update and delete to an OOP singleton database connection using public functions like this, not sure if it is correct? example code public function insert($sql){ if($this->_execute= $this->_mysqli->_execute($sql)){ while ($row = $this->_execute->fetch_object()){ $this->_results[] = $row; } $this->_count = $this->_execute->num_rows; } return $this; } //page …

Member Avatar for diafol
0
242
Member Avatar for davidjennings

Hi All, I have been using a latest version of wamp daily for the last month on this PC and suddenly over the weekend it has stopped working. I have tried the following: I have restarted all services a number of times. Restored back to earlier point on Friday when …

Member Avatar for davidjennings
0
353
Member Avatar for davidjennings

Hi All, I am trying to connect to a database OOP singleton method. I am getting an error "syntax error, unexpected 'function_construct'" and I unable to find the syntax error in the code. Any help with this would be appreciated. Thanks in advance David // Page: index.php <?php require_once 'classes/db.php'; …

Member Avatar for davidjennings
0
826
Member Avatar for davidjennings

Hi all, I am trying to connect to a remote server, I am using the IP address server name and folder to connect, not sure if ths is working? I am aslo getting an error on the final foreach loop (`foreach ($files as $file) {//print array`) Warning: Invalid argument supplied …

Member Avatar for diafol
0
401
Member Avatar for davidjennings

Hi all, I am trying output the following 1 user after validating data from a database and I have no output to the screen. I am not sure what is missing from query? Any help would be appreciated Thanks in advance David ------- Index.php ------ <?php session_start(); ob_start(); include_once ("includes/settings.php"); …

Member Avatar for davidjennings
0
263
Member Avatar for davidjennings

Hi All having a problem with the following statement " Notice: Undefined index: Username in C:\wamp\www\david\remoteaccess\index.php on line 6". I have tried defining Username in a number of ways, but I seem to missing something. Any help would be great Thanks in advance Thanks <?php session_start(); include("includes/utilities.php"); include("includes/functions.php"); $username = …

Member Avatar for davidjennings
0
375
Member Avatar for davidjennings

Hi all, I am working on the following code and I am having a problem with defined variables. On the output on the Submitted and Username Inputs as being undefined. I have added $username = (isset($_POST['Username'])) ? $_POST['Username'] : ""; at the start of the function but not suppressed. Thanks …

Member Avatar for davidjennings
0
358
Member Avatar for davidjennings

Hi all, I am working on the following code. In the SQL query, I am currently calling all the data from the DB using * and all works fine. I would like to be selective and call the coloumns required i.e UserID, UserFullName, UserEmail, UserLastPassword, but when I do this …

Member Avatar for davidjennings
0
366
Member Avatar for davidjennings

Hi all I am trying to call a simple function and I keep getting an error "Parse error: syntax error, unexpected ';', expecting '{' in C:\wamp\www\david\remoteaccess\index.php on line 15" This relates to the call and I don't understand why it does not work. I am using WAMP if that makes …

Member Avatar for davidjennings
0
771
Member Avatar for davidjennings

Hi All, I am trying to the following: The code is written in ASP, the output is from a database. I am trying to multiply the QTY and RATE#2 and display total with each order in the returned data. This relates to the last td's in the output. I also …

Member Avatar for davidjennings
0
313
Member Avatar for davidjennings

Hi All I am running an sql query to obtain the data for $CaseStudyTitle[] = $row['CaseStudyTitle']; located in the while loop and passed as parameters to the fucntion below. Currently I am displaying only one case study title at anytime. The partner can have many case studies titles how can …

Member Avatar for davidjennings
0
198
Member Avatar for davidjennings

Hi All - I am trying create classes for db connection and I am getting the following error Thanks in advance D Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXXXXX_david'@'localhost' (using password: YES) in /home/djenning/public_html/dbconnection/connection.php on line 20 Cannot connect to the database page: connection.php <?php class createConnection //create a …

Member Avatar for davidjennings
0
541
Member Avatar for davidjennings

Hi all I am experiencing the following error. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean givenit refers to line 94 which is the while loop start point. Thanks in advance D <?php $x=0; $remainder=0; $image_value = array(); $partners_id = array(); $description_value = array(); $url_value= array(); $image_filename_value = array(); …

Member Avatar for davidjennings
0
381
Member Avatar for davidjennings

Hi all I am trying to add a class selected to click area and a remove class in the hide area for the below jquery/javascript. Not really undstanding how it's added. Thanks in advaance D <script type="text/javascript"> $(document).ready(function(){ $('.partner_image').click(function() { var id =$(this).class('selected'); var id = $(this).attr('id'); id = id.replace('partner_',''); …

Member Avatar for EvolutionFallen
0
230
Member Avatar for saurabh2007

Hi I have used a simular script recently and the form input requires required ie input class="url input-wide" id="url" type="text" name = "url" value="<?php echo $url ?>" required /> this just a sample that worked for me Also it would help if your link for the demo worked and ppeople …

Member Avatar for davidjennings
0
308
Member Avatar for davidjennings

Hi all am am trying to reduce duplicated elements in a php page. How can I create a function that will pass the different values in the array. Thanks in advance D for ($i=$index-$x+1; $i<=$index; $i++) { echo "<div class='partner_description' id='partner_description_" .$partners_id[$i]. "'>"; echo "<p>".$description_value[$i]. "</p>"; echo "<div class='url'>"; echo …

Member Avatar for davidjennings
0
232
Member Avatar for davidjennings

Hi all I have an sql output query problem I am trying to resolve. The problem is that I have centres that offer Awards and quals and some centres only offer awards or quals only. What I need to process is the centres that offer both awards and quals. tbl.net.qualification …

Member Avatar for davidjennings
0
171
Member Avatar for davidjennings

Hi all I am request the following data from the database (image_id and description). I need to put each of them in a separate arrays and then echo out contents of both arrays I have tried array_push and implode without success. Any assistance would we appreciated. Thanks in advance D …

Member Avatar for davidjennings
0
3K
Member Avatar for Albert Pinto

Hi Albert what I have done recently not sure what you are saving in the db The checkbox name was active and I checked that the value was set and the checkbox was on as this is the default value when checked. I wrote the values 1 for active 0 …

Member Avatar for Albert Pinto
0
2K
Member Avatar for davidjennings

Hi all - am trying to add a background image to the imput area for file upload for the input fields I have used the below css any solutions will be great. Thanks in adavance D #content .input-wide { width: 288px; height: 22px; margin: 0; padding: 6px 5px 6px 27px; …

Member Avatar for davidjennings
0
222
Member Avatar for davidjennings

Hi all I am trying to resolve an issue when I select an expanding div, the first div selection pushes the second div element to the right. is there css fix or other to get this not to push div element to the right Thanks in advance D <!DOCTYPE html …

Member Avatar for davidjennings
0
361
Member Avatar for davidjennings

Hi All - I am trying to modify the below script. Currently on page load the page will display the click image and the message in the dialog box. What I want to do is do it the opposite and just have the click image display and on click the …

Member Avatar for davidjennings
0
335
Member Avatar for davidjennings

Hi All - I am trying to find a solution to the following I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to …

Member Avatar for davidjennings
0
188
Member Avatar for davidjennings

Hi All I am trying to format the sql ouput reg_date into a date format current details echoed out 2013 - 03 - 08 12:12:11 I just require the date only echo stripslashes($row['reg_date']) $result = $mysqli->query($query) or die ($mysqli->error.__LINE__); if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo stripslashes($row['reg_date']) . …

Member Avatar for davidjennings
0
215
Member Avatar for davidjennings

Hi Good evening all I am trying to capture the below multi dimensional array using either POST or GET. the data is passed from a form and is displayed in the array format using print_r(GET); The packagecount = 2 indicates the mumber of packages and also corresponds to 1 and …

Member Avatar for paulkd
0
226
Member Avatar for davidjennings

Hi all - use the curdate() or current date to look at newly added awards in the last 3 months The SQL table used to store the created date when an award was added is **tbl_net_centre.reg_date** and keeps throwing up an error on the <= If anyone can advise the …

Member Avatar for davidjennings
0
818
Member Avatar for MikeOxley

Hi looking at your code line 218 and it is displaying the html code for the class on the screen of your invoice page. <tr bgcolor="#323232">class="style13"> This needs to be like this <tr bgcolor="#323232 class="style13"> this will not help with your alignment. It may not help but it's a start …

Member Avatar for tkdchamp
0
237
Member Avatar for davidjennings

Hi All I am trying to implement implement a coherent, extendable object oriented solution in PHP. I am not sure where to start to solve this problem. (Not home work) The Problem • I need to use a basic command line program that when called will retrieve and store a …

Member Avatar for pritaeas
0
236
Member Avatar for davidjennings

Hi I seem to be lost with this form validation When submited empty the error should display next the input field in red. Thanks in advance D <?php if (array_key_exists('submit',$_POST)){ //Form has been submitted // Fields that are on form $expected = array('name', 'email', 'comments'); // Set required fields $required …

Member Avatar for Webville312
0
415
Member Avatar for davidjennings

Hi All - I am trying to correctly valididate forms on serverside using PHP and on client side with JavaScript I seem to have got lost in the processes here. Thanks DJ <?php // define variables and initialize with empty values $fname = ""; $fnameErr =""; $lname = ""; $lnameErr …

Member Avatar for rotten69
0
305
Member Avatar for davidjennings

Hi all, I am using WAMP2 on my desktop. each time I run a php page the code is echoed to the screen. The icon in the lower tool bar is white/grey I have had in working I then installed new anti-virus software and that is when I noticed that …

Member Avatar for ivan3510
0
172

The End.