39,326 Topics
| |
Hello, Here is my problem: I have copied a web site onto my development server. All the images and files are called using absolute paths, for example: <img src="/images/picture.jpg" /> So it's trying to do this: [url]http://www.localhost.com/images/pictures.jpg[/url] When I want it is actually suppose to do this: [url]http://www.localhost.com/client/folder/images/pictures.jpg[/url] How do … | |
$ct is my array: array(4) { ["a"]=> int(1) ["b"]=> int(2) ["z"]=> int(2) ["c"]=> int(1) } I need to put it in a two column database where "item" is col1 and "count" is col2 where the first row has an "a" in col1 and 1 in col2, 2nd row has a … | |
Hello! I have been searching for a good solution all morning but can't seem to get one! I'm trying to create a form that sends to a different set of email addresses based on what is selected in a drop down menu. While I can make this happen, I need … | |
Hello. I was wondering how a simple script would look like if a user would to search a term and there would be suggested results from other users or suggested results from similar searches? Thanks | |
I am super new at coding PHP, and ive gotten this to work in the past, but for some reason it isn't working now. Can someone tell me what im doing wrong. Thank you so much in advance! [CODE]<?php $email = $_POST['email']; $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $addressone = … | |
I keep getting the following syntax error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\xampp\htdocs\xampp\getFriends.php on line 26 I'm hoping some fresh eyeballs on this will help. I've been puzzling through it for the better part of the day and I'll be doggone if I can … | |
I am new to PHP and I have an application that is suppose to take 6 pieces of information and insert it into the table. I essentially have this application working but the issue that I am running into is that when I select multiple checkboxes it will only insert … | |
Hello DaniWeb, I was wondering how I can have a server status in the Title bar. Such as: (Website name) - Server is online! or (Site Name) Server is offline! | |
Hi guys . I need your help . I want to open a powerpoint file on my website but i dont want it to be downloaded so please tell me any way that i can use to open my powerpoint presentartion | |
These are my 2 pages index.php:- [CODE]<?php session_start(); ?> <html> <head> <title>Enter Your Name</title> </head> <body> <form action="hello.php" method="post"> Wat's U'r name : <input type="text" name="name"/> <br/> <input type="submit" value="Next"/> </form> </body> </html>[/CODE] hello.php:- [CODE]<?php session_start() ?> <html> <head> <title>Hey <?php echo $name; ?></title> </head> <body> <?php $_SESSION['name'] = $_POST['name']; … | |
Hello, Im an intern at a company.I've been asked to test different open source PHP-based help desk softwares and submit a report on a free alternative to a commercial solution. The report should compare at leaste two popular such softwares(according to me). How do i test such a software and … | |
Hello, I'm having issues with my Boonex 7 community the error im getting is.. PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/Target01/326394/463756/www.handycappedsingles.us/web/content/langs/lang-en.php:1) in /mnt/Target01/326394/463756/www.handycappedsingles.us/web/content/inc/classes/BxDolSession.php on line 61 PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/Target01/326394/463756/www.handycappedsingles.us/web/content/langs/lang-en.php:1) in … | |
Hi , I have 5 quries, each query showing expense of different category. like Lease,Diesel,Security,Electricity, Maintenance. 3 quries using 6 tables and 2 quries using 2 tables means 6 tables used in total. Now I want To Show Expense Using one query so I can Get complete Sum of Expenses. … | |
Hi, I am using UNION ALL to get Sum of expense of different categories from various tables. Now I got Site against their Sum of expenses but When I make this query as table(tbl2) ans select site,Max(Expense) from tbl2 it shows correct Max(Expense) but first Site id of tbl2. Here … | |
Hello. I'm new to php and I'm just getting my foot wet. But I've been going through lots of tutorial and I was looking into this google tutorial: [url]http://code.google.com/apis/maps/articles/phpsqlsearch.html#findnearsql[/url] and its what I wanted it to do. Calculate a nearby store locator. But I was curious about how to modify … | |
hi, how find in text only one image? [CODE=php]$text = 'text text <img src = "http://physics.unl.edu/dept/directories/images/gradpics/Cat.jpg" /> text text <img src = "www.url.com/image.gif" />'; preg_match_all('#http:[^<\s>]+[.](gif|png|jpe?g)#i', $text, $all_img); print_r($all_img);[/CODE] | |
i have this in a loop and a form so the variable changes. i have the word printed next to the checkbox. On the page the form directs to, how do i get the $varibles that have been clicked on. [code]echo "<td align='left' width='110'>$topic<input type='checkbox' name='$topic' value='No' /> </td> </tr></table></td>";[/code] | |
Is it possible to show the last selected value from the drop down list box after form reload? | |
hi! i have problem with this rmdir. How can i remove the directory and the image inside of my dir? this is my PHP code: [CODE] $dir="image/"; $arr=array(1=>"pig.jpg",2=>"animal.jpg"); $x=0; while($x<2) { if(unlink($dir.$arr[$x])) echo "success"; else echo "failed"; } rmdir($dir); [/CODE] but when i run the error occur. [B]Warning: the directory … | |
Hi , I want to convert numbers into words. Can anyone please help me to do that or how can i implement it in PHP codes pls tell me that. | |
Hi guys... ahm im new in php. i really need help with this.. i am making a exam system. i want to put a time limit to my exam page like 20mins and when the user still dont click the next button and the limit reach. it will automatically refresh … | |
Hi, I keep getting this error when filling out my form and calling process.php: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/waterfor/public_html/process.php on line 1 all I did was move around some of the variable names in the php code. It was working fine just a second before that. Here … | |
Hi, I am currently making my own template for wordpress and I am using someone elses template as a reference. I came across this code: [CODE]thesis_head::build();[/CODE] I don't know what this code means ? What is :: for ? Cheers, Vishal | |
Hello guys this forum helped me alone for completing my projects that is y i am going to post one article hope you like it......... 1->create an excel sheet and enter data in that then at the time of saving saving it as a csv format and below is the … | |
Hi there, I am trying to use a login and a contact form on one page, but im struggling with the php context [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>my webpage</title> </head> <body> <?php $user = 'admin'; $pass = 'admin'; if ($user != $_POST['username'] … | |
[CODE]<?php $username="root"; $password=""; $database="kuhadate"; mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM `ddate` WHERE 1 LIMIT 0 , 30"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) ?> <input name = "date" value="<?php echo $row['date']; ?>" type="text" /> [B]<input name = "month" value="" type="text" /> <input … | |
[I]hi... I am getting an error:"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.1989)' at line 1" please help me removing the errror[/I] [code]<?php include "functions.php"; ?> <html> <head> <title> Register Form </title> … | |
I've got a big problem on my site i'm developing. I have a pretty simple session login script, and every page of my site checks to see if the person is logged in. If not, it redirects them to login.php. I've noticed that when I click links on my menu … | |
Title: Comparing arrays Hello I am having a problem getting the difference between two arrays. The first array $list has all codes that can be linked to a specific id The second array $exist has the values select and linked to a specfic id. Both arrays are storing integers array … | |
Hello, I have a script that works great, basically i have a mysql database that contains information about files; like filename, description, size etc. The information is displayed on a webpage in a nice formatted table. each file has a link next to it and once pressed the script below … |
The End.