Can you help me spot some bugs

Watch
This discussion is closed.
AT82
Badges: 0
Rep:
?
#61
Report Thread starter 17 years ago
#61
(Original post by Dickie)
yes. you do.

when you add an item as a minidisc, it doesnt appear in the minidisc category. You also need to add "dvd" to the categories on the "add item" page. Also, the "add item" page needs *every* box filled, which is inconvenient if you have no image to add, and dont want a "buy it now" price.
Yeah I'll fix that now, I was a bit hasty with that.

I've got a solid two weeks of checking sites/fixing bugs. Arghh how I am going to cope?
0
Rich
Badges: 2
Rep:
?
#62
Report 17 years ago
#62
(Original post by amazingtrade)
aha yeah ,all my SQL statements have a ' before and after ' the variable I want to pass through it. I didn't assume it would work if I didn't parse it. It would be a nice way to get out of bound data

I now need to stop this bugger posting javascript in my forms.
strip_tags() and addslashes() are very useful for this kind of thing...

You probably want to also pass all of your description strings etc. through nl2br() before you display them so that users' carriage returns are respected.
0
AT82
Badges: 0
Rep:
?
#63
Report Thread starter 17 years ago
#63
so would somthing simple like this work?
strip_tags(<script>);
$text="<script";
$newinput strip_tags($text, '$input');

work?
0
Dickie
Badges: 1
Rep:
?
#64
Report 17 years ago
#64
(Original post by rahaydenuk)
strip_tags() and addslashes() are very useful for this kind of thing...
i use htmlentities to do this. It saves the text, but saves it to the db using htmlentities (surprisingly). I prefer that, because it shows up all the ppl who think they can outsmart me by using html/scripts
0
Rich
Badges: 2
Rep:
?
#65
Report 17 years ago
#65
(Original post by amazingtrade)
so would somthing simple like this work?
strip_tags(<script>);
$text="<script";
$newinput strip_tags($text, '$input');

work?
What are you trying to achieve?
0
Rich
Badges: 2
Rep:
?
#66
Report 17 years ago
#66
(Original post by Dickie)
i use htmlentities to do this. It saves the text, but saves it to the db using htmlentities (surprisingly). I prefer that, because it shows up all the ppl who think they can outsmart me by using html/scripts
LOL. PHP seems to have a function for literally everything; it's annoying because you never actually have to code anything.
0
Dickie
Badges: 1
Rep:
?
#67
Report 17 years ago
#67
(Original post by rahaydenuk)
LOL. PHP seems to have a function for literally everything; it's annoying because you never actually have to code anything.
yep. i think thats why PHP is so fun...

or is it because im so sad? meh, one of the two..
0
AT82
Badges: 0
Rep:
?
#68
Report Thread starter 17 years ago
#68
hehe yeah the function Dickie mentioned sorted it. I tried typing in <b>testing bold</b>

it now reads as <b>testing bold</b> instead of making the text bold it adds the tags instead. Its perfect for what I need. Almost like a name and shame feature.

I really need to study the PHP manual in depth, I am amazed how many features are on there.
0
Dickie
Badges: 1
Rep:
?
#69
Report 17 years ago
#69
(Original post by amazingtrade)
hehe yeah the function Dickie mentioned sorted it. I tried typing in <b>testing bold</b>

it now reads as <b>testing bold</b> instead of making the text bold it adds the tags instead. Its perfect for what I need. Almost like a name and shame feature.

I really need to study the PHP manual in depth, I am amazed how many features are on there.
is there rep there for helping you?
0
AT82
Badges: 0
Rep:
?
#70
Report Thread starter 17 years ago
#70
(Original post by Dickie)
is there rep there for helping you?
Yes but not until 8:00 tomorrow, I would have repped you already if I could.

Its so damn typical I don't give rep for days then loads of people deserve rep within in an hour! You're next in line though. If I forget PM me but I am sure I won't.
0
Dickie
Badges: 1
Rep:
?
#71
Report 17 years ago
#71
(Original post by amazingtrade)
Yes but not until 8:00 tomorrow, I would have repped you already if I could.

Its so damn typical I don't give rep for days then loads of people deserve rep within in an hour! You're next in line though. If I forget PM me but I am sure I won't.
lol. sod's law rear's its ugly head again :rolleyes:
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Feeling behind at school/college? What is the best thing your teachers could to help you catch up?

Extra compulsory independent learning activities (eg, homework tasks) (0)
0%
Run extra compulsory lessons or workshops (4)
23.53%
Focus on making the normal lesson time with them as high quality as possible (2)
11.76%
Focus on making the normal learning resources as high quality/accessible as possible (2)
11.76%
Provide extra optional activities, lessons and/or workshops (7)
41.18%
Assess students, decide who needs extra support and focus on these students (2)
11.76%

Watched Threads

View All