Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-22-2005, 02:44 PM   #1 (permalink)
Senior Member
 
Join Date: 10-29-03
Posts: 215
iTrader: 0 / 0%
Latest Blog:
None

Limit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the rough
PHP search script error

This is my script:
Code:
<?php @require "includes/connect.php"; $search = $_POST['search']; $explode = explode(" ", $search); $search = "biz_name LIKE '%" . implode("%' OR biz_name LIKE '%", $explode) . "%'"; $count = count($explode); $query = array(); for ($i=0, $i < $count, $i++){ $query[$i] = mysql_query("SELECT * FROM businesses WHERE $search"); } echo "<p><strong style=\"font-size: 13px;\">Standard listings</strong></p>"; if (@mysql_num_rows($result) == 0) { echo "There are currently no listings for this category."; } while (@$row = mysql_fetch_assoc($result)) { $row['biz_description'] = str_replace("\n", "\n<br />", $row['biz_description']); echo "<p style=\"padding: 10px; border: 1px dashed #C4C4C4; width: 96%;\"><a href=\"http://".$row['biz_website']."\" onclick=\"window.open(this.href,'_blank');return false;\"><strong>".$row['biz_name']."</strong> - <em>".$row['biz_website']."</em></a><br />"; echo $row['biz_description']; echo "</p>"; } ?>
i get this error:
Quote:
Parse error: parse error, expecting `';'' in search.php on line 51
line 51 is within that script but i cannot find it. What the script does is when a user searchs for example 'Webmaster Forum' it will split it into biz_name like 'webmaster' or biz_name like 'forum'.

any help fixing this will be appreciated.
Limit is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with PHP Script Error dhudiburg Coding Forum 3 01-29-2007 03:06 AM
script error? sim Coding Forum 3 06-29-2005 07:51 PM
Image script error PaulHarris Coding Forum 5 07-03-2004 11:54 AM
Script Runtime Error Debug problem Salty10is Coding Forum 2 06-30-2004 11:55 PM
User Script error Pretend Coding Forum 11 01-18-2004 07:52 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:23 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.