39,388 Topics
![]() | |
Greetz to you all Well i have an array that contain some characters and i want to check if they form part of a string.If yes then they should be deleted How to do this via php For e.g $string = 'Dani.web'; $charRemove = array('.','-','~','#','!','(',')','+',','); I want to get a … ![]() | |
Hi there , can anyone tell me easy way to change ""session_save_path("/home/users/web/b1580/glo.uniquelb/cgi-bin/tmp");"" to different session_save_path("/home/XXXX/public_html/cgi-bin/tmp"); there are over 200 files and i dont want to go through each file manually .. any help will be appereciated. | |
I have a "New Employee" script, that when you enter the details it creates a folder according to their username, using mkdir, this all works fine, I now have managed to import 200 entries into my DB from a spreadsheet, but I need to create a folder for all the … | |
Hi, I'm developing a Stock website , What i need when ever i add any product in the list , their seperate page automatically created, Currently i use session or query string for that , what it load all the product on the same page ... which means my site … | |
hello, i want to ask something about building a great website. i want to build a web startup,in local of course, but i dont know what programming language to use.. For example i want to build a site that looks like booking.com. please let me know what programming language to … | |
![]() | Hi I'm just learning the date() function. I'm trying create a `Daylight Savings` I used `$todayDate = date("D-m-d-Y-T-a");` because I am going to run it that day. For example: `Daylight Savings is on Sunday, November 4, 2012, 2:00am.` My issue is that once I run the code my answer is … |
Hello guys, is there any way to display variables from highest to lowest **without storing them into an array**? For example i got multiple variables *$numone = 500; $numtwo = 600; $ numthree = 700;* and i want to display it out base on their value. Any help is much … | |
hi everyone got an issue trying to get certain results from a list generated from a database.. ill try and set the scenario basically i want the same thing as the left hand menu here https://www.elance.com/r/jobs/cat-design-multimedia/ ...if you notice at the sides of the categorys theres a value of how … ![]() | |
I am trying to send a email everytime a customer sign-up using my form. I want the email to work in the background. I have created a mysql database and set the form/webpage. How would I go about making this. Is there a way to send a email in the … ![]() | |
Wordpress Site regularly getting injected by codes, which is throwing following error in browser Parse error: syntax error, unexpected '}' in /home/client/public_html/design/wp-includes/functions.php on line 3753 Multiple sites are having these problems - is this a Virus injected in Wordpress? Anyone facing similar problems ? can you suggest how to make … | |
hi team ... I am bachelor student i have required new web based project ideas for my final year project. I need some help.. | |
I have two tables that are the same. One stores info for the offense and a second for a defense. $sql = mysql_query("SELECT player FROM offense GROUP BY player UNION SELECT player FROM defense GROUP BY player"); while ($row = mysql_fetch_array($sql)) { $player = ($row['player']); echo "$player<br>"; } The problem … | |
Hi Im having a go at this, but not good on the php thing, thats why im hoping you can help. I am trying to set up a jump script from one I have used for 1 or 2 urls, now I have a database of around 500000 lines, each … | |
This could be a PHP issue or a linux issue. My form uses the following code to allow users to upload their banner and worked fine on my old server: if ($_FILES["banner"]["name"]!="") { $folder_path = "images/server_banners/"; $myfileext=substr($_FILES["banner"]["name"], - 4,4); $banner_file_path=$username."-".$server_id.$myfileext; $file_path = $folder_path.$banner_file_path; if (file_exists($file_path)) { unlink($file_path); move_uploaded_file($_FILES["banner"]["tmp_name"],$file_path); } else … | |
hai everyone! now add a product details is successfully in my table.and add,update,delete is also worked successfully.suppose i want to see product details added for which date and time. <!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=iso-8859-1" /> <title>Books</title> </head> <body> <form method="post"> … | |
i have a php application where users can apply for a bonus. but there is a confirmation page before the bonus redemption code runs. the issue is that in IE, if you hit f5 right after you click the continue button, the confirmation page refreshes while the bonus redemption code … | |
Basicly I try to send values to a PHP Server and read out returned information I get from the Server. The PHP code is not the problem. My Problem is I don't know how I can send values with C++. I don't have any code yet because I don't know … | |
I am delving into trying to understanding how the MVC structure works. I am following a [tutorial](http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/) and a little bit down the page where is is explaining the Controller class and how it initiates the Model and View there is some code there that does not quite look right … | |
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a1039476/public_html/getdetails.php on line 69 help <form action="getdetails.php" method="post"> Search Within: <select name="searchtype"> <option value="CustomerID">Customer ID</option> <option value="CustomerName">Customer Name</option> </select> Search Record: <input name="searchterm" type=”"text" size="20"/> <input type="submit" name="submit" value="Search"/> </form> <?PHP echo "<title> *********** </title>"; $searchtype=$_POST['searchtype']; $searchterm=trim($_POST['searchterm']); if … | |
Below i made a MySQL Table in my phpmyadmin. [Click Here for a screenshot of my phpmyadmin table](http://i.stack.imgur.com/7gl77.jpg) I want to print on my php page the cat_name of a cat_id of my choosing. What code would i use exactly for that? I am looking at this guide here But … ![]() | |
Hi guys! I don't know if i post it in the right forum page, but I would like to ask if it's possible to put color on the last row of your table (LAST ROW ONLY). the data is from SQL. I would appericiate any references or links, snippets, anything! … ![]() | |
onload mysql 'query' will be executed then if the visitor will hit search the mysql 'querysearch' will be executed how to do that? <form action="default.php" method="post"> Search Within: <select name="searchtype"> <option value="CustomerID">Customer ID</option> <option value="CustomerName">Customer Name</option> </select> Search Record: <input name="searchterm" type=”"text" size="20"/> <input type="submit" name="submit" value="Search"/> </form> $searchtype=$_POST['searchtype']; $searchterm=trim($_POST['searchterm']); … ![]() | |
I have a form and a csv file. The inputs go into the csv quite well but for some odd reason, they display in one row... why is that? I want multiple rows per submission... PHP: <?php $fn = $_POST['fn']; $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $comments … ![]() | |
Hey everyone, I'm having trouble to get this code to work as I wanted. My application is running on the top jQuery for mobile framework. The message I'm getting is this "undefined". I enter the right username and password but don't know what is undefined. <?php include('funcs/connector.php'); $port = new … | |
Hello All, I will really appreciate it if someone can help me out with this. I am currently designing this website www.tasktigers.co.uk. The site seats well on my computer screen but not others or the site owner device. When you view it with a mobile device like the iPhone and … | |
hi all below is my profile.php <?php $host="localhost"; $username="root"; $password=""; $db_name="spl"; $tbl_name="registration"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $Username = $_SESSION['Username']; $result3 = mysql_query("SELECT * FROM registration where Username='$Username'"); while($row3 = mysql_fetch_array($result3)) { $Name=$row3['Name']; $Age=$row3['Age']; $Mobilenumber=$row3['Mobilenumber']; $Address=$row3['Address']; $Username=$row3['Username']; $Password=$row3['Password']; } ?> <table width="398" border="0" align="center" cellpadding="0"> <tr> … ![]() | |
I'm developing a website, so when a user hits a button the following sample sql code is run. This is for registeration and basically meant to take information entered in a form and save it. BEGIN TRAN *sql code* *sql code* COMMITT TRAN BEGIN TRAN *sql code* COMMITT TRAN IF … ![]() | |
I need to send newsletters say to 20,000 email IDs, but in batches and I am very new to this mail sending process so I got stuck at the beginning only. I have my mail server is a shared server, so I have the limit say 100 emails per hour, … | |
Hello there, I need help to create simple rank system 1st thing I need is how to number the players in my database from 1 to ...... so if I create multipage in each page there is the actual rank for them 2nd : I need to create change indecator … | |
Hello PHP geniuses! I am a beginner in php and would like to seek your expert advices and knowledge. When I display the result to a table, it always loop at the bottom, I want to display the another table at the right side of the first table. When I … ![]() |
The End.