52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

program2.php <html> <header> </header> <body> <?php function Multiply($x, $y) { echo $x * $y; } echo 'Multiply : '.Multiply(2,3).'<br><br>'; ?> </body> </html> Why the result of the above program is : 6Multiply : instead of Multiply : 6 Any clue?

Web Development php
Member Avatar for jstfsklh211
0
195
Member Avatar for davy_yg

Hello, I try to create a simple OOP PHP that shows an error: class_lib.php <?php class person { var $name; function __constructor($person_name){ echo "Initialize class"; } function set_name($new_name){ $this->name($new_name); } function get_name($new_name){ return $this->name($new_name); } function __destructor(){ echo "end class"; } } ?> program3.php <?php include("class_lib.php"); ?> <?php $stefan = …

Web Development oop php
Member Avatar for jstfsklh211
0
602
Member Avatar for davy_yg

Hello, I am trying to follow the following tutorials: https://www.w3schools.com/angular/angular_tables.asp <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> </div> <script> var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $http.get("customers.php") .then(function (response) {$scope.names = response.data.records;}); }); </script> It produces a customer table. …

Web Development javascript
Member Avatar for jstfsklh211
0
291
Member Avatar for rjusman90

One additional primary search function. One other feature that we would like to include – if it can be done relatively easily - is that if someone enters in any location description (Zip, City Name, State Name) right after the main USMarriage.org URL name and a forward slash (such as …

Web Development
Member Avatar for jstfsklh211
0
200
Member Avatar for davy_yg

Hello, I have been experimenting with Fusion Chart. I have been following this tutorial: https://www.fusioncharts.com/dev/chart-guide/getting-started/using-xml-as-data-format and trying to take the chart data from xml yet it does not works. bar_chart_xml.html <html> <head> <!--<script src="angularjs-plugin/wrappers/angularjs/angular-fusioncharts.min.js"></script> <script src="angular.js"></script> --> <script type="text/javascript" src="fusioncharts/js/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready( function …

Web Development angularjs javascript json xml
Member Avatar for Dani
0
945
Member Avatar for Mister_1

I have three lines of code; $image->saveAs('tmp/page.png'); $image = 'tmp/page.png'; unlink('tmp/page.png'); I would like to have a random filename for page.png, so I have chosen to use the following; uniqid() How would I go about using `uniqid()` within each of those three lines. So it appears as; $image->saveAs('tmp/randomfilename.png'); $image = …

Web Development php
Member Avatar for jkon
0
197
Member Avatar for Mati_1

I'd like to get all of a mysql table's col names in a select box, and display the selected column name in a table. I just want to select one column at a time to display it in a single column table. I am assuming this can be done with …

Web Development javascript mysql php
0
454
Member Avatar for janicemurby

hi im attempting to update a script from coryApp and im getting the following error PHP Notice: Undefined offset: 11 here is the code where it is coming from can someone point me in the right direction on this ty jan x <td width="15%" class="headrows4" valign="top" align="left"> THIS LINE >>><p><input …

Web Development php
Member Avatar for ryantroop
0
3K
Member Avatar for davy_yg

This time, I am trying to customize color in bar chart. https://www.fusioncharts.com/dev/chart-guide/chart-configurations/data-plot bar_chart.html <html> <head> <script type="text/javascript" src="fusioncharts/js/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> </head> <body> <script type="text/javascript"> FusionCharts.ready(function() { var revenueChart = new FusionCharts({ "type": "doughnut2d", "renderAt": "chartContainer", "width": "500", "height": "300", "dataFormat": "json", "dataSource": { "chart": { "caption": …

Web Development json
Member Avatar for ryantroop
0
500
Member Avatar for Mr.M

Hi Guys. I'm having a serious problem that is holding me back. I have a file which is a user dashboard and this file gets data from another php script file which is called by a user login screen when a user clicks login. The file verify the credentials then …

Web Development html-css javascript php
Member Avatar for Daniel_87
0
23K
Member Avatar for davy_yg

Hello, I am following this tutorial: https://valor-software.com/ng2-charts/ I try to set up the barchart. I copy exactly from the demo script: new.html <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <script src="node_modules/chart.js/src/chart.js"></script> <script src="bar.js"></script> </head> <body> <div> <div style="display: block"> <canvas baseChart [datasets]="barChartData" [labels]="barChartLabels" [options]="barChartOptions" [legend]="barChartLegend" [chartType]="barChartType" (chartHover)="chartHovered($event)" (chartClick)="chartClicked($event)"></canvas> </div> <button (click)="randomize()">Update</button> </div> </body> …

Web Development angularjs dataset json typescript
0
282
Member Avatar for davy_yg

Hello, I am trying to create a bar chart with angular. I am following the following guidance: https://www.fusioncharts.com/angularjs-charts/ I wonder why it does not works. I only see a blank screen when running bar_chart.html bar_chart.html <html> <head> <script src="barchart_data.js"></script> <script src="angular-fusioncharts.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body> <div ng-app="myApp">...</div> <div ng-controller="MyController"> <div …

Web Development angularjs javascript
0
506
Member Avatar for kkjaykamau

I have this email code from a website template that I want to use for my site. The problem is that when I click on the "Send message" button, the form simply refreshes and nothing is sent. If there is any text data in the fields, it simply disappears. I …

Web Development email php
Member Avatar for Schol-R-LEA
0
3K
Member Avatar for davy_yg

I get this message: The foto ktp must be an image. The foto ktp must be a file of type: jpg, jpeg, png. The foto profile must be an image. The foto profile must be a file of type: jpg, jpeg, png. I wonder why it does not pass the …

Web Development file-system php session
Member Avatar for davy_yg
0
413
Member Avatar for divinity02

hi all what is the best possible way i can create a members view page (profile page) I am doing ths assignment where i have to create two pages, one is a members view page and a members edit page. the members view page page(profile page is like when u …

Web Development php
Member Avatar for rproffitt
0
548
Member Avatar for davy_yg

program1.php <html> <header> <script> function myFunction(p1, p2) { return p1 * p2; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </header> <body> <div id="demo"></div> </body> </html> I don't understand why the above code does not show any value? and why this one does? program2.php <html> <body> <div id="demo"></div> <script> function myFunction(p1, p2) …

Web Development javascript
Member Avatar for ryantroop
0
461
Member Avatar for logicslab

Dear Friends, I have a string with structure $selectedTime = "2017-02-10 07:00,2017-02-10 08:00,2017-02-11 09:00"; I need to convert it as {"2017-02-10":[{"start":"07:00"},{"start":"08:00"}],"2017-02-11":[{"start":"09:00"}]} any idea ? please advise asap Thanks Anes

Web Development json php
Member Avatar for logicslab
0
664
Member Avatar for Subashan

<body class="bg-dark"> <div class="container"> <div class="card card-login mx-auto mt-5"> <div class="card-header">Change Password</div> <div class="card-body"> <form method="post" action="change-password.php"> <div class="form-group"> <label for="username">Username</label> <input class="form-control" id="username" type="text" name="username" aria-describedby="nameHelp" placeholder="Enter username" required> </div> <div class="form-group"> <label for="New Password">New Password</label> <input class="form-control" id="newpass" type="text" name="newpass" placeholder="Enter new password" required> </div> <div class="form-group"> <label …

Web Development mysql php
Member Avatar for afaaro
0
4K
Member Avatar for Misty_3

Hi, I am trying to get these fields to highlight when clicked: 'search conducted', 'contraband', and 'arrest result of stop'. I have tried with Dreamweaver CC, but the particular thing I'm trying to do just won't work. Thanks in advance!

Web Development javascript
Member Avatar for BinaryDigit
0
198
Member Avatar for Amit_54

Var oldData = [ [ 2018-04-01, 10] , [ 2018-04-02, 20] , [2018-04-03, 30] ]; Var NewData = [ [ 2018-03-30, 5], [2018-03-31, 6], [2018-04-01, 22] ]; Output = [ 2018-03-30, null, 5], [2018-03-31,null, 6], [2018-04-01, 10, 22] , [2018-04-02, 20, null] , [2018-04-03, 30 null ] ] COuld you …

Web Development javascript-jquery
Member Avatar for alan.davies
0
307
Member Avatar for Mr.M

Hi DW. I'm trying to post data without refreshing the page using the ajax, and its works fine the problem is that on the response I also get the array data that I posted to my php file then at the end of response is the returned data which is …

Web Development html-css javascript php
Member Avatar for Mr.M
0
493
Member Avatar for thilipdilip

I want to add digital signature into pdf document, with help of php. I have the .pfx digital signature format with me.

Web Development pdf php
Member Avatar for rproffitt
0
2K
Member Avatar for davy_yg

How to create a button that redirect to certain location in a website which is still on the same page?

Web Development html-css javascript-jquery php
Member Avatar for Daniel_87
0
520
Member Avatar for Dominika_1

Hi, How to make the most effective page like ad? Do you have any tips? Thanks!

Web Development social-media
Member Avatar for kiruthi_1
0
333
Member Avatar for Semilogo

Please I need php registration and login code for a project I am presently working on. I have google search and ran several registration codes but it has not been working.

Web Development php
Member Avatar for rproffitt
0
379
Member Avatar for memegha123

hI! I m trying to create a simple login application in jsp where i create a session allows the user to use certain features and then logout. Problem is that after the user logs out. I destroy all session objects and invalidate the session and redirect to welcome page still, …

Web Development caching java-jsp session
Member Avatar for youngbill
0
3K
Member Avatar for davy_yg

Hello, Anyone knows anything about phython? Someone mention to me if you need anything about AI Phython would be the perfect language to program it. Is that true? Thanks in advance.

Member Avatar for alan.davies
0
348
Member Avatar for Monrach

Getting an empty drop-down list by the following code. Trying to fetch names from the department table. Using an oracle Database... <label for="department">Department</label> <select class="form-control" name="deptname" id="deptname"> <option selected disabled></option> <?php $dbUser = "..."; $dbPass = "..."; $dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=...)(PORT=1521))(CONNECT_DATA=(SID=...)))"; $conn = oci_connect($dbUser, $dbPass, $dbConn); $sql …

