Search found 42 matches

by k4pil
Thu Feb 16, 2006 2:27 pm
Forum: PHP coding => General
Topic: trouble posting
Replies: 7
Views: 2178

well when i type out a message in the 'post topic' and then click submit i get redirected to http://www.php-forum.com/p/index.php.

I was able to post the 1 st message...so assumed it was size of message - couple of lines allowed.
by k4pil
Wed Feb 15, 2006 6:57 am
Forum: PHP coding => General
Topic: trouble posting
Replies: 7
Views: 2178

trouble posting

Hi. i am having trouble posting. I am redirected to a diferent page.??
by k4pil
Fri Nov 25, 2005 5:22 pm
Forum: mySQL & php coding
Topic: quick mySql query help
Replies: 1
Views: 1259

quick mySql query help

Hi there. I am trying to make a search page. The user can enter search criteria such as customer first_name, surname, address etc. How can i query this in the database? e.g. select * customer WHERE first_name = '$name' or surname = '$surname'; Does what i am trying to do make sense?? I just want the...
by k4pil
Sat Nov 12, 2005 3:37 am
Forum: mySQL & php coding
Topic: Dynamic and flat file databases
Replies: 1
Views: 1311

Dynamic and flat file databases

Hi there. I am just after some information to put in to the background research for a project i am doing. I have started an online business application in PHP and mySql. I understand mySQL is a dynamic database - is that correct? What are the advantages of this type of database?? Is postgreSQL a fla...
by k4pil
Fri Nov 11, 2005 5:23 am
Forum: mySQL & php coding
Topic: help with normalisation of schemas
Replies: 5
Views: 2155

