39,388 Topics
![]() | |
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 … | |
![]() | 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 = … |
can u help me with this one? can you gve me a sample code on how to add 2 values of textbox using php ? | |
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, … | |
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. | |
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 … | |
![]() | 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'; … |
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> … | |
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 … | |
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 … | |
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 = … | |
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'] = … | |
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 … | |
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? | |
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 = … | |
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 | |
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, … | |
![]() | 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 = … |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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. | |
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 … | |
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 | |
<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 … |
The End.