39,326 Topics

Member Avatar for
Member Avatar for valonesal

We would like to serve javascript from our database. We assumed it would be like serving html but its not working. What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the …

Member Avatar for diafol
0
130
Member Avatar for marione

"Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in X on line 146" problem.. Need expert help plss... here is the code.. [CODE] <?php require_once('Connections/reservations.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue …

Member Avatar for marione
0
176
Member Avatar for holyjohn

can anyone help me with my project? web base enrolment system for high school... what are the functional requirements needed? Your suggestion will help me a lot...thanks..

Member Avatar for diafol
0
53
Member Avatar for trilithon

Hi everyone, I have a problem getting this code to work properly. What I need is to create a update form where the Admin user manages what menu items the different user levels will have access to by ticking or untickking the check boxes. I need the check boxes to …

Member Avatar for trilithon
0
170
Member Avatar for abstrand

I'm looking for the coding used to cause a radio button selection to enable a shortlist of checkbox inputs. Conversely, if the radio option not related to the checkboxes is selected, they are grayed out (example below). I thought this would be easy to research, but can't seem to find …

Member Avatar for mahavir123
0
113
Member Avatar for Robbastiaansen

Hi, I have this code that shows a page line by line with a 1 sec interval. Works with IE6 but not with IE8, Firefox, Chrome. <html> <head> <title>test</title> </head> <body> <?php if (ob_get_level() == 0) ob_start(); for($i=0;$i<10;$i++){ echo 'regel '.$i.' </br>'; ob_flush(); flush(); sleep(1); } ?> <br> </body> </html> …

0
72
Member Avatar for qazplm114477

I'm trying to pass several create statements through mysqli->multi_query, I tested the multi_query statements with a couple of queries and it works and when I called it with my actual create statements it just wouldn't go through... there weren't any errors and it returned true. I tested the query itself …

Member Avatar for qazplm114477
0
1K
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
91
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
126
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
143
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
171
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
72
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
231
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
660
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
135
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
96
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
247
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
68

The End.