Reply
Help with scripts!
Old 11-05-2007, 08:50 PM Help with scripts!
The PHP Professor

Posts: 308
Name: Alex
Location: Behind You
I have 2 things i need help with.

1. Can you do more than 1 LEFT JOIN in a MySQL query? If so how can you do this?

2. How can i allow ONLY certain types of HTML to work(like <a href="123">123</a>) when a user does something like post a comment on a page and such?

Thanks in advance!
__________________
Go Kirby! <(" . "<) (^" . "^) (>" . ")> Talkupation!
Need a FILE host? Nobody gets it done right like 1Stopupload.com!
microcolt is offline
Reply With Quote
View Public Profile Visit microcolt's homepage!
 
When You Register, These Ads Go Away!
Old 11-05-2007, 10:12 PM Re: Help with scripts!
joder's Avatar
Flipotron

Posts: 6,443
Name: James
Location: In the ocean.
1. http://dev.mysql.com/doc/refman/5.0/en/join.html
2. http://us2.php.net/manual/en/function.strip-tags.php
joder is offline
Reply With Quote
View Public Profile
 
Old 11-06-2007, 03:58 PM Re: Help with scripts!
gos1's Avatar
Experienced Talker

Posts: 32
Name: halil goktas
you may create an array for the tags you want users not to use and after that you can use the eregi (looks for the given statement in a string ) function for each of the arrays elements . If there is one prohibited element in the given string it will change a variables value to true . And if the variables value is true than echo an error message else go on ....
gos1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with scripts!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11711 seconds with 12 queries