User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 423,470 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,714 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 30 of 30
Search took 0.01 seconds.
Posts Made By: mortalex
Forum: PHP May 6th, 2008
Replies: 9
Views: 370
Posted By mortalex
Re: Login problem, need fresh set of eyes.

Ah i figured it out!

Pretty simple when i look at it, there was nothing wrng with my code, the size of the password field in the database was too small.

Obviously the SHA() function creates the...
Forum: PHP May 6th, 2008
Replies: 9
Views: 370
Posted By mortalex
Re: Login problem, need fresh set of eyes.

The MySQL query is not working, it seems like it would work though;

SELECT * FROM members WHERE email = 'test@test.com' AND password = SHA('test')

But it is not getting anything, it it because i've...
Forum: PHP May 6th, 2008
Replies: 9
Views: 370
Posted By mortalex
Re: Login problem, need fresh set of eyes.

I'm doing this for a school project at the moment, so its on their server, not my computer and of course, it being a school and all; their a bit anal about accessing configuration files, so i can't...
Forum: PHP May 5th, 2008
Replies: 9
Views: 370
Posted By mortalex
Re: Login problem, need fresh set of eyes.

Oh yea oops, man i feel stupid....

Well, it just doesn't log in, it just comes up with the error "The email address and password entered do not match those on file.". I'm not sure what the real...
Forum: PHP May 5th, 2008
Replies: 9
Views: 370
Posted By mortalex
Login problem, need fresh set of eyes.

Hey guys, i've got a right headache from this piece of code at the moment, it's a simle login script and it just sin't working, the MySQL query looks correct to me and all the other stuff looks ok,...
Forum: Getting Started and Choosing a Distro Apr 29th, 2008
Replies: 4
Views: 1,417
Posted By mortalex
Re: Parition XP to dual boot ubuntu

I've got a working XP CD that came with my computer, anyway would that space really need to be as large as 7Gb or 2Gb?

I think that the small partition, the 63Mb one is an important one, but no the...
Forum: Getting Started and Choosing a Distro Apr 29th, 2008
Replies: 4
Views: 1,417
Posted By mortalex
Parition XP to dual boot ubuntu

Hey guys,

So i've been hearing all this hype about the new Ubunut 8.04 and i wanted to try it out. So i've treid the Live CD and i like it, very much. Now i want to dual boot XP and Hardy...
Forum: JavaScript / DHTML / AJAX Apr 17th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
Re: javascript and a MySQL query

Yea. Sorry i'm not very good at explaining things.

Right, firstly theres a text box in which the user can write the quantity.
Secondly theres a select box, displaying Category, which is populated...
Forum: JavaScript / DHTML / AJAX Apr 16th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
Re: javascript and a MySQL query

Hmmm, i've come up with a solution; instead of giving the select box option's a value of their ID, i have given them a value of their price instead, so to access the price all i need to do...
Forum: JavaScript / DHTML / AJAX Apr 16th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
Re: javascript and a MySQL query

ARRRGHH, i hate this thing. Right I've tried that, but it isn't working.

It's supposed to populate a textbox based on a select box. For example the select box is showing a couple of options, like...
Forum: JavaScript / DHTML / AJAX Apr 16th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
Re: javascript and a MySQL query

Ok, cheers.

Right i've done this:

