hi, i have installed XAMPP, but i would like to run my localhost from another computer..

Member Avatar
Member Avatar
+0 forum 10

I'm trying to count the vowels in a lengthy text, provided by a .txt file. I can successfully open the file and echo it out into the browser. What I can't seem to do is get my script to do the actual vowel counting and I'm not entirely sure why. I'm supposed to output the vowel count to a file that doesn't previously exist, but is referred to as "file_output1.txt". I'm not sure if this is what is causing the issue, if I'm not properly accessing the file to enable the count to occur, or if I made a syntax …

Member Avatar
Member Avatar
+0 forum 3

I want to protect my site from hacking. Currently I know about XSS and SQL injection. Do I need to use mysqli instead of mysql? And why? When should I use `htmlentities()` and `striptags()`? I also don't want users to upload melicious files and since I accept file uploading, is it enough to check file type? If not what can I do to prevent this? My website runs on PHP, is there anything else I should worry about?

Member Avatar
Member Avatar
+0 forum 6

I would like to fill in the empty spaces of a csv column and its in one column using phpexcel I have added a demo for your viewing: The flow check B2 is its not empty go the next B3 if B3 is empty take value from B2. Here is demo: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table width="200" border="1"> <tr> <td>Apple</td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td>Banna</td> </tr> <tr> <td>&nbsp;</td> </tr> </table> <p>&nbsp;</p> <p>The final outcome</p> <table width="200" border="1"> <tr> <td>Apple</td> </tr> …

Member Avatar
Member Avatar
+0 forum 4

Signup.php <form name="sign-up" method="post" action="process.php?action=sign-up"> <h3><span>Sign-Up</span></h3> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <thead> User Details </thead> <tr> <th scope="row">*User ID :</th> <td><label for="playerid"></label> <input type="text" name="playerid" id="playerid" required="required"></td> </tr> <tr> <th scope="row">*Name :</th> <td><label for="playername"></label> <input type="text" name="playername" id="playername" required="required"></td> </tr> <tr> <th scope="row">*Mobile Number :</th> <td><label for="playermob"></label> <input type="text" name="playermob" id="playermob" required="required"></td> </tr> <tr> <th scope="row">*E-Mail :</th> <td><label for="playermail"></label> <input type="text" name="playermail" id="playermail" required="required"></td> </tr> <tr> <th scope="row">Address :</th> <td><label for="playeraddress"></label> <textarea name="playeraddress" id="playeraddress" cols="45" rows="5"></textarea></td> </tr> <tr> <th scope="row">&nbsp;</th> <td><input type="submit" name="cancel" id="cancel" value="Cancel"> <input type="submit" name="submit" id="submit" value="Submit"></td> </tr> <tr> <th scope="row">&nbsp;</th> <td>&nbsp;</td> </tr> <tr> <th colspan="2" scope="row">&nbsp;</th> …

Member Avatar
Member Avatar
+0 forum 8

