Search found 16 matches

by ferric
Sat Jan 21, 2006 10:26 am
Forum: PHP - Code
Topic: bad word filter
Replies: 8
Views: 1405

bad word filter

Hi,

I'm having trouble finding a function to check a variable against an array of bad words. The closest I can come is ereg, preg, etc. What would be the easist way to do this?

Thanks,
Eric
by ferric
Thu Aug 04, 2005 7:42 pm
Forum: PHP - Code
Topic: php script not inserting data into database
Replies: 5
Views: 381

fixed it. I had ID set to tinyint.

thanks for all your help.
by ferric
Thu Aug 04, 2005 7:37 pm
Forum: PHP - Code
Topic: php script not inserting data into database
Replies: 5
Views: 381

Thanks. that returned: Duplicate entry '127' for key 1

right now there are only 127 rows in my table. any idea whats causing this??
by ferric
Thu Aug 04, 2005 7:15 pm
Forum: PHP - Code
Topic: php script not inserting data into database
Replies: 5
Views: 381

good point. I set $test = mysql_query($query); then echo'd $test, and it came up blank. any ideas why?
by ferric
Thu Aug 04, 2005 4:36 pm
Forum: PHP - Code
Topic: php script not inserting data into database
Replies: 5
Views: 381

php script not inserting data into database

I have a mysql script that should, under all circumstances, insert data into a database. here's the part of the script responsible for the insertion: if (($reviewer) && ($review)) { $episode = getepname($epcode); $username = "*****"; $password = "*****"; $database = "...
by ferric
Mon Jul 25, 2005 3:20 pm
Forum: PHP - Code
Topic: simple sql query not working
Replies: 3
Views: 254

awsome - works good. thanks guys.
by ferric
Mon Jul 25, 2005 2:35 pm
Forum: PHP - Code
Topic: simple sql query not working
Replies: 3
Views: 254

simple sql query not working

I'm working on some code that will serve as a function of a bigger script. I couldn't get the function working, so I put the query in it's own php file just to test it... heres the code: <?php $username = "*****"; $password = "*****"; $database = "quahog5news_com_-_informati...
by ferric
Sun Nov 28, 2004 12:24 pm
Forum: PHP - Code
Topic: content retrieval script
Replies: 2
Views: 329

content retrieval script

Hello, i'm looing for a free script that will allow me to retrieve the show times located at this page: http://schedule.adultswim.com/servlet/ScheduleServlet?action=viewAll&showID=325795&show=Family+Guy&filter=as I've searched all over the web and have not found a script that works. Thanks
by ferric
Sun Mar 28, 2004 3:45 pm
Forum: PHP - Code
Topic: simple mysql vote script
Replies: 1
Views: 318

simple mysql vote script

Here's the code: <?php mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM video WHERE id='$id'"; $result = mysql_query($query); while ($r = mysql_fetch_array($result)) { $vote = $_GET['vote']; $vo...
by ferric
Fri Mar 26, 2004 7:08 pm
Forum: PHP - Code
Topic: simple sql search script
Replies: 7
Views: 914

thanks!
by ferric
Fri Mar 26, 2004 6:53 pm
Forum: PHP - Code
Topic: simple sql search script
Replies: 7
Views: 914

Oh- good, thanks. Although it works, it will only pull the first result it finds out of the database and stops.. how would I make it continue searching even after it's found something?
by ferric
Fri Mar 26, 2004 6:39 pm
Forum: PHP - Code
Topic: simple sql search script
Replies: 7
Views: 914

thank-you, that fixed it. What do the %'s do?
by ferric
Fri Mar 26, 2004 6:29 pm
Forum: PHP - Code
Topic: simple sql search script
Replies: 7
Views: 914

simple sql search script

I cannot figure out why this isn't working- can someone shed some light please? <? $db = mysql_connect('localhost', $username, $password); @mysql_select_db($database) or die("Unable to select database"); $sql = "SELECT name FROM characters WHERE name LIKE '$keys' "; $sql_result =...
by ferric
Wed Mar 17, 2004 3:52 pm
Forum: PHP - Code
Topic: check ftp server for number of connections?
Replies: 4
Views: 570

Yes, absolutly
by ferric
Wed Mar 17, 2004 3:27 pm
Forum: PHP - Code
Topic: check ftp server for number of connections?
Replies: 4
Views: 570

Yeah, it is set to 50. The thing is though, that like the 'videos' section of my site gets POUNDED with requests, and anyone trying to download sounds is out of luck. So, i'm trying to limit how many users the video's people take up.