Is this any better?? User ( userID , fName, sName, access, department) Customer ( customerID , fName, sName, address) Product ( productID , prodDesc, prodName, cost, supplierID) CustomerAddress ( CustomerID , addressLn1, addressLn2, addressLn3, city, county, postcode) Purchase ( purchaseID , product...
by k4pil
Fri Nov 11, 2005 4:46 am
Forum: mySQL & php coding
Topic: help with normalisation of schemas
Replies: 5
Views: 2155

thanks for the help. User (userID, fName, sName, access, department, userID, password) Customer (customerID, fName, sName, address) Product (productID, prodDesc, prodName, cost, supplier) Well, the user and the customer are separate. I am developing an online business appliccation. A user is a membe...
by k4pil
Fri Nov 11, 2005 2:27 am
Forum: mySQL & php coding
Topic: help with normalisation of schemas
Replies: 5
Views: 2155

help with normalisation of schemas

HI ppl! I have the schemas below. Any help with normalisation?? Schemas User (userID, fName, sName, access, department) Password( userID, password) Customer (customerID, fName, sName, address) Product (productID, prodDesc, prodName, cost, supplier) User (userID, fName, sName, access, department) Do ...
by k4pil
Thu Nov 10, 2005 9:16 am
Forum: PHP coding => General
Topic: problem with session variables
Replies: 7
Views: 1645

That problem is now solved. But my access and login is still not working. I am trying to prevent users typing in directly into the browser to bring up a restriced page. Thats why i use the redirect; if(isset($_SESSION['access'])) { $URL="http://www.lingan.co.uk"; header ("Location: $URL"); } But thi...
by k4pil
Thu Nov 10, 2005 8:30 am
Forum: PHP coding => General
Topic: problem with session variables
Replies: 7
Views: 1645

The page displayes but i get the error; Notice: Undefined index: access in /home/kapi7150/public_html/CRM/searchCust.php on line 7 Warning: Cannot modify header information - headers already sent by (output started at /home/kapi7150/public_html/CRM/searchCust.php:7) in /home/kapi7150/public_html/CRM...
by k4pil
Thu Nov 10, 2005 3:50 am
Forum: PHP coding => General
Topic: problem with session variables
Replies: 7
Views: 1645

problem with session variables

Hi there. I am stuck on sessions again!. I am creating a session <?php // start the session session_start(); header("Cache-control: private"); //IE 6 Fix error_reporting(E_ALL); Then a session variable $_SESSION['access'] = $access; This is created in the directory http://www.website.com/home.php I ...
by k4pil
Wed Nov 09, 2005 9:41 am
Forum: PHP coding => General
Topic: Search function
Replies: 4
Views: 1166

Search function

hi there.

I am trying to make a search function wihtin my website.

Any tips before i delve into the abys?

Thanks in advance
by k4pil
Wed Nov 09, 2005 9:32 am
Forum: PHP coding => General
Topic: trouble with sessions
Replies: 2
Views: 807

Hurray!!!!!!!!!

I solved my problem!

I was just being silly.
I used the following!

Code: Select all

if(isset($_SESSION['access']) == false)
{
	$URL="http://www.google.co.uk";
	header ("Location: $URL");
}
It now works!

Thanks anyway ppl!
by k4pil
Tue Nov 08, 2005 2:30 pm
Forum: PHP coding => General
Topic: trouble with sessions
Replies: 2
Views: 807

trouble with sessions

Hi there. Im trying to create log in area using sessions. My method is to create session variables, 1,2,3,4. These will then be used to create different navigation menus e.g. if (access = 1) display x else display y. However, im stuck! Muy code is below. What im trying to do is - check the access va...
by k4pil
Sun Oct 23, 2005 3:32 pm
Forum: PHP coding => General
Topic: trouble with include() function
Replies: 15
Views: 3439

trouble with include() function

hi there. I have created a php file called template.php. This is to provide a similar feel throughout the site. However, when i include this file from a different folder it does not pick the file up. The template.php file is in the root. I am creating a page in a folder called CRM which is also in t...
by k4pil
Wed Oct 19, 2005 6:12 am
Forum: Other Database Engines
Topic: Help with info. about different database technologies
Replies: 1
Views: 3396

Help with info. about different database technologies

Hi there! I am doing a project on what different databse technologies are available for use in online business applications, their dis/advatages. I need to cover aspects such as different databses, e.g.Temporal, relational, active etc. Does any have any advice on where to start on this massive subje...
by k4pil
Mon Oct 17, 2005 2:36 am
Forum: PHP coding => General
Topic: advice on sessions and navigation
Replies: 14
Views: 3291

I have worked with OOP for two years - mainly Java. In fact im doing a degree in software engineering, and as it seems todays, all programming is OOP based with emphasis on OOA/D.

However, i am new to php and learning.

thanks
by k4pil
Sun Oct 16, 2005 1:59 pm
Forum: PHP coding => General
Topic: advice on sessions and navigation
Replies: 14
Views: 3291

Well Alexei, I'm here to learn...so if anyone can help and expand on the security class may be i will improve as a programmer.
by k4pil
Sun Oct 16, 2005 6:23 am
Forum: PHP coding => General
Topic: advice on sessions and navigation
Replies: 14
Views: 3291

hi there!

Thanks for ur answers.

Can you expand on the security class??

How do i implement it and what difference will it make compared to the way i was going to do it??

Thanks in advance
by k4pil
Thu Oct 13, 2005 3:20 pm
Forum: PHP coding => General
Topic: advice on sessions and navigation
Replies: 14
Views: 3291

advice on sessions and navigation

hi there! Ok, I am trying to implement a login system. According to who had logged in, i want different people to have access to different sites. e.g Manager - all site Admin - only inventory. How can i do this??? The method im thinking of using; Ask user to log on - getting there username and passw...
by k4pil
Wed Oct 12, 2005 1:54 pm
Forum: PHP coding => General
Topic: help with this code????
Replies: 1
Views: 502

help with this code????

i am trying to make a little login facility, but i'm stuck...any 1 help??? code: <? //get the variable name $username = $_POST['name']; //get the variable password $password = $_POST['password']; include ("connect.php"); $query = "SELECT * FROM staff WHERE `username` = 'kumark2' AND `password` = 'ka...
by k4pil
Mon Sep 05, 2005 3:34 am
Forum: PHP coding => General
Topic: Can't solve this error - any help??
Replies: 1
Views: 675

Can't solve this error - any help??

hi, ive just started to use php 5-can't solve this error! any help? The code is below: class.Demo.php <? class Demo { private $_name; public function sayHello() { print "Hello {$this->getName()}!"; }//function sayHello public function getName(&#...
by k4pil
Mon Aug 29, 2005 7:21 am
Forum: PHP General
Topic: Any software development tool recommendation?
Replies: 0
Views: 963

Any software development tool recommendation?

Hi there. I am going to develop a online application in php. Something like a business application. I have developed software in Java before for which i used UML. Is there anything that i can use which will help me develop the software using php. Something that can illustrate the function i need, di...
by k4pil
Sat Aug 27, 2005 2:30 am
Forum: PHP coding => General
Topic: Can someone check this code for log in
Replies: 2
Views: 660

Can someone check this code for log in

Hi there, I have written the code below for a (very) simple login page. I just want to know if i am on the correct path. Also, is the [return 1] or [return 0] a good way of doing things, or should i use return true/false? And if i should how? Lpage2.php <? //start session session_start(); he...
by k4pil
Fri Aug 26, 2005 6:52 am
Forum: mySQL & php coding
Topic: Advice for creating log in areas
Replies: 1
Views: 810

Advice for creating log in areas

Hi there people. Hope everyones brain is fine, cos php is frying mine!! Anyway, i am trying to create a website which has a login facility. I want to create different authority for those logged in. For eg. manager, admin sales staff etc. What is the best way to do this? Any ideas or suggestionsd for...
by k4pil
Thu Aug 25, 2005 11:11 am
Forum: mySQL & php coding
Topic: Can you store an images in mySQl?
Replies: 1
Views: 788

Can you store an images in mySQl?

Hi there.

I am trying to create a dynamic menu on my site. I want the image to be loaded from the databaee.

What format do i save in..i.e varchar, int etc.

Is this possible???

Thanks in advance