Jump to content

jotorres1

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by jotorres1

  1. Hey guys, I was wondering what shopping carts do you guys use, and why? I have setup a couple including: Magento, Zencart, OpenCart, and even setup a shopping cart with wordpress. Each one that I have setup have a learning curve except for Wordpress, (if you know how to work with WP). I'd like to know what you guys use, and their usability, which would you recommend, and which is the least to recommend. Thanks. Edit: I Probably should have posted this under PHP Applications.. Can any admin change it? Thanks.
  2. Hello all, I've been looking around for a wordpress theme in order to replace a website. What I basically need is, a wordpress theme to display some information, and user to be able to purchase a package. I have found some themes that are quite helpful for what I need to do, but still need some assistance. The best theme I have found can be seen here: http://preview.ait-t...heme=guesthouse Choose the hotel topic for the above link. So basically, users will fill out a simple form with some of their required information, but I also need to implement a payment. Anyone have any ideas on how to integrate both? On another note, another theme I find decent is the following: http://thetraveltheme.com/ Again, the same is needed for the above theme as well. The website I need to imitate exactly is the following: http://reserveyourpackage.com/ Thanks for any help.
  3. Just like jessica said. The line beofre 90. You are missing ';' add it to the end of line dude. $jenis=$rows['jenissurat'];
  4. Hi Freaks! Can anyone here tell me how drupal views work or give me an example on how to create one. Here is what I'm trying to accomplish: I am currently creating a site using drupal CMS, and utilizing a reverse auction module. I would need to create a view to display these 'reverse auctions' but also, I would need for a site user, to also be able to create these 'auctions'. What I have so far is, I have created a view, and also created a new content type. This content type is specific to those reverse auctions. The view that I have, I am able to display the list of those auctions. How can I allow for users to create these auctions? I've done some searching and found that it is done with CCK module, and node reference, but can't seem to understand just yet. Anyone point me in the right direction? Thanks. PS. Im using Drupal 7.
  5. Read this article I wrote on jquery and ajax. http://www.jotorres.com/2011/11/display-database-information-with-ajax-jquery-and-php/
  6. Are all these selects done manually or dynamically?
  7. Hi all, I have the need for a script to register domain names, but I can't seem to figure out why it is not working. Here is what I have: <?php public function register_domain($domain){ $this->domain = $domain; $url = API_URL.'?key='.urlencode(API_KEY); $url .= "&command=register"; $url .= "&domain=".$domain; $curl_connection = curl_init($url); // Setup options for the cURL connection curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); $result = curl_exec($curl_connection); echo curl_error($curl_connection); curl_close($curl_connection); } ?> Thanks in advance.
  8. Hi guys, I am having trouble trying to integrate 1shoppingcart.com to a website I am currently working on. They have a samples page, with many language samples, except for PHP. Can anyone point me into the right direction, as this is very urgent that we get this done today. (We have a webinar today, and this is still not done) Any help would be gladly appreciated.
  9. <?php function nav_title(){ return "this is the title"; } function nav_link(){ return "This is the link"; } <h1><?php echo nav_title(); ?></h1> <ul> <li><?php echo nav_link(); ?></li> ?>
  10. Take a look at this article, and try to understand about headers in PHP. Header Errors in PHP Your PHP script should be above any output.
  11. You would need to convert one or the other, so that they are both the same format. You can take a look at my post that I wrote on handling dates in PHP. I still have a few more to talk about from this topic, but that is a start. Handling dates in PHP - Jotorres Web development
  12. Yeaup, just by the looks of it, a join should be able to help out and get rid of that nasty nested loop. In a regular quality review, u'd fail. I'm a reviewer myself.
  13. Hi APD1993, I have a post that talks about sessions here: http://www.jotorres.com/en/2011/12/sessions-in-php/ Once you understand how to create sessions, you can download a sessions class I have created. I explain how to use it on this post: http://www.jotorres.com/myprojects/simple-sessions-class/ Hope it helps.
  14. Whoops! I'll fix it right now! 3 secs later . . . There done! Gosh don't know how I missed that! and thanks for pointing it out for me!
  15. LOL! They are just trying to make a good impression for someone. I don't know though. Here's a small article I wrote concerning SOPA and PIPA. http://www.jotorres.com/en/2012/01/does-sopa-and-pipa-affect-me/ It's not much but hey, it's just my .02 cents!
  16. You need to use the $_SERVER global. <?php $url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?> Where $_SERVER['SERVER_NAME'] would return www.mysite.com and $_SERVER['REQUEST_URI'] returns "/member_login.php?redir=member_home.php?pet=dog&size=lrg&age=old". You can use a session variable (example $_SESSION['redirect_url']) to store the url, and when the user logs in, check to see if a $_SESSION['redirect_url'] is available, and if it is, then redirect, else, do normal process.
  17. I could recommend my blog, which I explain basics of PHP, and also have a sample of jquery with ajax. Everything I write in those posts are things that I have learned and want to share with everyone. http://www.jotorres.com
  18. Not quite sure what you are getting at, but you would need this: <?php $file_path = "upload/" . $_FILES["file"]["name"]; ?> If you have a table of uploads or whatever you want to call it, be sure to have a field for this path. For example, having image_path as a column in your table. Then, you would have to save $file_path into that field. When displaying this same image, all you would need is something like this: assuming you already worked your mysql etc... <?php echo '<img src="'.$row['image_path'].'" />'; ?>
  19. I had a similar issue once, and all I had to add was <script language="javascript"> Try it out, see if that helps you.
  20. I just tested this, and it worked for me. onclick="confirmMySubmit(this.form);"
  21. Try this: <script language="javascript"> function confirmMySubmit(theForm){ if(confirm("Ready?")){ theForm.submit(); } } </script> <form action="http://www.jotorres.com"> <input type ="button" value="Submit" onclick="confirmMySubmit(this.form);"> </form>
  22. You need to have a form first, then do this <script language="javascript"> function confirmMySubmit(theForm){ if(confirm("Ready?")){ theForm.submit(); } } </script> <form action="http://www.jotorres.com"> <input type ="button" name="GENERATE_DATA" value="GENERATE DATA" onclick="confirmMySubmit(this.form);"> </form>
×
×
  • 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.