39,323 Topics

Member Avatar for
Member Avatar for porkchop970

Hello, I would like to ask the way to change [url]http://abc.com.hk/article.php?product=1&side=2[/url] to [url]http://abc.com.hk/article/1/2[/url] I just write in .htaccess as below: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php It works only for this link: [url]http://abc.com.hk/article[/url], but not valid for [url]http://abc.com.hk/article/1/2[/url]

Member Avatar for vaultdweller123
0
202
Member Avatar for aodpreacher

Hi i am currently a Computer Science undergrad and i was just doing some thinking for a Master degree. I like software and web development and i am leaning towards more of a web development specific for my masters but what are the options i have for trying to get …

Member Avatar for bjelline
0
295
Member Avatar for Jdsiteworks

[CODE] <?php # Script 16.6 - register.php // This is the registration page for the site. require_once ('includes/config.inc.php'); $page_title = 'Register'; include ('includes/header.html'); if (isset($_POST['submitted'])) { // Handle the form. require_once (MYSQL); // Trim all the incoming data: $trimmed = array_map('trim', $_POST); // Assume invalid values: $fn = $ln = …

Member Avatar for vaultdweller123
0
310
Member Avatar for nova37

[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] => …

Member Avatar for jkon
0
114
Member Avatar for lowtekotc

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, …

Member Avatar for lowtekotc
0
239
Member Avatar for perfectweb

[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 …

Member Avatar for blocblue
0
306
Member Avatar for issaru07

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>'; } …

Member Avatar for almostbob
0
2K
Member Avatar for jrcampbell

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 …

Member Avatar for jrcampbell
0
213
Member Avatar for liphoso

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 …

Member Avatar for broj1
0
118
Member Avatar for technoknol

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.

Member Avatar for diafol
0
53
Member Avatar for DaveyMoyes

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 …

Member Avatar for diafol
0
205
Member Avatar for israillaky

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 …

Member Avatar for israillaky
0
632
Member Avatar for nova37

[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 …

Member Avatar for nova37
0
108
Member Avatar for phillyt

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. …

Member Avatar for phillyt
0
160
Member Avatar for baig772
Member Avatar for showman13

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 …

Member Avatar for pritaeas
0
131
Member Avatar for Tristan2036

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 …

Member Avatar for pritaeas
0
70
Member Avatar for zacharysr

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 …

Member Avatar for diafol
0
117
Member Avatar for frrf

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.

Member Avatar for smantscheff
0
166
Member Avatar for jsa005

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 …

Member Avatar for diafol
0
1K
Member Avatar for coderando

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 …

Member Avatar for thriftgirl62
0
262
Member Avatar for facarroll

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 …

Member Avatar for simplypixie
0
129
Member Avatar for mbrand

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 …

0
159
Member Avatar for -==Zero==-

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 …

Member Avatar for diafol
0
110
Member Avatar for cigoL..:)

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 …

Member Avatar for cigoL..:)
0
672
Member Avatar for DaveyMoyes

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 …

Member Avatar for DaveyMoyes
0
255
Member Avatar for klemme

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 …

Member Avatar for klemme
0
216
Member Avatar for jacksantho

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 …

Member Avatar for diafol
0
129
Member Avatar for Aser Gado

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']); …

Member Avatar for diafol
0
140
Member Avatar for QuaminaIT

[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 …

Member Avatar for QuaminaIT
0
123

The End.