39,316 Topics

Member Avatar for
Member Avatar for peterpa

hello friends , i need a help to create a binary tree using PHP and mysql. Friends i able to create a tree which is start form parentID with 0 successfully , but when i try to create tree with parent ID=1 , this time i just getting all the …

Member Avatar for Mr.M
0
8K
Member Avatar for Sergi_1

Hello, I Am Building a web application.How can i implement sms service in my website?? Please show me some references..and guidence please..

Member Avatar for Tran_10
0
635
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, …

Member Avatar for JamesCherrill
-1
328
Member Avatar for divinity02

hi pple I have an question, i am creating a webpage for an assignment and one is that I have to create a page for the users to upload their pictures for other to see and take but I would like to know how do i go about doing that …

Member Avatar for rproffitt
0
188
Member Avatar for Tan_2

Hi! I need help with the following code. This code gives the results in a single row. I need it to be displayed in a selectbox. I need expert help with this. please. thanks. <?php $host = 'localhost'; $port = '3306'; $server = $host . ':' . $port; $user = …

Member Avatar for Dani
0
194
Member Avatar for garymae14

can u help me with this one? can you gve me a sample code on how to add 2 values of textbox using php ?

Member Avatar for Saim_2
0
2K
Member Avatar for Behseini

Can you please let me know how I can Strikethrough a generated text on captcha image in PHP? I have a code to create text on an image as below <?php $img = imagecreatetruecolor(200, 200); $bgColor = imagecolorallocate($img, 255, 255, 255); $netColor = imagecolorallocate($img, 185, 185, 185); $txtColor = imagecolorallocate($img, …

Member Avatar for Maksim_2
0
3K
Member Avatar for divya_9

Hello friends, we have a PHP UI, and my selenium script is running in eclipse. I need to run this file into my PHP i.e. if button is clicked in PHP which has to run my selenium script. Is there any possible ways to do that? Help is much appreciated.

Member Avatar for rproffitt
0
108
Member Avatar for divinity02

hi there i have this registration page when a user login it should redirect you to a welcome page, I am having a similar problem at to one user who was experiencing the same problem. at one time it was going to the welcome page, but there were errors in …

Member Avatar for divinity02
0
317
Member Avatar for Tan_2

I have the following code where I can get the field names from a table in a select box. How can I display the contents of a field when it is selected. Thanks! <?php $host = 'localhost'; $port = '3306'; $server = $host . ':' . $port; $user = 'root'; …

0
198
Member Avatar for Theodore_2

Hello I am new to php and I have a problem, I have a code below that shows the fields in my `order_details` table in my database, the problem is in the <tr> <td><?php echo $product_row['name']; ?></td> <td><?php echo $member_row['Firstname']." ".$member_row['Lastname']; ?></td> <td><?php echo $cart_row['price']; ?></td> <td><?php echo $cart_row['qty']; ?></td> …

Member Avatar for Mr.M
0
618
Member Avatar for kennyL

I am writing a CLI application in PHP and I can't seem to understand why my MySQL Class that uses PDO will not get past the PDO or even error. I have made sure error reporting was enabled in my php.ini. PHP version is 7.1.3 on Windows 10. Here is …

Member Avatar for kennyL
0
580
Member Avatar for divinity02

hi there am trying to create a welcome page for when a member register/login but i dont quite know where the error is. i know there is an error there somewhere but as usual, finding my errors in one of my major fault. I am doing it in php the …

Member Avatar for Mr.M
0
1K
Member Avatar for elamigosam

I have this code, it only inserts the first $listing, then the others are ignored, mysqli_query doesnot return any errors, I was having a issue with column being truncated, but I fix that issue, When I copy and paste the $sql1 on phpmyadmin, it works with no issues. $resource = …

Member Avatar for elamigosam
0
360
Member Avatar for janicemurby

hi all im attempting to update coryApp script and im getting the following error PHP Warning: Division by zero can anyone help on this please be much appreicated heres is where the error is coming from if(isset($error) && !empty($error)) echo '<p style="margin:0px; padding:5px 20px"><font color="#FF0000"><small><i>'.$error.'</i></small></font></p>'; $config['showeachside'] = 4; $config['per_page'] = …

Member Avatar for jstfsklh211
0
773
Member Avatar for afaaro

Hi I am struggling how to list all the permissions and with checkboxes. if anyone can help me with it this is the code echo "<table cellpadding='0' cellspacing='0' width='100%' class='table table-bordered'>"; echo "<tr>"; echo "<th>PERMISSION</th>"; foreach($user_groups->rows as $row) { echo "<th class='checkbox'>".$row['title']."</th>"; } echo "</tr>"; $users_permission_query = $this->db->query("SELECT * FROM …

Member Avatar for jstfsklh211
0
2K
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?

Member Avatar for jstfsklh211
0
190
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
599
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
584
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
445
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
677
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
410
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
541
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

The End.