39,326 Topics

Member Avatar for
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 = …

Member Avatar for jstfsklh211
0
600
Member Avatar for Owusu_1

Hi, I've designed a voting system in PHP that when a user clucks on the vote button it echo a message and a link to view the result. I want to move this message and the link to a popup window

Member Avatar for Bachu
1
591
Member Avatar for ela_1

Requirements: Create a PHP application to allow a user to register for the website and enter profile information to be stored in cookies. Part I: Registration page Create a page called register.php that displays a user registration form with the following fields from the customer table: Email address - required, …

-1
153
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 = …

Member Avatar for jkon
0
195
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 …

0
448
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 …

Member Avatar for ryantroop
0
3K
Member Avatar for Stefce

Hello everyone how are you doing? I wonder if there is a way i can send a notification or URL from my website to user mobile from PC browser for free, just to confirm the user is real?

Member Avatar for ryantroop
1
712
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 …

Member Avatar for Daniel_87
0
23K
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 …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for davy_yg

Any clue how to use an image for browse button? I try : <input type="file" name="userfile"> <input type="image" src="images/reg/upload_foto.jpg" value="Upload" name="Upload"> and still does not works. Can you turn an image into a browse file button?

Member Avatar for gentlemedia
0
180
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 …

Member Avatar for davy_yg
0
411
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 …

Member Avatar for rproffitt
0
544
Member Avatar for davy_yg

What is PHP Enginee? If Xampp is the web server, then is the php enginee apart of the web server? http://www.php.net/downloads.php Can you upgrade the php enginee - to support a higher version of php without uninstalling the xampp? Thanks for advice.

Member Avatar for rproffitt
0
146
Member Avatar for SimonIoa

Hello i made a ionic searchbar script returns the items[] ok but i want to connect it with my php authservice and return the results from a php function. I already connected my app with the authservice and i have returned JSON data in other pages so the authservice works …

0
457
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

Member Avatar for logicslab
0
655
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 …

Member Avatar for afaaro
0
4K
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 …

Member Avatar for Mr.M
0
490
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.

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?

Member Avatar for Daniel_87
0
517
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.

Member Avatar for rproffitt
0
378
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 …

0
743
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 …

0
401
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 …

Member Avatar for Sebastiano
0
976
Member Avatar for Phil_10

I'm running a weather station with daily time lapse videos on my site.. I am wanting to run a calendar on my site so when you click on the day the video will run underneath.. I'm having trouble as to linking the video to the calendar day without creating 365 …

0
233
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'); …

0
363
Member Avatar for nishto

I want to fetch invoice data from two tables table a is in single row and table b data should be multiple rows single data is fetching correctly but facing problem with table 2 multiple data fetch. php file <?php $connection= mysqli_connect("localhost","root","","invoice"); $invID = $_POST['ID']; $Invo = "SELECT a.in_no, a.client, …

Member Avatar for Dascal_1
0
1K
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

Member Avatar for ryantroop
0
263
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 …

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 …

Member Avatar for seularts
0
451
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 …

Member Avatar for AndrisP
0
363

The End.