thebobby Posted April 18, 2012 Share Posted April 18, 2012 Parse error: syntax error, unexpected '<' in /home/mdsr/public_html/business_create.php on line 34 else if($user_class->money < $r['classCost']) { echo '<tr><td class="contentcontent">You cannot afford to start a business of this type right now.</tr></td>'; } else if(mysql_num_rows($check) || mysql_num_rows($check_member)) { echo '<tr><td class="contentcontent">You are part of a business at this time, close it to start a new one.</tr></td>'; } else { line 32 mysql_query(sprintf("INSERT INTO `businesses` (busId, busName, busClass, busDirector)"." VALUES (NULL,'%s', '%d', '%u'),'".$_POST['name']."',abs((int) '".$_POST['class']."'", $user_class->id)); line34 mysql_query(sprintf("UPDATE `grpgusers` SET `money` = `money` - '%d', `business` = '".$_POST['class']."' WHERE `id` = '%u', '".$r['classCost']."'", $user_class->id)); echo <tr><td class="contentcontent">The '".$_POST['name']."' business was created.</td></tr>; } } { echo <tr><td class="contentcontent"><form action="business_create.php" method="post"> <p align="left"> <b>Create a new business:</b><br /><br /> Please enter a name for the new business below, then select Quote Link to comment Share on other sites More sharing options...
Spudinski Posted April 18, 2012 Share Posted April 18, 2012 If I can give you an awesome tip: Get an IDE. An IDE should show you exactly where the fault within the script it. Ps. Sublime Text ftw, and free, for now. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 18, 2012 Author Share Posted April 18, 2012 (edited) ok found it Edited April 18, 2012 by thebobby Quote Link to comment Share on other sites More sharing options...
Spudinski Posted April 18, 2012 Share Posted April 18, 2012 Well, there's a guy that goes around each day giving out copies. He's dressed as a mail man, so when you see him, just ask him. It's like trying to spot Waldo, but meh. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 18, 2012 Author Share Posted April 18, 2012 lol i download but not sure how to use but thanks for the directions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.