Jump to content

gnawz

Members
  • Posts

    237
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

gnawz's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I use server root because I use that variable in very many places in my code
  2. Dear guys, I have a code that I always use on hosts and it works but is not working now The code is: The file is functions.php // setting up the web root and server root for // this application $thisFile = str_replace('\\', '/', __FILE__); $docRoot = $_SERVER['DOCUMENT_ROOT']; $webRoot = str_replace(array($docRoot, 'functions.php'), '', $thisFile); $srvRoot = str_replace('functions.php', '', $thisFile); define('WEB_ROOT', $webRoot); define('SRV_ROOT', $srvRoot); All the web files are in the root folder lifeforea and the admin files are in the lifeforea folder ir lifeforeastafrica/admin However, when I try to access www.lifeforeastafrica/admin to login into the admoin area, I get the folloeing error: Not Found The requested URL /mnt/local/admin/login.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Someone help on how I should set my doc and server roots please.....
  3. I suggest PHP freaks to introduce a link or button that shows all posts one ever made It could go very well under these two: Show unread posts since last visit. Show new replies to your posts.
  4. Hi freaks! I need help on how to update form fields (text boxes and menus) at once using PHP and MySQL. Like in some forums , one call edit all fields on personal details or pictures then update them all at once. I hope I'm clear.
  5. Hello Freaks! How can one put two or more component modules in Joomla, each displaying different content? I have seen sites that have done this before. Somebody explain how its done.
  6. Hi. I recently desined my joomla template and installed it. I need help on afew things. 1. How do I put a second component module on my site and have it display different content from the first one depending on what is entered in the back end? Once I do this, how do I make each display different content? 2. I need to add a latest projects/news area on the right or left side of the website where I enter a short phrase on a topic with a read more button. How can this be achieved? 3. How do I make my own menus be recognised in joomla? I have my menus with dropdown capability designe using css and I need to be able to assign different templates to different pages,yet clearly,I haven't used joomla menus.
  7. Thanks for your reply. I need to know how to edit any template to make it usable in joomla or be able to use joomla on any template.
  8. Hi guys? I need help and guidance on how to deal with CMS and templates: Joomla in particular Either to Use any template in joomla,that is not necessarily a joomla-based template. Or Come up with my own engine that I can use on any template. I believe the above 2 are more or less the same. Any guidance, tools or sources?
  9. Actually it worked! Just sth missing in SQL. I will try row as total as well. Good for me to learn,thanks
  10. Im using mysql_fetch_array() and my query is; $sql = "SELECT SUM(Quantity *Value) FROM stocktable AS TOTAL"; $result = dbQuery($sql); while($row = mysql_fetch_array($result)) { $totalvalue = $row["SUM(Quantity*Value)"]; } Also,I have noticed one may omit the phrase "as total" from the sql. Besides that,what could be the issue?
  11. Hi? It looks like it should be working but I get "Resource id#8" when I "echo $result;"
  12. Thanks guys. However,what I need is to get the total or sum of quantity * value not sum of quantity * sum of value. ie (quantity * value + quantity * value + quantity * value),etc like in my example table above.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.