Web Development html-css oracle php
0
745
Member Avatar for jj.dcruz

Hi there been having this problem for a while now and i need guidance the only thing that is showing me only **111** when looping through i have 3 data in my database and its not showing me the result i want any ideas?? thanks in advance **edit** the result …

Web Development php programming-construct
0
413
Member Avatar for divinity02

hi all I am doing a form where i have to validate the email, all of the other control is working just the way it is supposed to work but I have been trying to validate the email for the longest while and it is not working properly or better …

Web Development email javascript regex
Member Avatar for pty
0
287
Member Avatar for Sebastiano

Hi all, I'm trying to make a Facebook login for a website, which also stores users' data who log in. In order to do this, I do have an index.php <script> // This is called with the results from from FB.getLoginStatus(). function statusChangeCallback(response) { console.log('statusChangeCallback'); console.log(response); // The response object …

Web Development api app-store javascript php session
Member Avatar for Sebastiano
0
978
Member Avatar for Syed_18

Hi I have problem that cannot show form validation errors in view . I am using ajax to post data to controller. Here is my Controller's Validation part private function _validate() { $this->form_validation->set_rules('Name', 'Name', 'required|alpha'); $this->form_validation->set_rules('CellNo', 'CellNo', 'required|numeric'); $this->form_validation->set_rules('Address', 'Address', 'required'); $this->form_validation->set_rules('Rate', 'Rate', 'required|numeric'); $this->form_validation->set_rules('Advance', 'Advance', 'required|numeric'); $this->form_validation->set_rules('BottlesQty', 'BottlesQty', 'required|numeric'); …

