PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Rikk03
Worker
Worker


Joined: Feb 16, 2004
Posts: 164

PostPosted: Fri May 07, 2004 4:29 am Reply with quote Back to top

Why wont this work,

Code:
// Modify Category

    $numrows = db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_modules_categories"));
    if ($numrows>0) {
   OpenTable();
   echo "<form method=\"post\" action=\"admin.php\">"
       ."<font class=\"content\"><b>"._MODCATEGORY."</b></font><br><br>";
   $result2=$db->sql_query("SELECT mcid, mcname FROM " . $prefix . "_modules_categories order by mcname");
   
   echo ""._CATEGORY.": <select name=\"cat\">";
   while(list($mcid2, $mcname2) = $db->sql_fetchrow($result2)) {
        echo "<option value=\"$mcid2\">$mcname2</option>";
   }
   echo "</select>"
       ."<input type=\"hidden\" name=\"op\" value=\"modules_edit_category\">"
       ."<input type=\"submit\" value=\""._MODIFY."\">"
       ."</form>";
   CloseTable();


I get a parse error on the first line, yes I know usually a missing ; or "...I just cant get it right.
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

PostPosted: Fri May 07, 2004 5:16 am Reply with quote Back to top

Missing a $ in the first db
View user's profile Send private message
Rikk03
Worker
Worker


Joined: Feb 16, 2004
Posts: 164

PostPosted: Fri May 07, 2004 5:25 am Reply with quote Back to top

Hey thanks, - its funny how you can look so hard and not find the problem ......bloody $
View user's profile Send private message
corky
Regular
Regular


Joined: Feb 29, 2004
Posts: 63

PostPosted: Fri May 07, 2004 7:02 pm Reply with quote Back to top

lol, I have made those mistakes
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum