Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Rikk03
Worker
Worker



Joined: Feb 16, 2004
Posts: 164

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

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: 2496

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

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







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

Hey thanks, - its funny how you can look so hard and not find the problem ......bloody $
 
corky
Regular
Regular



Joined: Feb 29, 2004
Posts: 63

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

lol, I have made those mistakes
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©