Web Development javascript javascript-jquery php
0
366
Member Avatar for davy_yg

Hello, I have a question about who uses https:// instead of http:// ? What is the point of encrypting the information if that is the point? Who normally uses it? Ecommerce? Bank? Who else? If am I right?

Web Development cybersecurity ecommerce
Member Avatar for Neena_3
0
500
Member Avatar for Mike_51

I know this question is a lot easier than it seems, but I can't seem to get around it. This is my current code and I cannot get it to properly check if the SSN number is in a proper format or not. It just says all is false. This …

Web Development javascript
Member Avatar for john_111
0
472
Member Avatar for aqqa

can i perform biometric process in php language if this is possible ,please give me some suggestion,.. if this is not possible then tell me how integrete c# or java biometric module in php

Web Development javascript javascript-jquery php
Member Avatar for ryantroop
0
270
Member Avatar for Ramakrishnan.L

I am developing a inventory management web application using php and mysql. This application will runs on different locations. while any one place disconnect the internet at the time data will be land in local database and when active internet that data automatically synchronizing the remote database. is there way …

Web Development mysql php
Member Avatar for Athi_3
0
4K
Member Avatar for seularts

I have 2 files: apix.php and crud.php. I am trying to convert the fetched data from php to a jason print. The issue is that the function does not the results for me to parse in the next section of my code. The CRUD.php: class crud { private $db; function …

Web Development json php
Member Avatar for seularts
0
456
Member Avatar for EvolutionFallen

Hello, I'm just starting off with Ruby, but I have a task that landed on my desk that I need a quick answer for, and haven't been able to find a solution online. I appreciate any help I can get. I need to know if a value in one array …

Web Development ruby
Member Avatar for EvolutionFallen
0
516
Member Avatar for janicemurby

hi ive done a piece of code for if select a region the postcodes pop up for that region all works on a seperate file but if i put on my working script it doesnt work any help would be much appreciated here is test code <!DOCTYPE html PUBLIC "-//W3C//DTD …

Web Development javascript php
Member Avatar for AndrisP
0
364
Member Avatar for Anthony_22

Hello, I am trying to prevent my form, from submitting if the file is not an image type file but i keep failing, the array that i am using keeps displaying regardless of the files type. Any help would be grateful. <?php $Manufacturer = $_POST['Manufacturer']; $Brand = $_POST['Brand']; $Model = …

Web Development image php
Member Avatar for ryantroop
0
586
Member Avatar for Jon_7

I have a yearly curriculum for my basketball workouts that I'd like to display online. I've created 53 unique workouts for each day of the week that include the main focus for the day, 6 drills, a quote, and a motivational story. I know I'd need a [datepicker](https://jqueryui.com/datepicker/) to accomplish …

Member Avatar for Jon_7
0
718
Member Avatar for Syed_18

Hi This question or similar were 4 years ago has already been asked but in my situation did not help. I have codeigniter project. in my employee database I have TINYINT field status. if 1 employee is active otherwise inactive. my form is in bootstrap modal. here is switch button …

Web Development javascript mysql php
0
336
Member Avatar for Aditya_26

My website was built with Angular JS 1 (not a wordpress site) . When i posted some website posts within same day. So ,When ever i checked my website on Google SERP (site:example.com), identified some of pages are crawled within 24hrs and some of pages within 1 week and some …

Web Development wordpress
Member Avatar for rproffitt
0
341
Member Avatar for Kim Gabrielle

I am making a webpage wherein I am going to ask for an input through an html form using php, and then call a python script after clicking "submit (flames)" to run and process the Flames game. Can someone help me on how to execute a python script through a …

Web Development html-css php python
Member Avatar for broj1
0
7K
Member Avatar for Nrashmra

#Anyone can help? Here is two search by radio button one is requirement type and another radio button is build. I want to search by requirement type or build but it doesn't work...anyone can help to solve this problem, im very stuck! I've been doing this for two days.. I …

Web Development mysql php
Member Avatar for broj1
0
2K
Member Avatar for muhd

Hello, i success display all the record when the button clicked <html> <head lang="en"> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="bootstrap-3.2.0-dist\css\bootstrap.css"> <!--css file link in bootstrap folder--> <title>View Users</title> </head> <style> .login-panel { margin-top: 150px; } .table { margin-top: 50px; } </style> <body> <div class="table-scrol"> <h1 align="center">All the Users</h1> <div class="table-responsive"><!--this …

Web Development mysql php sql
Member Avatar for muhd
0
506
Member Avatar for FarrisFahad

I have a website that gets a lot of visitors a month. And the server cannot handle the traffic. I have a dedicated server. How can I run the site on multiple dedicated servers?

Web Development client-server web-server
Member Avatar for FarrisFahad
0
4K
Member Avatar for muhd

I have 2 user which is officer and admin. The officer fill in the form. Admin will open the form, see details of officer and fill his detail. The problem is i success output all the information fill by the officer but when the admin fill the data not in …

Web Development mysql php sql
Member Avatar for t_thakar
0
434
Member Avatar for Anthony_22

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all …

Member Avatar for ryantroop
0
655
Member Avatar for Gurjit_2

Hello Daniweb community, I have an app that is built on custom MVC design pattern. The app is designed that when the controller is empty, that is when $url[0] is empty, then the app should automatically redirect to index. The code to do this is found on bootstrap.php and looks …

Web Development php
Member Avatar for Gurjit_2
0
900

The End.