Showing results 1 to 40 of 95
Search took 0.01 seconds.
Posts Made By: justted
Forum: PHP 34 Days Ago
Replies: 5
Views: 372
Posted By justted
Re: code will not subtract negative number in mysql field? :( pls help!

Hello,

Thanks for your help! I seem to have sorted it now which is great! :) Thanks for the explanation. My knowledge of PHP is somewhat scatty. Im still learning so this has been a good experience.
Forum: PHP Dec 4th, 2008
Replies: 5
Views: 372
Posted By justted
Re: code will not subtract negative number in mysql field? :( pls help!

Hiya,

Thanks for the advice. Ill go and look that up as im not familiar with that.

Can I ask why the code doesnt do the sum as normal maths!

For example the sum 20 + -10 = 10.

Why does it not...
Forum: PHP Dec 4th, 2008
Replies: 5
Views: 372
Posted By justted
code will not subtract negative number in mysql field? :( pls help!

Hello everyone,

I am setting up a section of coding in which I need to add and subtract certain values to a mysql field. However ...the code only seems to add negative numbers (-13.0) as a postive...
Forum: PHP Nov 9th, 2008
Replies: 5
Views: 600
Posted By justted
FILE UPLOAD - Is there a way to compress file size on upload?

Hello,

I have been setting up a photo upload feature for a website which allows members to upload photos.

I am also after some advice on how large a file should be? I thought about allowing...
Forum: PHP Oct 15th, 2008
Replies: 6
Views: 333
Posted By justted
Re: VERY complicated IF statement isnt working! :O(

Grrrrr ...

I was so close! This code is doing weird things I havent yet worked out. It will allow for access to level 1 and level 0 jobs and so I need to work out whats its doing!

Is anyone out...
Forum: PHP Oct 15th, 2008
Replies: 6
Views: 333
Posted By justted
Re: VERY complicated IF statement isnt working! :O(

ah nope wait a moment. Ive fixed the multiple copies of a particular level.

So for example if I have 2 level 1 positions it now only shows one copy of the level 1 access rights. :OD Whoohoo!

I just...
Forum: PHP Oct 15th, 2008
Replies: 6
Views: 333
Posted By justted
Re: VERY complicated IF statement isnt working! :O(

Hello again...

here is another thing ive tried to stop the multiple copies but it just shows an empty page!




$find_access = mysql_query("SELECT user_id,lobby,shops FROM job_roles,job_positions...
Forum: PHP Oct 14th, 2008
Replies: 6
Views: 333
Posted By justted
Re: VERY complicated IF statement isnt working! :O(

Another problem I have found is if I set say 2 of my 3 jobs to level 1 then it obviously executes 2 copies of the level 1 access code!

Is there a way to limit this so it only shows 1 Copy? I have...
Forum: PHP Oct 14th, 2008
Replies: 6
Views: 333
Posted By justted
Re: VERY complicated IF statement isnt working! :O(

Ah ha ... I have just worked out what it was that was causing the error and it was the missing } from the while statement.

The problem I have now is I have 3 jobs assigned to my username.

If I...
Forum: PHP Oct 14th, 2008
Replies: 6
Views: 333
Posted By justted
VERY complicated IF statement isnt working! :O(

Hello everyone,

I have been trying to get this piece of coding to work! It contains multiple if statements and has just sent my mind spinning. I have an error code and cant seem to get past...
Forum: PHP Oct 14th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Heya .... sorry for the dealy. I have got somewhere but still have a slight issue!

The code is now working but is of course showing results for all access levels when all I want is one result!

I...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

nope!
lol it didnt.

I dunno what im doing now. Got myself all confused.

I thought using the IF statement with else if for each level.

So it would check IF job position equals to 1 in the lobby...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Ah ok thanks.

Ive never done that query database manager thing and gave it a go. It showed me the job_roles table with all rows.

:>/
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

oh actually it come up with an error saying unexpected t_if else error thing. :O( God I wish there was a solution. lol
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Hmm it seems to not be recognising it and shows up =
This page is a restrcited area. You do not have access!

My access is still set to 0 and 1 so it should show level 1 access for one of my...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

oh ...let me try your way. I didnt refresh so had no idea you replied. lol
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

hmm it didnt work. Ive even tried using if .. elseif ... elseif ... but that just comes up with an error. :(
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

ah ha ... ive had an idea. Instead of doing it this way ill have to separate it up and make the variable check for each lobby number and then print the info accordingly...

Will go have a play and...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Wow blimey! My eyes totally passed that! Amazing how one little typo can cause the script not to work. lol

Now its working although its still only picking up the access set for one job...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Hi again,

I see what youve done and what I didnt do. lol I forgot the ++.

Now it seems to have included the config files and shows the following error which ive seen before and is related to that...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Hello,

Thanks for your help.

I have tried the following code but get an error!

Parse error: syntax error, unexpected T_IF on line 24

Obviously this means that IF statements are not allowed...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

Ah ... I do have this is a file that is included :



function fetch($query)
{
// echo $query;
return mysql_fetch_array(mysql_query($query));
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Re: Im really really stuck ....

huh? lol

It seems to work for my website? What do you mean post that function? :>/ Sorry im still only learning PHP and MySQL.

I got a script that was very badly coded and have been trying to...
Forum: PHP Oct 13th, 2008
Replies: 25
Views: 855
Posted By justted
Im really really stuck ....

Hello,

I am really really stuck on a small project im working on and have been at it now for the past 12 hours. lol

I am trying to set up a restrcited page for my admins and have the following:...
Forum: PHP Sep 23rd, 2008
Replies: 8
Views: 519
Posted By justted
Re: My IF ($email_settings == "0") isnt working! :(

Hi davedpss,

Thanks for your reply.

I have tried the $email_settings === 0 and that didnt seem to work. It just seemed to stop it altogether from working! :>/

Im reallt stumped on what it could be!
Forum: PHP Sep 21st, 2008
Replies: 8
Views: 519
Posted By justted
Re: My IF ($email_settings == "0") isnt working! :(

Can I ask how do I check on fetch?

The table is named mail_Settings and the mail field is either 0 or 1. :>/

thanks
Forum: PHP Sep 19th, 2008
Replies: 1
Views: 350
Posted By justted
How do I strip HTML tags from user text box in a form?

Hello,

I have forms on my website for user profiles where they can update their information.

I would like to limit this so users cannot insert HTML or other coding into some of the text boxes as...
Forum: PHP Sep 19th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

Ah silly me! lol You were right! lol

However, when I click on the photo now it opens up a new window with the red cross box. I checked the properties of the red cross box (which should be the photo)...
Forum: PHP Sep 19th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

Hmm,

First of all thank you!

Ive just been playing around with this code!

When I put it in it seemed to work by showing the photos but when clicked on the page loaded a 404 Error page saying it...
Forum: PHP Sep 19th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

Opps sorry ... didnt close the code off.



<?php
//Retrieves data from MySQL
$data = mysql_query("SELECT * FROM employees WHERE profile_id = '$members_profiles[username]' ") or die(mysql_error());...
Forum: PHP Sep 19th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

hmm this isnt working because of the < within the {}

How do I get round this?

This is the snippet of code:


<?php
//Retrieves data from MySQL
$data = mysql_query("SELECT * FROM employees WHERE...
Forum: PHP Sep 19th, 2008
Replies: 8
Views: 519
Posted By justted
My IF ($email_settings == "0") isnt working! :(

Hello,

It seems my IF ($email_settings == "0") isnt working properly.

I am trying to get it so that IF a setting in a table field is set to 0 then it continues and executes the info between the {}...
Forum: PHP Sep 19th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

I am trying to get it so a new page opens.

Its basically so I can tidy up my photo gallery.

So for example .... you would visit the photo gallery page where the photos are listed at a width of say...
Forum: PHP Sep 17th, 2008
Replies: 3
Views: 451
Posted By justted
Trying to repeat content from mysql table!

Hello,

Im a little bit confused with this piece of coding I have!

Im basically trying to add a script I have converted to a web page! The original code was using echo statements which was fine on a...
Forum: PHP Sep 16th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

May I also ask how would I make it so the photo is a thumbnail of say width 200 then when the photo is clicked on it shows the photo in a large size of say 400 width?

:>/ Im guessing it involves...
Forum: PHP Sep 16th, 2008
Replies: 14
Views: 749
Posted By justted
Re: Setting a width to a photo displayed from MySQL doesnt work

Thank you
Thank you
Thank you!

May I ask why there is a single ' without an ending one? Where was I going wrong exactly? :/

Your a star so cheers

Justin
Forum: PHP Sep 16th, 2008
Replies: 14
Views: 749
Posted By justted
Setting a width to a photo displayed from MySQL doesnt work

Hello,

I have set up a photo gallery and would like to resize the width for each photo displayed! However, I cant seem to get the coding right!

Here is the snippet of code:


//Outputs the image...
Forum: PHP Sep 15th, 2008
Replies: 2
Views: 229
Posted By justted
Re: Showing a list from MySQL using WHERE isnt working :(

Hmm dunno how but there is an extra confirmed in this line of code:

$buds = mysql_query("SELECT * FROM buds2 WHERE bud_me = '$userid' AND confirmed= '1'");

This is only ONE AND confirmed in the...
Forum: PHP Sep 15th, 2008
Replies: 2
Views: 229
Posted By justted
Showing a list from MySQL using WHERE isnt working :(

Hello,

I am trying to show a list of information using a FETCH and WHERE statements.

This is my code:



$buds = mysql_query("SELECT * FROM buds2 WHERE bud_me = '$userid' AND confirmed= '1'");
Forum: PHP Sep 13th, 2008
Replies: 4
Views: 609
Posted By justted
Re: Assigning a random name to a photo upload

thank you atli!

Where exactly would I add this within the code?

:>/

Thanks
Showing results 1 to 40 of 95

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:26 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC