Jump to content

felixtgomezjr

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by felixtgomezjr

  1. I am not so sure but I guess you can use the str_replace on this. Here is the step 1. Pull the data from the database. 2. Use str_replace command to replace the #{$invoice_id) with the right invoice number before sending. I hope that will help. If it makes more confusing, sorry but I need to see your code.
  2. when it updates, what happened? What was the logical error that you have encountered?
  3. hehehe.. i wonder where I see "resolved". But anyway thanks.
  4. did you unzip the file on the right folder?
  5. maybe you can just redirect it after checking the date? like this //your arrays here //get the date $datenow = date("d"); $index = "day".$datenow.".html"; header('Location:'.$index);
  6. when yo say you can not hit the php page, is there an error message? or when you type the url, there is a prompt for you to download the php file? Or is it just a clean page with nothing in it? You old files work then you create new files. I guess there was an error in your new file but you have turned off the error report of php so you can not see the error message? Can you try to make a very simple file with echo hello in it and see if it will run?
  7. try to use logical OR and instead of AND if(!isset($_SESSION['firstvisit']) || $_SESSION['firstvisit'] != "true"){
  8. <?php $sql = "SELECT approve FROM mytable WHERE stringfield='$searchstring'"; $result = mysl_query($sql); if(mysql_num_rows($result)>0) { if(mysql_result($result,0,"approve")=="false") //I assume that the stringfield holds distinct values echo "Registration Pending"; else echo "Validated" } else { echo "The Name not Registered you may use this name to Register a new Cultivar"; } ?> Use that.
  9. Does your wysiwyg editor doesn't come with the "code" block/tag? I guess it has.
  10. what is the value of your $actionrpg in mysql_select_db($database_actionrpg, $actionrpg);? I believe that is where the error lies.
  11. very nice indeed but after you click and drag a block, the previous block you drag vanishes.. I ended up with only one block. Do not use it.
  12. There are lots and lots of Joomla Templates you can choose from. For a beginner like you who do not have any idea how to fully secure your site, much better if you will use Joomla (or other open source solutions) because it is backed up with a community that always updates/upgrades the system. Joomla is not hard to use.
  13. in your page.php which has this code <?php get_header() ?> <div id="content"><div id="content-in"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="post"> <h3 class="title"><?php the_title(); ?></h3> <div class="meta clearfix"> <span class="date-post">Posted on <?php the_time('F j Y') ?></span> <span class="author-post">by <?php the_author() ?></span> </div> <div class="entry"> <?php the_content(''); ?> </div> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <div class="clear"></div> </div> <?php endwhile; ?> <?php comments_template(); ?> <?php else: ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif ?> <?php get_sidebar(); get_footer() ?> You could clearly see <?php the_content(''); ?> Put what ever you want before and after that line. I hope it will help.
  14. have you tried using joomla before? I recommend joomla for this. There are ready made modules for this and its free. You just have to be resourceful.
  15. Try to go to Pages menu in CMS and check the home page setup.
  16. I am not so sure if there is but I would also like to see it. Anyway, what I am thinking is that you can explicitly tell php what to do if the user is in new york. My logic is this. 1. Get the IP address. 2. From IP address, get the country/city 3. Use the info of #2 for your IF condition. I am not so sure if I get your question right. But if you will just need to have a "local" time, you can use PHP's function for that. I have such article about it here Shoutbux
  17. I havent seen such a facility but if there is I hope somebody will be interested to post it here. Just a question, why do you need to upload bulk update? Isn't it that when you prepare the bulk update you are encoding it in the computer? why not directly encode it in the CMS? Isn't it has the same number of times to encode the update? Just wondering.
  18. check the path in your configuration file. You should change it to the live sites' preference. You might have in there your hard disk path so change it.
  19. Use joomla and use a module for that. There are lots and lots for joomla
  20. In your line: $result=mysql_result($get,0); You lack one parameter and that is the column/field name. You should have $result=mysql_result($get,0,fieldname_here); But looking deeper in your code, your sql is wrong because you did not put an alias to your count(id). You should have like this $get=mysql_query("SELECT count(id) as howmany FROM database WHERE user='$user' and pass='$pass'"); $result=mysql_result($get,0,"howmany"); I hope that helps.
×
×
  • 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.