39,320 Topics

Member Avatar for
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
90
Member Avatar for Krstevski

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 …

Member Avatar for Borzoi
0
125
Member Avatar for lwaterfo

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() ); …

Member Avatar for tiggsy
0
157
Member Avatar for pallen

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 …

Member Avatar for richieking
0
261
Member Avatar for swilliamrobert

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 …

Member Avatar for swilliamrobert
0
142
Member Avatar for pallen

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 …

Member Avatar for pallen
0
170
Member Avatar for andrewliu

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 …

Member Avatar for andrewliu
0
106
Member Avatar for fuston05

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 …

0
71
Member Avatar for JBLDW

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' => …

Member Avatar for JBLDW
0
221
Member Avatar for aquilai

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

Member Avatar for timpogue
0
658
Member Avatar for theonly

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 …

Member Avatar for chrishea
0
134
Member Avatar for Calatinus

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 …

0
42
Member Avatar for cpappas

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

Member Avatar for cpappas
0
185
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
117
Member Avatar for abstrand

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 …

Member Avatar for richieking
0
1K
Member Avatar for devilish demon

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 …

0
70
Member Avatar for nonshatter

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 …

Member Avatar for nonshatter
0
115
Member Avatar for dev.vini

how we can delete a uploaded from its source folder when it is deleted from database pls tell me

Member Avatar for richieking
0
84
Member Avatar for samarudge

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

Member Avatar for richieking
0
95
Member Avatar for el33t

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 …

Member Avatar for richieking
0
1K
Member Avatar for ryan311

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 …

Member Avatar for richieking
0
172
Member Avatar for alexandra03

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

Member Avatar for ilyons
0
244
Member Avatar for s2xi

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 …

Member Avatar for mahavir123
0
67
Member Avatar for pearll

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

Member Avatar for pearll
0
203
Member Avatar for akvlko

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"); } …

Member Avatar for mahavir123
0
113
Member Avatar for pearll

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 …

Member Avatar for pearll
0
203
Member Avatar for timpogue

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?

Member Avatar for mschroeder
0
94
Member Avatar for WaleedaaN

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 …

Member Avatar for WaleedaaN
0
116
Member Avatar for Clarkeez

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

Member Avatar for richieking
0
87
Member Avatar for anyname4u

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

Member Avatar for richieking
0
91

The End.