39,326 Topics
| |
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 … | |
"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 … | |
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.. | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … |
The End.