<html> <head></head> <link rel="stylesheet" type="text/css" href="style.css" <body> <?php $db = mysqli_connect('localhost', 'root', '', 'formdb'); $formId = ''; $LastName = ''; $FirstName = ''; $Email = ''; $Birthday = ''; $Birthplace = ''; $Comment = ''; if (isset($_GET['upd'])){ $formId = $_GET['upd']; $results = mysqli_query($db, "SELECT * FROM tbl_form WHERE formId=$formId"); } if(isset($_POST['submit'])) { $formId = $_POST['formId']; $LastName = $_POST['LastName']; $FirstName = $_POST['FirstName']; $Email = $_POST['Email']; $Birthday = $_POST['Birthday']; $Birthplace = $_POST['Birthplace']; $Comment = $_POST['Comment']; $query = "UPDATE tbl_form SET LastName='$LastName', FirstName='$FirstName', Email='$Email', Birthday='$Birthday', Birtplace='$Birthplace', Comment='$Comment' WHERE formId='$formId'"; mysqli_query($db, $query); $_SESSION['msg'] = "Successfully Updated!"; header('location: form.php'); //redirect after inserting } ?> <?php …

Member Avatar
Member Avatar
+0 forum 1

I am not that much of an expert in PHP as it has been few months since I started playing with it. Currently I am working on creating a basic CRUD operation in PHP. I follow this tutorial on CRUD in PHP (https://www.cloudways.com/blog/execute-crud-in-mysql-php/ ) to create it on a local wamp server. However, I am getting following error: Fatal error: Call to a member function fetch_array () on string in C: \ wamp \ www \ crud_oop \ index.php on line 233 Can anyone point out what I am doing wrong? Here is my full code: <div class="container"> <div style="height:50px;"></div> …

Member Avatar
Member Avatar
+0 forum 1

I have a Table that displays titled and first name columns and delete link on the 3rd column. Unfortunately for a reason i don't understand, records are not deleting when the Delete link is clicked. Please friends, help me figure out what's wrong here. Table <?php $user_id = $_SESSION["user_id"]; //brought here via session //select statement here // output data of each row while($row = $result->fetch_assoc()) { echo '<tr> <td scope="row">' . $row["titled"]. '</td> <td> '.$row["firstname"] .'</td> <td><a href="user_delete.php? delete=$row[user_id]">Delete</a> </td> </tr>'; } } else { echo "0 results"; } ?> user_delete.php code <?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . '/soap/includes/server.php'; if(isset($_GET["delete"]) ) …

Member Avatar
Member Avatar
+0 forum 2

Hello, I can't display images from database. I have folder called "images" next to index.php where I keep images. I suppose I have wrongly defined folder path with images or sth else. <?php $connection = new mysqli("localhost", "root", "", "crud"); $sql = "SELECT * FROM test"; $res = $connection->query($sql); if(@$res->num_rows > 0) { while($row = $res->fetch_assoc()) { ?> <img src="<?php "C:/xampp/htdocs/img_mysql/images/".$row['image'] ?>" style="width:170px;height:120px" /> <?php } } ?> I put picture with how look my website when I try display images. ![011.jpg](/attachments/large/4/cb5cff474c596085beba1a63f9b6c6b6.jpg "align-center")

Member Avatar
Member Avatar
+0 forum 3

Without going into each of the products pages and setting sidebar to appear on left, how can I code it into the woocomerce product single page using php? http://www.mabridalplus.com/?product_cat=bridal-wear

Member Avatar
Member Avatar
+0 forum 4

i am creating an app with android studio and i'm using mySQL.and i want to implement friends feature in my app to enable users send and recieve friend requests, i have created tables and writen the server side php code for that, i have also created an add as friend button that should do that in my app but i'm still unable to write the appropriate code for that in android.your help with this will be highly appreciated.

Member Avatar
Member Avatar
-2 forum 3

Hi All, I want to select specific drop down option to a selected post, for example the post is on Honda Fit, the the Drop Down should select Honda Fit automatically. The below code works fine but shows all posts instead of selecting specific to a post, e.g. select guid from wp_posts where guid='$_GET['guid'] and post_type='product' , I know it in a query logic but when i implement the query, the metabox just keeps loading and does nothing. Code responsible for fetching the drop down list: automotive_admin_help_message(__("This setting allows you to associate a WooCommerce product with a listing and show …

Member Avatar
+0 forum 0

Hi, I have an application which sends mail wen a new post is made in my blog.my blog is setup in local server using xampp.wen i send mail to a single address its working fine and wen i tried to send mail to multiple address i get an error saying that invalid address format in TO field.Below is the code i have used..plz help me out... [code] function authgMail($from, $namefrom, $to, $nameto, $subject, $message) { $smtpServer = "tls://smtp.gmail.com"; //does not accept STARTTLS $port = "465"; // try 587 if this fails $timeout = "45"; //typical timeout. try 45 for slow …

Member Avatar
Member Avatar
+0 forum 27

Hi, i have a plugin called wp deposits and a template called automotive, i need the client to be able to pay a non refundable fee of 5% which is working fine through wp deposits, the thing is wp deposit is picking price from woocommerce, i want it to pick from another table, or i want woocommerce to get products from another table e.g. the prices should come like, select price from another_table where guid=$_GET['guid']; EDIT: I am new to woocommerce, i have tried researching but havent gotten any resource to help,i went through almost all pages in woocommerce but …

Member Avatar
Member Avatar
+0 forum 4

I'm a newbie in php and I want to create a single login page for Admin and user.When admin log in it should go to an admin page and when user log it shoult go to index page.I want help with my code, it works fine login normal users but i try it addind the admin part and it doesn't seem to work .Please help and Thanks in advance .. This is my validation code for the login <?php if(!empty($_POST)){ if(isset($_POST["username"]) &&isset($_POST["password"])){ if($_POST["username"]!=""&&$_POST["password"]!=""){ include "conexion.php"; $user_=null; $sql1= "select * from user where (username=\"$_POST[username]\" or email=\"$_POST[username]\") and password=\"$_POST[password]\" "; $query = …

Member Avatar
Member Avatar
+0 forum 6

How to convert the Codeigniter code to normal HTML and PHP? Basically, I want to merge my older Codeigniter code with new HTML, CSS and PHP code.

Member Avatar
Member Avatar
+0 forum 1

I have a unix timestamp for each cooment in my database. I want to output the user date and time depending on their location, or timezone. How do I do that properly?

Member Avatar
Member Avatar
+0 forum 3

I've been trying to find places to sell scripts, it would be great if that info is shared with the community. Go ahead and make your contributions!

Member Avatar
Member Avatar
+0 forum 1

How to validate CSV file of only one column before getting uploaded

Member Avatar
Member Avatar
+0 forum 1

hi, I am stuck trying to figure out how to build a table to display agents names, (that I already have, mysql table etc...) but now I need to add columns dynamicaly. I need to add (programs in witch agents are enroled, and a status of the program ( in-progress, not-done, etc). The part that I can figure out is where would I save the status of the agent in the program. I have enroled-agents table: (id, name, email) displays a basic mysql-php-html table; then I have programs table: (id, name, description, avaiable-status) When i place them together, where how …

Member Avatar
Member Avatar
+0 forum 4

Hello, After searching over the internet how to secure a web application(forms) in PHP, in most of the cases were just suggestions not a short and real example. In some cases is suggested to use strip_tags( trim( $_POST['PARAMETER'] ) ); but when you have some special inputs like comments field htmlentities ( trim ( $_POST[ ‘comment’ ] ) , ENT_NOQUOTES ); is suggest. Maybe there is a useful example (custom made function) to achieve standard safe methods without introducing complicated libraries like HTMLPurifier into the application. Thank you for your time!

Member Avatar
Member Avatar
+0 forum 5

Hello, In my project I have a form with many inputs and one object is using DropzoneJS to attach files. Since I store all the inputs when I post the form I need somehow to read the file names of the uploaded files in my server, currently I can only get the list of the original filename of the files that are uploaded. For many reasons when a file is uploaded I am giving it a random name with time() function. A part of my HTML form <form id="appointment-form" class="box-body no-padding"> <input name="firstname" type="text" /> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 …

Member Avatar
Member Avatar
+1 forum 4

Hi 1.am able to run using XAMPP on PC. When i run from my board, am not getting proper data. I mean it is not fetching the file index_1.txt.html and index_1.txt file are available in same path in sd card. Anything wrong 2.Instead of using second argument with file name, is it possible to use as a function and call it in same file in below code xhttp.open("POST", "index_1.txt", true); Please suggest Thanks and Regards Rizwan Syed

Member Avatar
Member Avatar
+0 forum 2

I have a database of pictures, and votes. The pictures database has up_votes and down_votes culomns. I want to create a system using MySQL to get hot and trending pictures just like 9Gag. How can I do that?

Member Avatar
Member Avatar
+0 forum 13

I send payments to my users regularly. But sometimes the user enter a PayPal email address that cannot receive money from other PayPal users. They just can receive money from their website. How can I check for this and show an error to the user? Do I need to use PayPal IPN, or API? And how?

Member Avatar
+0 forum 0

Hello everyone, I used in my htlm/php page the code of site where the data is showed in this part.: <div class="row" id="records"><div class="col-sm-4" id="emp_id"></div> The value what that script gets from my database is put in id="emp_id". Now my question is as next. Is it possible to put id="emp_id" into a php variable? So i also can read that into the rest of my vars ike here? foreach ($_POST as $key => $val) $_SESSION[$key] = $val;

Member Avatar
Member Avatar
+0 forum 5

can anyone let me know what the wrong thing here as i am not able to add subcategories to category <div class="col-lg-4 mx-md-auto paper-card"> <?php if ( isset( $_POST[ 'submit' ] ) ) { if ( empty( $_POST[ 'subcat' ] ) ) { echo '<span style="color: red;"> Please Fill in the Category Name</span> '; } else { $subcat =clean($_POST[ 'subcat' ]); $query = "insert into subcategory values ('','$_POST[cat]','$subcat')"; $result = mysqli_query( $con, $query ); if ( $result ) { echo '<span style="color: green;">Category Added Successfully</span>'; } else { echo ' Please Check Your Query '; } } } ?> <form …

Member Avatar
Member Avatar
+0 forum 10

I have a table called `volume_issue` that looks like this: +----+-------------------------------------------------------+-----------------+-----------+---------------------+ | id | url | journal_title | issn | volume_issue | +----+-------------------------------------------------------+-----------------+-----------+---------------------+ | 1 | https://www.ajol.info/index.php/asan/issue/view/17048 | Africa Sanguine | 1560-8646 | Vol 19, No 2 (2018) | | 2 | https://www.ajol.info/index.php/asan/issue/view/16693 | Africa Sanguine | 1560-8646 | Vol 19, No 1 (2017) | +----+-------------------------------------------------------+-----------------+-----------+---------------------+ I am trying to extract all records associated with the urls listed in the variable url and insert them in a table known as `citations`. The code i am using to do this lookw like this: <?php $query1 = "SELECT * FROM volume_issue where …

Member Avatar
Member Avatar
+0 forum 10

$query = "SELECT SUM(amount) FROM income_daily"; $sum = mysqli_fetch_row(mysqli_query($con, $query)); echo "Total Income : ". "¢" .$sum[0]; echo '<br>'; echo '-'; echo '<br>'; $query1 = "SELECT SUM(amount) FROM expenses_daily"; $sum = mysqli_fetch_row(mysqli_query($con, $query)); echo "Total Expenses : ". "¢" .$sum[0];

Member Avatar
Member Avatar
+0 forum 1

Can you help me to programe a window pop up in my site say in it write your email which code should i use in html and javascript

Member Avatar
Member Avatar
+0 forum 2

The End.