39,320 Topics
| |
I have a very large table and would need to split into lots of tables. The large table has lots of fields of which `Model.ID` gives a number of the product and this is repeated lots of times with other fields used in the row. I need to create lots … | |
Hello friends, I have a small problem with WordPress. I have a page in WordPress and works great but "www" is missed in the URL. e.g. If the website is example.com and when I write [url]www.example.com[/url] then the address is changed in [url]http://example.com[/url] (correctly should be [url]http://www.exmaple.com[/url]). So, I want … | |
I am trying to get my database to display in a form using this code below. The problem is, the form (textfield) is not displaying anything. Can someone give me a hint? [CODE]<?php session_start(); if (!isset($_SESSION['memberusername'])){ header("Location: contractorlogin.php"); exit(); } mysql_connect('localhost','xxx','xxxxxx') or die( mysql_error() ); mysql_select_db('xxxxx') or die( mysql_error() ); … | |
So I have a basic database of books set up. I am trying to use PHP to query the db and send back the results. I can sort of get it to work, but not working how I would like. The issue is that the search term that queries the … | |
Hi, I have some critical sutiuation for sending email. Example: A. [url]www.othersite.com[/url] B. wwww.oursite.com Lets say : A sendig request to B, the B sendback response to A. B site does not open. B site sending values internally using CURL concept in php. But A site still open. Once A … | |
I am testing out some PHP code from a book just to see how it works. This is it: [CODE]<?php $f = $c = ""; if (isset($_POST['f'])) $f = sanitizeString($_POST['f']); if (isset($_POST['c'])) $c = sanitizeString($_POST['c']); if ($f != '') { $c = ((5/9) * ($f - 32)); $out = "$f … | |
Hello, I have set up a searchable database code for my website and I was wondering if it is possible to filter the database if I have two of the same names. Example: my database consists of names and other information, but I have similar names but different information for … | |
I am making a php calendar script. I want to to store events on separate text files. Beside my calendar is an iframe which is where it will read the events. I cant figure out how to make php read just the portion that is the event, not the code … | |
I have [I]this[/I] foreach statement: [CODE]foreach ($googlebasemap as $key => $linkdata) { $xmlmap['item.' . count($xmlmap)] = array('title.0' => $linkdata['title'], 'link.0' => $linkdata['link'] . '?source=googlebase', 'description.0' => $linkdata['desc'], 'g:price.0' => $linkdata['price'], 'g:id.0' => $linkdata['id'], 'g:model_number.0' => $linkdata['prodnum'], 'g:brand.0' => $linkdata['brand'], 'g:condition.0' => 'new', 'g:mpn.0' => $linkdata['mpn'], 'g:image_link' => $linkdata['img'], 'g:product_type.0' => … | |
Hi, does anyone know if its possible to set up a system, preferably using php where by people can send information via SMS and this data can automatically be uploaded to a website/database, also what sort of technology would this require?? cheers | |
Hi, I was wondering is there a way to password protect a directory. Here is my problem. My site require a login using php and mysql. This works, however I want to protect a certain directory that only lets a user who login previously to download files from it. I … | |
Hi everyone. I would like to retrieve the value of an html-element on one of my websites. The path to that element is as follows: div#container > ul.specials > li.first > p. I have tried using DOMdocument model (in particular the functions loadHTML & getElementById) but that didn't work out … | |
Hey, So I am using PHP although any language solution would be great. I am looking at displaying whether or not a cookie from a specific ad network is present on your web browser. A good example is with AdChemy. They are a part of the NAI (Network Advertising Initiative) … | |
I have a database which is quite large (around 1.7 million rows, with about 40 fields) . I want to do about 10 different queries and echo these results out in a tables that are spaced with headings for the seperate results, but i am worried about the length of … | |
I've created a mail message to be sent based on a select statement within a while argument. The problem I'm having is when I add additional fields. The mail message sends just fine with the following concatenation and coding: [CODE]while ($row = mysql_fetch_assoc($result)) { $to = "abstrand@yahoo.com"; $subject = "New … | |
i want to submit a web survey info to my email address, and for that i have to use PHP, SO tell me can i upload that web page to blogspot or any other blogger?? m recommnding blogspot as it has no ads, so does it support PHP, if yes … | |
Hi all, I have an array called html which contains rows of text. E.g: [CODE]$html[0] = 1 Full, Gen. 3 TMSWK2D 9 Poor write quality $html[1] = 2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape [/CODE] How would I go about taking each array value and splitting the row … | |
how we can delete a uploaded from its source folder when it is deleted from database pls tell me | |
On a site I'm working on we need to allow a user to download a file [B]once only[/B]. The problem is, if the download fails they can try again. I only want it to be registered as a download if it completes successfully The code I'm using at the moment; … | |
Hi, I'm trying to develop a PHP script which will calculate the internet connection speed of the users. In order to achieve this, the script will perform 5 basic tasks : 1) Fetch the time and store the value in a variable (say: $start_time) 2) Transfer a chunk of data … | |
hi i manage to upload 1 file and save it to the server. how can i add more button to upload a file and save it to mysql? i want is after the user upload a file theres another a button to upload again another a file how can i … | |
Hi, I have static website with 10 pages and I need to include articles on one of them. I need script that is easy to install on my PHP/MySQL server and to publish news through administration page. Also to customizable for front-end. 10x | |
Hi, I'm trying to make an addressbook and as a feature I want to make Groups and store certain contacts within a group. Since I don't want to have static columns in my database for predefined groups how can I make a column `groups` and have the user add their … | |
why the hell the password matching funtion pwdCompare() is not working here ??and kindly tell me .. how to enabling the "forwarding" input box relating to radio button yes or no :( :( plz plz plz help me !! <html> <head> <title>Email Control</title> <link href="email-styles.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html; … | |
Hi There! I have a Ajax Function copied from W3Shools I have modified them as my Requirement but it won able to send the xmlHTTP request to my PHP page for result here the function [CODE] function showUser(str,txtId,mth,url) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } … | |
plz plz plz somebody help me :( :( here is the code .. what i want is to link the emailid with a page named update.php...in which i can edit the particular emailid's row in databse ...or one can also tell to create a button EDIT .. but then i … | |
Hi, I'm new to Daniweb, and I was just wondering, let's say I entered: 2 + 2 in a textbox, and using php and a function I want to solve that equation. But whenever I try to return it It returns "2 + 2". Can anyone help me with this? | |
hi ,,, i have create php page code for show booking online and for free seat is come green color if paid red color and... blah blah is working fine but can you fix it to be better and fast browseing page this PHP file and MySql [ATTACH]17504[/ATTACH] [ATTACH]17505[/ATTACH] waiting … | |
I'm building a portal system for my company and need someway of grabbing the windows username of the person logged on accessing the portal. Setup... Apache & PHP on Windows. This is VITAL so any help is MUCH appreciated. I've tried echo $_SERVER['REMOTE_ADDR']; - returns IP, not username echo $_SERVER['AUTH_USER']; … | |
Hi, I have this script [CODE]<?php require_once("includes/connection.php")?> <?php require_once("includes/functions.php")?> <?php if (intval($_GET['subj']) == 0){ redirect_to("content.php"); } $submit = $_POST['submit']; if (isset($submit)){ //for validation $errors = array(); $required_fields = array('menu_name', 'position', 'visible'); foreach($required_fields as $fieldname){ if (!isset($_POST[$fieldname]) || (empty($_POST[$fieldname]) && !is_numeric($_POST[$fieldname]))){ $errors[] = $fieldname; } } $fields_with_lengths = array('menu_name' => 30); … |
The End.