39,326 Topics
| |
Hello I've got a problem whereby I need to block access to my survey, I do not want a situation where a user can access the survey by just entering the URL of the survey, the survey has been integrated with mediawiki. Thanks in advance kgizo | |
I have a problem with my links getting added a extra subdirectory found to it when that link doesnt even exist I have tried everything possible, such as ../ to specifying to exact folder location within the links Here what are the correct links are: [url]http://localhost/xampp/website/newsletter.php[/url] [url]http://localhost/xampp/website/admin/login.php[/url] When I click … | |
hello, i am trying to add a feature in my contact form that create a link with visitors submitted 'TITLE' and 'URL'. Have a look at this code! ***In this code [B]$attn = Visitors submitted URL[/B] and [B]$visitor = Visitors submitted title[/B]. [CODE]$todayis = date("l, F j, Y, g:i a") … | |
Hi, I'm new here, seems like a nice forum so I'm gonna start. I need to make table which gets info from mysql sortable. Now, I have idea to make it with switch and case's but thing that gives me problem is two $_GET's in address. What I mean is … | |
I want to write rewrite rule for page url that have no .php extension.. for example [B][url]http://www.3gphone.in/brands.php[/url][/B] into [B][url]http://www.3gphone.in/brands[/url][/B] Here is my code, but it is not working.. [CODE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^/]+)/$ $1.php [/CODE] | |
Hi everyone My problem is that i am using javascript form validation for the first time and have made a function "Validateform()" to validate "emailid" field in my Form. Now the problem is that it's not working. Now in my registeration form when i enter a wrong email id for … | |
HELLOOOO Daniweb! I'm stuck at an issue that I can't seem to get around with my standard pagination codes I've used in the past. I'm developing a business directory and as with most of those, the listings are priced according to hierarchy: - sponsored (category sponsor, always on top) - … | |
I have a few questions about PHP. I am a newbie and still a little confused. Now when you do a form for php do you put everything on one page or use links for the page. Such as HTML,PHP and the form. Or can the form just be on … | |
Hello all, Think I am going mad I want to do a simple update and get a parse order at line 1. 1: UPDATE ir312 // the table name 2: SET 3: R3_21 = $tot // R3_21 is the field name, $ tot is an amount 4: WHERE irdnumber=$irdnumber The … | |
Hi All, As the title says. Have been looking for solution these past 2 days, Salary Record are pulled from database (MySql) in to PHP table (do/while loop). - Name , Salary , OvertimePay , Subtotal , MedicalDeduct , UnionFeeDeduct , Tax , Grand Total - Peter , 1300 , … | |
Hello all, my lecturer had asked me to encrypt the message using PHP codes i.e to design a website so that someone must be able to send message and appear to DB as an encrypted message using such encrypted method. I don't know how to do or where to put … | |
I am working on this code for php with HTML now i want a container around the information but it is not turning out. Can someone help me understand what I am doing wrong. Should my HTML code suppose to be at the top of the page or not. Here … | |
Hi,I m working on a software product.Its working fine in localhost but not working on server. Need help | |
I dont know why this code will not show any data from the mysql......................... [CODE]$query = "SELECT * FROM g_attack WHERE winner ='$username' ORDER BY created ASC LIMIT 10"; $row = mysql_query($query) or die("Could not connect to db"); while ( $result = mysql_fetch_assoc($row)) { $created = $row['created']; $looser = $row['looser']; … | |
Hello, this error has been torturing me for an hour... [I]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 ''lock'='0' where pmID='206'' at line 1[/I] This is the code: [CODE] else { print "ŽinutÄ— … | |
Here's my code and I am getting an error undefined variable, this code submits the information submitted by the user to a mysql database. [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <?php $errors=array(); if(isset($_POST['submitted'])){ if(empty($_POST['fname'])){ $errors[]="You forgot to enter first name"; } else{ $fn=$_POST['fname']; } if(empty($_POST['lname'])){ $errors[]="You forgot to enter last name"; … | |
i am problem with line 3462 ?! :@ [CODE]<?php function trigger_db_error($obj) { global $CFG; $error_arr = debug_backtrace(); $subject = 'Report bug - Sql error - {site_url}'; $content = '<u><b>Url :</b></u> {current_url} <u><b>Error File :</b></u> {file} <u><b>Error Line No :</b></u> {line} <u><b>Error Description:</b></u> {error}'; $frmobj = new FormHandler(); if(isset($CFG['site']['current_url'])) $frmobj->setEmailTemplateValue('current_url', $CFG['site']['current_url']); … | |
Hey, I am new to PHP and I wrote this it supposed to validate the from and add the errors to an array variable (which will be showed on later), I am having problems on line 41, when I run the script it says [B]Parse error: syntax error, unexpected '{' … | |
I'm finding that my session variable isn't following through from script to script. I'm creating a library database for school and I want the administrator to be able to open user accounts and view the details. This works fine. I then set the account number as a session variable for … | |
Hi, Can any one helps me in the apache redirecion of 'http://www.xyz.com/abc/function.mysql-select-db/dfg' to 'http://www.xyz.com/abc/dfg', and 'http://www.xyz.com/abc/function.mysql-connect/dfg' to 'http://www.xyz.com/abc/dfg'. I want a single rule for the both redirections. Thanks in advance. | |
[U][B]suppose i have a page like:[/B] [/U] ----------------- name | id | --------------- mark | 0253 edit ------------------- jack | 205 | edit ---------------- [U [B]when i am in edit form of this page:[/B][/U] name : mark id : 0253 school : Divine international ---------- Things ---------- stick (edit) (del) … | |
| Just like java applets seem to have had their day... is flash going the same way (no support on the ipad?) Is this a concern for designers who use flash. I use flash actionscript 3.0 occasionally. What are your thoughts? |
Hi, Below code Insert fine but after insert, i like to see a message "insert passed" or "insert failed" if failed. I think i need to have if else statement. not sure how to do that. thanks. --------- <? mysql_connect("host",$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT … | |
hi im working with two form the first form is to insert cheek box into db so the first code i write like this : [CODE]mysql_select_db("project", $con); if(count($orders)>0) { foreach($orders as $key=>$order) { $query="INSERT INTO orders (ORDER_DESC) VALUES ('".$order."' )"; mysql_query($query) or die ('Error Updating the Database' . mysql_errno()); } … | |
Hi everyone. Hopefully this will be the last thing that I need to do to my shopping cart. Basically I have a product details and it gives me the actual picture in its actual size. In order to look more neat, I want to make the pictures to be like … | |
My php code for upload is supposed to filter out images with file extentions different than the ones below and bigger than 5 Mb. It's a normal post fileField form in html that runs this php script. It works like a charm on Firefox and Chrome, but for some reason … | |
Hello i'm working on forum, and the topics content sometimes got images thats bigger then forum warper i need to reduce them by PHP lets say that the content is $row['content']; please help . | |
hi guys, i hope this is the right place, ive been offered to write somethin to allow credit card payments on a website, but ive never worked with cc before. i have made gateways for paypal and moneybookers before but i think theres a lot more to it for credit … | |
I want to keep what the user selected so when he clicks back and goes to my search the values are still there, have three listboxes. Country, State, City Country Listbox [CODE] <select name="country" id="country" onChange="filter_state();"> <?php echo "<option selected>" . $_POST['country']; "</option>"; $sql = "SELECT * FROM tbl_country"; $result … | |
Hi, i want to make a script which manage registered user. so for that i need to include files in php. it is simple to include any file by include function . but i want to include a file by class in php. Please tell me how can i do … |
The End.