39,320 Topics
| |
I want to view records based on the selected drop down value so I used sql query with WHERE clause. When I echo that query, it is fetching the drop down value which I selects but it isn't showing me the records in the table. When I give the values … | |
Hi how do i automate data sharing or airtime using php. E.g i want a third party to able to share my airtime or data from my website. For instance if i dial *600*mobileno*amount*my secret pin# will automatically share my airtime with d owner of this mobile number. So my … | |
Want to check function source code using eclipse. Help pls I'm curious on how certain php functions are implemented internally. e.g. array_values(). So in eclipse, I control click on the function name, which took me to a page that contain function prototype definition,[ ](http://offingapp.com/)but contains no internal source code. ![eexm.png](/attachments/large/4/b25980a2e0f3d1b4e7d405a10afc23c2.png … | |
hi I have a login form, when i tried to login i got this two errors: **Notice: Undefined index: username in C:\wamp64\www\FormTutorial\php\luana_login.php on line 6** ** Notice: Undefined index: password in C:\wamp64\www\FormTutorial\php\luana_login.php on line 7 ** I have been busting my head to figure out how to solve it so … | |
Hi DW. Today just came across with something I didn't know of and it may be easy to someone else who had workded with it or had came across it. Look at this example code snippet: $a = '1'; $b = &$a; $b = "2$b"; echo $a. ", " .$b … | |
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 … | |
Hello, I Am Building a web application.How can i implement sms service in my website?? Please show me some references..and guidence please.. | |
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, … | |
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 … |
The End.