function updateTotalPrice(){ //show the price of the sub category
//var amount = document.getElementById('amount');
var total =...
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
Re: javascript and a MySQL query

C'mon guys, there's gotta be a way!
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008
Replies: 9
Views: 1,324
Posted By mortalex
javascript and a MySQL query

God i'm having a terrible time trying to do this. Does anyone know how to set a javascript variable as a query result from a MySQL database.

As an example, like this:

Set this query:...
Forum: JavaScript / DHTML / AJAX Apr 14th, 2008
Replies: 3
Views: 1,224
Posted By mortalex
Re: Javascript echo'ed in PHP

Solved
I realised that i had forgotten to include a <body onload=fillCategory()> in the html!

Cheers for all the help
Forum: JavaScript / DHTML / AJAX Apr 14th, 2008
Replies: 3
Views: 1,224
Posted By mortalex
Re: Javascript echo'ed in PHP

Ok i've tried that, but it just doesn't want to work. It's wierd because this javascript worked in an external .js file with the PHP as well. I don't know whats happened.
Forum: JavaScript / DHTML / AJAX Apr 14th, 2008
Replies: 3
Views: 1,224
Posted By mortalex
Javascript echo'ed in PHP

Hey guys,

I've heard that you can write php code when its combined with javascript, you just need to echo"" out all the javascript functions.

So i've done this and it is working.. to a degree....
Forum: JavaScript / DHTML / AJAX Apr 9th, 2008
Replies: 1
Views: 1,800
Posted By mortalex
Dynamically add rows to a form

Hey,

I have a problem that i have been working on for too long, how can i add rows and remove rows from a form dynamically using javascript?

What i need is two buttons, one to add a row and the...
Forum: JavaScript / DHTML / AJAX Mar 9th, 2008
Replies: 4
Views: 1,709
Posted By mortalex
Forum: JavaScript / DHTML / AJAX Mar 7th, 2008
Replies: 4
Views: 1,709
Posted By mortalex
Re: Dynamic drop down list not working

Yea i know, i purposely left them off, to save space.
What other problems have you seen with my code?
Forum: JavaScript / DHTML / AJAX Mar 7th, 2008
Replies: 4
Views: 1,709
Posted By mortalex
Troubleshooting Dynamic drop down list not working

Hey,

I'm trying to create a dynamic drop down box where the first drop down box populates the second drop down, but it isn't working. I have two tables;
pricelist with fields,...
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008
Replies: 2
Views: 1,659
Posted By mortalex
Help Dynamic drop down box, populated from MySQL Db

Hey, i've got a problem, i'm trying to make a drop down box but so that the first value chosen automatically updates the fields that you can choose in the second drop down menu.

Yes this may seem...
Forum: PHP Dec 7th, 2007
Replies: 2
Views: 1,851
Posted By mortalex
(isset($_POST['submitted'])) not working, not sure why

Hey guys,

I'm trying to write a peice of code that basically checks if the input field have been submitted, it is an update code so I have designed it so that when the user clicks "update" another...
Forum: PHP Nov 5th, 2007
Replies: 11
Views: 1,549
Posted By mortalex
Re: MySQL update not working

Ok i've hidden the field, but it's still not working. To be honest i still don't really understand how this hidden field type will help me?

Its connecting to the database, its displaying all the...
Forum: PHP Nov 3rd, 2007
Replies: 11
Views: 1,549
Posted By mortalex
Re: MySQL update not working

Ok i've looked into the hidden field suggestion, but really i still don't have a clue as to what to do. Doesn't this only stop it from being shown in the web browser, does it do anything else?

Cheers
Forum: PHP Nov 2nd, 2007
Replies: 11
Views: 1,549
Posted By mortalex
Re: MySQL update not working

What do you mean the hidden field way? Sorry i'm new to this.
Forum: PHP Nov 1st, 2007
Replies: 5
Views: 636
Posted By mortalex
Re: MySQL require_once stopping script workin?

well., no it does, because it's worked on every other script that i've done, just not this one.

Could you give me details as to what i should do to correct it?
Forum: PHP Nov 1st, 2007
Replies: 5
Views: 636
Posted By mortalex
Re: MySQL require_once stopping script workin?

No theres two different peices of code there that do the same thing, one without the require_once() and one with.

The one that has the require_once() has it at the start of the code after the

if...
Forum: PHP Nov 1st, 2007
Replies: 5
Views: 636
Posted By mortalex
MySQL require_once stopping script workin?

Hey guys!

Right heres the problem, I have made this script that basically displays all the data from a table from MySQL; pricelist.

However it only displays the data when i have to manually write...
Forum: PHP Nov 1st, 2007
Replies: 11
Views: 1,549
Posted By mortalex
Re: MySQL update not working

Why would that work, i've enabled short tags in the php.cfg file, so why would changing them let it work.
I'll give it a go, but all the stuff is at school, so i'll let you know how it...
Forum: PHP Oct 31st, 2007
Replies: 11
Views: 1,549
Posted By mortalex
MySQL update not working

Hey, i'm new here and i need help.

I'm trying to write an update query so i can update mulitple items in a database, but it aint working..

Ive used the mysql_error() thingy, but it still does not...
Showing results 1 to 30 of 30

 
All times are GMT -4. The time now is 3:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC