- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
59 Posted Topics
Re: Hi, im a fellow christian. I have been wanting to make something like this for a while now, maybe want to develop it together? ~Marais | |
I have this regex ((?<!tpg-)assets\/[a-z\/\.](([^{]*?)\.(svg|jpg|png|gif|ico))) Which I use to replace asset source patterns in HTML or JS on with my build script.. It works, all but for one combination. The above regex fixed the situation, but wont work with V8 regex. Is there a work around? Take a look at … | |
Hey guys i need to get the database column into a 1 mentionable array. Here is my code. [CODE] $spreadsql = "SELECT `categories_id` FROM `".$TABLES['CATEGORIES_SPREAD']."` WHERE `products_id` = '".$_REQUEST['pid']."'"; $spreadquery = mysql_query($spreadsql, $connection) or die ('Could not execute SQL query:<br />'.$sql.'<br /><strong>'.mysql_error().'</strong>'); $spread = mysql_fetch_assoc($spreadquery); $array = array(); foreach ($spread … | |
Re: Wordpress is amazing piece of sofware. We use it for small-heavy blog driven sites. | |
Re: A simple test could be to open up cmd (Windows Key + R) and typing in services.msc then finding the MySQL service and stopping it, then starting it using XAMPP. Let me know how you go. | |
Re: I just read SQL injection all over the shop! You should consider using PDO, or something to just clean that up a little! Also, the mysql_query function or really any mysql_x function are depricated as off PHP5.5, so in essence you ought to use PDO anyway. | |
Re: The best solution for this, would be to use @hericles's database schema. Then to use what's called recusrion to then spit this out recursvily with nested ul's and li's. The SQL query that @hxinen posted is anything but optimzed or dynamic. Just grab a list, then loop through the records, … | |
Hi guys, so I need to know how to add Products programtically without getting this error. Fatal error: Call to a member function getPosition() on a non-object in \app\code\core\Mage\Bundle\Model\Product\Type.php on line 854 This is my code: class TCK_Forty_CartController extends Mage_Core_Controller_Front_Action { public function addAction() { $prdId = $this->getRequest()->getParam('product'); $cart = … | |
I have written a script to get all elements then i go and find this element in another iframe. Wait, so essentially i have 2 frame's on a page, the one on the left i called the "online" and the 2nd one i called the "base". My end result is … ![]() | |
can someone please tell me where im going wrong here? window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB; if ('webkitIndexedDB' in window) { window.IDBTransaction = window.webkitIDBTransaction; window.IDBKeyRange = window.webkitIDBKeyRange; } var VULY_DB = {}; VULY_DB = {}; VULY_DB.db = null; VULY_DB.onerror = function(e) { console.log(e); }; VULY_DB.open = function() { var … ![]() | |
Re: This is some nice piece of code, thank you. It really helped alot with my project. ~ Marais | |
Re: Hey guys, I have also come across with this porblem... The code worked for me... But now i want to update a table using these dynamic post variables how do i do it?? I have a bunch of dad fields then a bunch of mum fields and about a bunch … | |
Re: What exactly are you asking? Can you elaborate abit more?? ![]() | |
Re: Yeah, its probably best to create your own function to check this, maybe check for special characters and whether or not a user has inputed some php code. Strip tags etc.... | |
Re: Hi, i am going to have to say that [URL="http://www.concrete5.org/"]http://www.concrete5.org/[/URL] is by far the best and most user friendly CMS. Really nice and opensource. Its not as comprehensive as Joomla or Durpal but its really nice for small business or small sites. | |
Hey guys, i need to know if i can find a FREE excel like datagrid that will allow inline editing and has drop down boxes for some fields. Also filed may be able to collect their default data from a session variable. I have tried this: [url]http://azgtech.wordpress.com/2010/08/01/jqgrid-php-datagrid/[/url] Thanks, Marais | |
Re: Makes sense, what if 30 is entered and then a 02? You cant get 30th of February? So will you have some sort of validation? | |
Re: Hi, well i would make a loginpage.php and then just use some sort of code in the index.php to see if the user is logged in, if so then redirect to like controllpanel.php if not logged then redirect to loginpage.php. If you get my drift. ~Marais | |
Re: [URL="http://book.cakephp.org/2.0/en/"]CakePHP Manual[/URL] is a good place to start. It really is easy, i suggest using Codeigniter its a much better MVC and is well documented and easier to understand. | |
Re: Hi, i think i can see your question. My advice would either be put the curly brackets in ({) and maybe change the statement to if (mysql_num_rows($result) !=0) { ... [CODE] if (mysql_num_rows($result) !=0) { echo "Invoice No. found"; } else { header("location:main_login.php"); } [/CODE] Thanks, Marais | |
Re: Hi all, I've used many MVC's before for various projects. I recommend Codeigniter as its simple and a very open MVC. But yeah, start using a good MVC or any other OOP application and get used to it, then you'll realize in using this you'll automatically learn OOP. It's like … | |
Re: Yeah i am wondering the same thing, what is pipe and fork? | |
Hello everyone, i am a current PHP programmer. I am wanting to start C++, is there any good websites i could start to learn? Or is there any tips for programming with C++? Also what is C++, what is it used fore etc.. Thanks, Marais | |
![]() | Re: My advice create a class called something like general, then just extend the class fix with general. So then you can use those functions in the general class. I hope you get what i am saying. ~Marais ![]() |
Re: Im unsure as to what we help you with, help write the code or what? | |
Hi all, I have bought a domain on GoDaddy called techitproductions.com. At home i have a Linux Ubuntu Server running Apache, php5, ispconfig, courier mail etc... I have forwarded port 80, 25565 (for Minecraft), 8888 (for ispconfig), 22 (for Putty). My question is what ports do i need to portforward … | |
Re: A good website to use for some free psd's and some nice scripts for htmlizing the webiste, try [URL="http://www.webresourcesdepot.com/"]WebResourcesDepot[/URL]. | |
Re: Well, it is better to store the information in a session variable. But you create a variable such as $_SESSION['cart'] and store an awway of products in the cart in that. for example. [CODE]$_SESSION['cart'] = array(1,5,9,5);[/CODE] Where the array contains all the product id's that are in the cart. If … | |
Re: It depends where your getting the images from. The code can be very simple to very complex. Please be more clear. | |
Re: Hi, well first thing your passing the variable city to the franchiseDetails.php file, and asking for the id variable... So just change this and it should work. [CODE]<a href="franchiseDetails.php?id=<?php echo $row3['id'];?>"><img src="images/lbatkhela.jpg" width="150" height="150" alt="Batkhela" /></a>[/CODE] Thanks, Marais | |
Hi, i am new to programming and have self taut myself PHP. I am very comfortable with PHP and know the gist of things. But my real set back is the terminology and logical or theory side of programming. Where must i begin to learn this, or what websites or … | |
Re: Hi bibiki, That idea looks good, i personally would have done it the same way. I think it would save a lot of disk space doing it that way and also makes the table look a lot cleaner. Thanks, Marais | |
Hi all, I have just coded this for my website, is there a way to improve this either by extending for a more general use or just improving my logic's. Thank you in advance. [CODE] function removeEmptyArray($array, $remove_null_number = true) { $new_array = array(); $null_exceptions = array(); foreach ($array as … | |
Re: Hi, im with seslie. It is a bit vague. Could you please be a bit more clear. Thanks, Marais | |
Hi everyone, I am wanting to know if there is such a thing like the mySQL SELECT WHERE but in array's. I have this array: [CODE]<?php $array = array( [1] = array( ['test'] = '1', ['test2'] = '2' ); [2] = array( ['test'] = '4', ['test2'] = '2' ); ); … | |
Re: Hi johndoe111, I agree with urtrivedi but there you are only limited to 1 image for the product. Maybe edit the tables item and image to look like this. Item (ItemID, CategoryID, Name, Price, ShortDescription, LongDescription) Image (ImageID, ItemID, Name, ImageType) Thant way you can loop through the image table … | |
Re: Hi Karlwakim, This is a good idea, i recommend using [URL="http://www.verot.net/php_class_upload.htm"]http://www.verot.net/php_class_upload.htm[/URL] for the image uploads. Also you could create a database for the images for commenting and rating purposes. I would create a database with all the images (id, title, description, rateing). Then maybe another table with all the comments … | |
Hey Guys, i am having trouble placing this image over a youtube video, I want the .youtube_hat to be displayed over the youtube video in the top corner. So could anyone please help me!! The HTML [CODE]<div class="youtube_area"> <div class="youtube_hat"></div> <div class="youtube"> <iframe title="YouTube video player" width="450" height="258" src="http://www.youtube.com/embed/B-1Xqnx-KCw?rel=0" frameborder="0" … | |
Hi guys, i was wondering how could i embed my youtube cannel's latest youtube video. I dont want to have to go and update this every time i upload a new video. Thanks, Marais | |
Hi guys, i have got a client who wants to make an online food guiter / counter. I have got the book Calorie King with 17,000 foods but i don't want to type out the data. Is there someone who has the Australian food in a excel, access or mysql … | |
Hi guys, i have been having trouble installing MAC osx Lion or any other mac. This is my computer specs: Asus P8P67 LE Intel i5 2500 3.3Ghz NVida GTX 460 1gb 8gb RAM (4 x 2gb) 1333mhz Kingston I was wondering you guys could let me know step by step … | |
Hi guys i was wondering if you guys could let me know how i can post a form field using jquery and then be declared in a variable after post. The code for the html: [CODE]<table cellpadding="0" cellspacing="0"> <tr> <td></td> <td>Name:</td> <td>Email:</td> </tr> <tr> <td><label for=fri accesskey=f>Friend 1</label></td> <td class="tablePadding"><input … | |
Hey guys, I am wanting to find to see if a variable is in the array: Here is my code: [CODE] $domainlist = array(".com.au",".com",".co.nz",".net.au",".net",".net.nz",".org.au",".org",".org.nz"); $serverlist = array( ".co.nz=whois.srs.net.nz|220 Available", ".com=whois.crsnic.net|No match for", ".net=whois.crsnic.net|No match for", ".org=whois.publicinterestregistry.net|NOT FOUND", ".com.au=whois.aunic.net|No Data Found", ".net.au=whois.aunic.net|No Data Found", ".org.au=whois.aunic.net|No Data Found", ); foreach ($serverlist as … | |
Hey Guys, i am having trouble placing this image over a youtube video, I want the .youtube_hat to be displayed over the youtube video in the top corner. So could anyone please help me!! The HTML [CODE]<div class="youtube_area"> <div class="youtube_hat"></div> <div class="youtube"> <iframe title="YouTube video player" width="450" height="258" src="http://www.youtube.com/embed/B-1Xqnx-KCw?rel=0" frameborder="0" … | |
Hey guys i need help itegreating OpenCart into my existing website!!! If you guys can help me please!! Here is the website frontend: [url]http://www.peacockinkcartridges.com/new_site/[/url] But i need to have the opencart to products and stuff to display in the Catalogue page. Thanks, Marais | |
Re: Hey guys, here is an more advanced way to call the exe. [CODE]Process.Start(My.Application.Info.DirectoryPath & "\progs\calc.exe")[/CODE] Hope that helped. Thanks, Marais | |
I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this. | |
I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using … | |
I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using … |
The End.