Ok so it's not SP2!! Thank you for following the link!
My client is using the latest Norton Anti-Virus - I went through the options and unchecked one of the tick boxes that stated not to allow some scripts through but this didn't make a difference.
Any ideas as to what I can try next, other...
I have recently designed a web site using using templates where one of the editable regions is for an image (jpeg).
http://www.urbanangeldayspas.com/welcome/
The site has been tested in most browser situations and works absolutely fine, however my client, whom the site is for, is running...
HI, thanks for the info. I have tried using muliple queries and the first table now returns the correct results but the second table always returns the same value.
I'm now using the following code:
//set up query
$query = "SELECT * FROM clients where clients.clientid = '$id'"...
Hi,
My aim: to display data from a database dependant on the option selected in the drop down.
I have successfully managed this without a hitch, however I also want to be able to display data from a second table dependant on the id of the data displayed from the first table - all at the same...
Have a look at pickaweb.co.uk - I've hosted with them before without any glitches.
The 100mb plan offers 2 MySQL databases and supports php for just £10pm...
Great value!!
I'll certainly remember that as and when I do attempt more complex code but i'm just at the bottom of the ladder at the moment!!
thanks for all your help and advice....
yep, that works much better - thankyou.
For future reference would you advice using the print function over echo? is there any big difference?
Thanks...
Hi, I'm using the following code to query my database table and display the data on a page:
//connect to the DB
include('db.php');
//set up query
$query = "SELECT * FROM clients,projprog WHERE clients.clientid = projprog.clientid AND clients.clientid = 8";
//run query...
fyi...
I kept the two tables I had originally but used the following query to populate my drop down box:
---------------------------------------------------
<?php
//connect to the DB
include('../db.php');
//set up the query
$query = "select clients.clientid, clients.clients from...
I'm querying the client table because in my html form I use a drop down that pulls all clients from the database and then I want to enter project progress according to the client I have selected from the drop down.
Am I making any sense, sorry if i'm not explaining it very well??!!
It's generally one client, one project, so i'm not sure that a separate projects table would serve any purpose. I just want the id of the client to be present in the projprog table so that when I do a select query:
"SELECT * FROM clients, projprog WHERE clients.id = projprog.clientid AND...
I have two tables:
clients:
id | clients
projprog:
id | clientid | clients | date | subject | post | post by
where clients.id = projprog.clientid
Table clients stores all my current clients and table projprog stores the progress of the projects I am working on. I want to be able to add data...
When I use print_r($_SESSION) I get the following displayed in my browser:
Array ( )
Warning: Cannot add header information - headers already sent by (output started at C:\Inetpub\wwwroot\devweb\devweb\projects\validate.php:23) in C:\Inetpub\wwwroot\devweb\devweb\projects\validate.php on line...
I'm having problems with getting sessions to work.
I have started a session and registered a variable using the following:
// Register some session variables!
session_start();
$_SESSION['username'] == $username;
and then I have added the following to the page I want to...
Thanks, that's what I have done and it is working fine. My code is now:
<?php
$username = $_POST['username'];
$password = $_POST['password'];
//connect to the DB
include('db.php');
//set up the query
$query = "SELECT web FROM users WHERE username = '"...
Thanks, I was going to tackle the 'sessions' bit later!!
For now, I'm just trying to work out how to direct each user to their own specified page:
ie: user 1 enters username: user1 and password: password1 and is then directed to page1.php
user 2 enters username: user2 and password...
Hi, I have a really simple login form that checks username and password in a database and if correct logs you in etc etc etc.
--------------------------------------------------------------------------------
<?php
$username = $_POST['username'];
$password = $_POST['password']...
Have you looked into PHP and MySQL? I do not claim to be a coding guru but I have implemented an online questionnaire for a customer website which feeds information into a MySQl database using PHP.
There are several beginners tutorials out on the web and I'm sure you would be able to pick it up...
I've been building web sites for some time now but I've never before been asked to build an e-commerce site - Now I have two prospective customers asking for a quote!!
One requires a single credit card payment for a service they are offering and the other is an online catalogue offering 1000+...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.