39,320 Topics
| |
| [CODE]$book = simplexml_load_string($data);[/CODE] i have parsed xml string ($data) with simplexml_load_string function i get below output by printing $book now i want to assign this data to php variables like $ip_address, $ip_type;$organization etc .. .. so how to assign [ICODE]SimpleXMLElement Object ( [ip_address] => 69.72.129.3 [ip_type] => Mapped [Network] => … |
Hi all, hope I can get some help. I am very very new to PHP so bare with me. I am doing a system that has information about cars. My drop downs are populated with MySQL data (working ok) I want to have one drop down for Make of car, … | |
[CODE] RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 [/CODE] my url = localhost/mvc/ i work on windows in xampp i have a problem when i go to my url /404 i thinks i am on localhost/ so it redirects me to localhost/xampp/splash.php but it … | |
can i check is there anything wrong with my if else, if seems like it will only go banktransfer.php instead. [CODE] if ($_POST[Payment] = "Bank Transfer") { $btpage = "banktransfer.php"; echo '<script language="javascript" type="text/javascript">window.location.href="'.$btpage.'";</script>'; } else if ($_POST[Payment] = "Credit Card") { $ccpage = "creditcard.php"; echo '<script language="javascript" type="text/javascript">window.location.href="'.$ccpage.'";</script>'; } … | |
I've been working on some code for a while, and it seems that I have a problem at the moment. The code, to me, looks correct and should work, but while trying to use PEAR to send mail out, it's throwing this error: PHP Parse error: syntax error, unexpected T_STRING … | |
I have three problems i would like help with. ONE: Assume a database called "vote" with table "president", the table has four tuples at the moment. I was hoping to have all the tuples printed on screen but i only get from the second tuple; the first row is not … | |
Hello Everyone, I have one site and i want to add one php script for remote upload script. So that i can upload files from direct links to my site without using my bandwidth. If anyone know please help me. Thanks. | |
Hi All, I have an image upload that works for my requirements - But what I am unable to figure out is how to rename the image to the datatime stamp and to keep the file extension .jpg / .png / .gif / .jpeg etc I have a variable $datetime … | |
I have a time stored in table 8:00AM-9:30AM TTH . I want to check time range, if user selected 9:00am-10:30am Thursday comes in between time 8:00AM -9:30AM TTH? How to trap it out in php. Time is stored in table as below Time Day 8:00AM -9:30AM TTH 10:30AM -12:00PM MW … | |
| [CODE]include ("config.php"); // select data from database $w3db = mysql_query( "SELECT * FROM w3dbx" ) or die("SELECT Error: ".mysql_error()); $worth = mysql_query( "SELECT * FROM worth" ) or die("SELECT Error: ".mysql_error()); $w3db_rows = mysql_query($w3db); $worth_rows = mysql_query($worth); // fetching data //while ($get_infox = mysql_fetch_assoc($resultx) && $get_info = mysql_fetch_assoc($result)) while ($get_w3db … |
Hi all, I have this PHP script (for a HTML form) which I would like to a) check if a checkbox is checked, and then b) if it is, to check some text fields for input. If the checkbox is not checked, these fields do not need to be checked. … | |
Hi all how i can put a watermark on a HTML div?? | |
Good afternoon, This may sound like a silly question but could someone explain how to make an SSL certificate work? I have a website that I completed (almost), and everything works just fine... Had an SSL certificate installed yesterday, and everything looks exactly the same. How do you make the … | |
Hello. I am working on an auction site using the webid auction script. This is open source and allows for mods. I have several mods to make, and am looking to hire someone to do the mods for me. I am only able to follow a certain budget and jobs … | |
I want to refresh only a certain part of a php code. i have [url]http://www.daparadise.com/profile.php?id=11[/url] that page as my users profile. And only want to show 5 videos at a time. But if they have more then 5 videos i want it to ONLY refresh that part to the next … | |
For a couple of months now I've been working on a community website; however I haven't got past the registaration because MYSQL can't connect to my HTML and PHP codes.Also my laptop treats .PHP documents as text documents and I can't open them, is this related? Thanks in advance :D. | |
Hello! On my website I'm looking to create a dynamic HTML table from the contents of a MySQL database. I have no idea how many rows there will be, and I need it to look a bit like an iPhone home screen. Here is some code: v1: // Make a … | |
Hello, I keep getting no matter what I do the same error from file index.php [B]Parse error[/B]: parse error, unexpected T_STRING in [B]/home/httpd/vhosts/carpediemmexico.com/httpdocs/index.php[/B] on line [B]12[/B] This is my error file, I am sure your eyes will find the solution. Thanks... You are the best :) [code=php]<?PHPinclude('carpediemlib.php');If(!Isset($_GET['Xlenguaje'])){$Xlenguaje="en";}Else{$Xlenguaje=$_GET['Xlenguaje'];}?> <html> <head> <meta … | |
I was browsing a MySql database using phpMyAdmin and I have probably inadverdently changed a setting. I have a field which contains quite large text entries. Before this problem arose the display showed just a few words of the text entry followed by a "...". Now the display shows the … | |
Just wanted to introduce myself. I worked at Microsoft and Amazon.com, amongst other companies in various capacities. I now recruit for a really, really cool company. • 22 developers • 80 gigabits/sec video streaming • 600 million PHP requests/day • 35 million uniques...day! • 10 million registered users We are … | |
Hello I Need Something In My Text Area Field When Someone Click On {{ Enter }} It Put A Break Line Between Rows Like Any Editors i Was Using Ckeditor But All I Need Is Break-line Between Rows Example When I Write I Love Daniweb I Respect Daniweb Members I … | |
Hi, I'm currently working on a school project ..i was wondering if someone can help, i'm creating a system which get's data from a database and creates a CSV file ..i Google a lot none of it helps, i want to get several rows from a table and write it … | |
Hi Everyone, I have been trying to understand mysql a little further - with some small steps in the right direction. but I have come across a problem I am unable to fix / get working. I have a form, that has a variable $country - I am trying to … | |
Hi all, I came to think of something in my code, which might cause a problem, but I am not sure. After a user of the site has succesfully put a product in the shopping cart - I set a session['cart_succes'] = 'something'; - to display to the customer (after … | |
My question is that first i need to create the 10 checkboxes which i have already done and then when i set the value of any of the checkboxes as checked, it should be saved in a session after clicking on the submit button.After clicking on the submit button the … | |
I have all passwords stored in my database in md5 form. when people log in it always says Email or Password wrong, well thats the error i added when something's wrong, I am pretty sure the email and password are right. here is my login code: [CODE] $emailin=$_POST['emailin']; $passwordin= md5($_POST['passwordin']); … | |
[CODE] if ($_POST) { echo "You chose ", $_POST; } else { $families = array ("Peter Griffin","Lois Griffin","Chris Griffin","Meg Griffin","Stewie Griffin") ; echo '<form name="families" method="post" action="index.php"><select name="family">'; foreach ($families as $family) { echo '<option value="' . $family . '">' . $family . '</option>'; } echo '<input type="submit">' ; echo … | |
Hi, I have stuck on text animation for web design.. [url]www.byouinternational.com[/url] I want the text on the main page (enter site) can animate when I hover to the text, the animation is like the entersite text slide to the right, and then dissapear, and then appear from left side, back … | |
I am a web designer, with no experience in programming. I want to learn how to program a submit form, since that something that many clients want on thier websites. Can someone please give me a link to an easy to understand tutorial on how to do this? Thanks! | |
So I've got this piece of code: [CODE=php] /* BEGIN ZENDINGEN */ $zendingheader = mysql_query("SELECT z.ID, z.Bestemming, z.Datum, m.Aantal_Duiven, s.Aantal_Manden FROM Shipments AS s JOIN Zendingen AS z ON s.Zending_ID = z.ID JOIN Manden AS m ON s.Mand_ID = m.ID WHERE z.Actief = 1 order by s.Aantal_Manden, m.Aantal_Duiven ASC LIMIT … |
The End.