38,019 Topics
|
|
[CODE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /products.php?brandid=27&pname=$1 [NC] [/CODE] The above works only for branid=27 and If I include mutilple statements, LIKE [CODE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /products.php?brandid=27&pname=$1 [NC] RewriteRule ^(.*)$ /products.php?brandid=42&pname=$1 [NC] RewriteRule ^(.*)$ /products.php?brandid=47&pname=$1 [NC] [/CODE] it will also run for … |
|
Hi all, According to my project, if a customer opens an account he should be able to deposit or withdraw cash. This is my table structure. [B]account_details[/B] (account_number, nic, full_name, name_with_initials, phone_number, address, gender, date_of_birth) [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest) [B]transaction[/B] (tran_id, transaction_type, from_account, to_account, transaction_amount, transaction_date) I want … |
|
i m suffering with the following error Warning: oci_connect() [function.oci-connect]: ORA-01017: invalid username/password; logon denied in C:\wamp\www\New Folder\connection.php on line 4 but i've tried atleast 100 times, username and passwords both r correct $conn=oci_connect("sysdba", "hammad90", ""); is thr any problem in the above code? |
|
Hi, I have a problem related to BACK button in browsers. In [U]very first page[/U] my basket shows "0 item". I go to [U]next page[/U] to add one item to basket and it shows "1 item" in [U]current page[/U]. If I hit BACK button in browser to go back to … |
|
Hi,I want to retain value of checkbox,when some validation error occours. In this i am calling a function checkCheckBoxes() & want to call this function when validation error occours. [CODE]<input type="checkbox" name="chk1" onclick='checkCheckBoxes() <?php if (isset($_POST['chk1'])) echo ' checked="checked"'; ?>'/>check for Birth year only [/CODE] function [CODE]function checkCheckBoxes() { if(document.myform.chk1.checked) … |
|
I'm having trouble with this php mail code. I'm not sure if I altered it on accident with I copied and pasted it from other sites i've worked on. It send the email however its blank, it only shows: Name: Phone: Email: Description: HTML code [CODE] <DIV style=" background-image: url(background.png);position: … |
|
[CODE]<form action="" method="get" name="form"> </form><select name="list1"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <select name="list2"> <option value="MUM">MUM</option> <option value="DEL">DEL</option> <option value="BAN">KOL</option> <option value="HYD">HYD</option> </select> <input name="code" type="text" />[/CODE] In above code there two list boxes . I want to show ,if I select MUM from 1st list box … |
|
Please look in the attachment. The first chart shows the score vs contestant images(score wise ordered) graph generated simply using php. BUT i need the second chart (bottom 1) where chart does not proceed down but only those images of contestants are brought to next line which are relatively very … |
|
Hi Guys, I have a question about PHP and Ajax/Javascript SetInterval. Im working on an application that users will be able to subscribe to and I want an email sent to them after !exactly 24 hrs. The only way that I could think of doing something like this is by … |
|
Hi Frendz, In my vehicle tracking system, I have got the latitude and longitude points of the vehicle for every 30 secs while the vehicle moving. Now i need to get the report of the vehicles when it crosses from one state to another state and one district to another … |
|
Hi,I want to retain the selected value of dropdown list during validation check. Need suggestion. [CODE]<select name="year_nam" id="year_nam"> <?php for($yr_nam=1950; $yr_nam<=2020; $yr_nam++) echo "<option value=\"$yr_nam\">$yr_nam</option>"; ?> </select> [/CODE] |
|
Hi all, I am posting this thread to learn a bit of how mod_rewrite works. I want to specificly learn to make dynamic urls from websites, become seo friendly: [B]MADE UP LINK, DONT FOLLOW[/B] [url]www.sitename.php/index.php?sid=2&pid=231[/url] [B]MADE UP LINK, DONT FOLLOW[/B] look like: [url]www.sitename/furnitures/sofas[/url] And learn how to prevent duplicate content … |
|
Alright so whatever i do i cant get this to work. Now...im not a wizzard or anything but why does it have to be so damn hard to find out if its more than 2 minutes or more in difference by the time in database to now. The "timed" in … |
|
Hello Guys! :) I am just wondering how I would be able to echo a random [B]hour[/B] timestamp. Any help would be appreciated! Yours, Public-Image |
|
Hi everyone! I'm trying to add the class="" to an image tag in php but I can't make it work. The code is this: [code] echo "<td width=\"$columnWidth%\" align=\"center\"><a href=\"$url\"><img class="pImageCenter" src=\"$image\" border=\"1\" /><br>$name</a></td>\r\n"; [/code] Help please |
|
Hi, I am new to php development! I have email table in my database which has email records. On the page read_emails.php, i have two buttons, one is of Reply and second is of Delete. My delete button is not deleting the email record in the database.[B] Please help me … |
|
hello all. i have this simple script to send emails to my subscribers. i've broken the sending into 20 emails per batch to get around getting a timeout error in my browser. without bias from using PEAR in sending multiple emails, any comments to improve the code will be appreciated. … |
|
Hi all.. I've learnt a bit of html and css in the last week, and am eager to start with more complex website actions than simply posting widgets.. For instance, allowing comments to be made and feedback etc.. I was wondering whether PHP is a good place to start for … |
|
I wrote a regular expression for [url]www.servicesonclick.com/products.php?brandid=27&pname=Acer[/url] that redirects to [url]http://www.servicesonclick.com/Acer[/url] and similar to [url]www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte[/url] also redirects to [url]http://www.servicesonclick.com/Gigabyte[/url] and so on but its not working.. I dont want to retain brandid only retain pname. Here it is the [CODE] Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^servicesonclick\.com$ [NC] RewriteRule ^(.*)$ … |
|
Hello at update form i have upload file and i want if it have value does not change I used this code to upload at insert form [CODE]$lfile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo"file uploaded" } else{ echo "There … |
|
Dear experts! I want to following Technical Questions help. [B]Q1) Technical Questions [/B] a) In vbulletin where is the code to edit how items are displayed? b) Write, in pseudocode or PHP, a small program that calculates the sum of the first 540 natural numbers. Start numbering from 0. C) … |
|
Can someone tell me wy image/png dos not workinig in IE Her i have the code [CODE]<?php session_start(); if(!session_is_registered(myusername)) { header("location:../../../weinachtfeier.php"); } ?> <body bgcolor="blue"> <?php if (isset($_POST['senden'])) { if($_FILES['cover']['size'] === 0 || empty($_FILES['cover']['tmp_name']) || $_FILES['pic']['size'] === 0 || empty($_FILES['pic']['tmp_name'])) { echo("<form action='albums.php' <div style='background-color: blue; border: solid red 3px; … |
|
Hello everybody, So this week I am coming up with two questions, they are probably silly questions but I have googled and come up with nothing. [B]1)[/B]Figured out number 1 by myself, accidently had a / where it wasn't supposed to be. [B]2)[/B]This one I have not tried to hard … |
|
hello, i am creating a api, but i have run into a problem, its not returning anything when i call the action "profile" but everything else if working perfectly, please can you help me diagnose and ammend this problem thanks... [url]http://api.bititude.com/blueniverse/wardrobe.php?action=profile&friend=patch[/url] [CODE]<?php //////////////////////////////////////////////////////////// // Title: Blueniverse Developers API // // … |
|
I have written some sql codes in a file named sql.sql and I want to install my database using this file. How can I do it? Please help me out.... here is the sql code from the file sql.sql [CODE] CREATE DATABASE IF NOT EXISTS wm; USE wm; CREATE TABLE … |
|
Okay, so here's the deal: I suck with forms and generating dynamic links. Here's the code that I'm working on [CODE=html]<div class="Normal_P"> <span class="Normal_C"> <form action="<?php getLink("http://www.atouchofmoore.net/certificate_stage3.php" array( <?php[/CODE] [CODE=php]if(mysql_num_rows($r) > 0) { while($d = mysql_fetch_array($r)) { $options .= "\n\t<option value=\"{$d[2]}\">{$d[1]}: {$d[2]}</option>"; } } for($x=0;$x<$cert_num;$x++) { $cert = ($x+1); $get_data['cert"$x"'] = … |
|
Hi everyone. So one of the last things of my shopping cart is to fix the currency. The problem is that it is on the left side like this $10, and I want it to be on the right like this 10$. Here is the file: [code] <?php header ('Content-type: … |
|
hi, Its very urgent pls send me a source code in matlab for 3-D wavelet transform in image compression. |
|
Another issue with sha1. I am creating users via a registration form, that when submitted, has made the password a sha1. [B]Registration script:[/B] [CODE] if($_POST['pass1']==$_POST['pass2']){ $password = sha1(mysqli_real_escape_string($connection, $_POST['pass1'])); } [/CODE] When the user log in, I have this script using sha1. [B]Login script:[/B] [CODE] $password = sha1(mysqli_real_escape_string($connection, $_POST['password'])); $sql=("SELECT … |
|
Hello! So here's what i did i fetch data from my database in a table each row has a checkbox on in. Now what i already did is when i press submit the data that will be shown in the next form is the row that has check on the … |
The End.