Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
2 Commented Posts
~19.4K People Reached
Favorite Tags

59 Posted Topics

Member Avatar for Motifaithed

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

Member Avatar for rproffitt
2
407
Member Avatar for scarcella

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 …

0
161
Member Avatar for scarcella

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 …

Member Avatar for jkon
0
232
Member Avatar for Arvin1

Wordpress is amazing piece of sofware. We use it for small-heavy blog driven sites.

Member Avatar for phillipf
-2
106
Member Avatar for Chem_1

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.

Member Avatar for Chem_1
0
803
Member Avatar for malatamil

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.

Member Avatar for almostbob
0
337
Member Avatar for hxinen

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, …

Member Avatar for scarcella
0
3K
Member Avatar for scarcella

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 = …

Member Avatar for veedeoo
0
463
Member Avatar for scarcella

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 …

Member Avatar for LastMitch
0
305
Member Avatar for scarcella

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 …

Member Avatar for LastMitch
0
240
Member Avatar for kingsonprisonic

This is some nice piece of code, thank you. It really helped alot with my project. ~ Marais

Member Avatar for Iamateur
4
1K
Member Avatar for antwan1986

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 …

Member Avatar for com00085
0
3K
Member Avatar for vijayram
Member Avatar for diafol
0
117
Member Avatar for drjay1627

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....

Member Avatar for ko ko
0
151
Member Avatar for AjixPreston
Member Avatar for SakuyaCross

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.

Member Avatar for WebOutGateway
0
216
Member Avatar for scarcella

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

Member Avatar for azghanvi
0
1K
Member Avatar for dineshswamy

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?

Member Avatar for dineshswamy
0
105
Member Avatar for h2so4_2003

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

Member Avatar for scarcella
0
75
Member Avatar for mohamedasif18

[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.

Member Avatar for mohamedasif18
0
115
Member Avatar for gopi17

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

Member Avatar for scarcella
0
94
Member Avatar for zack654

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 …

Member Avatar for veedeoo
0
243
Member Avatar for wildplace
Member Avatar for vimalseo
0
127
Member Avatar for scarcella

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

Member Avatar for Keeame
0
153
Member Avatar for diafol

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

Member Avatar for diafol
0
116
Member Avatar for danielbala
Member Avatar for rch1231
0
97
Member Avatar for scarcella

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 …

Member Avatar for rch1231
0
201
Member Avatar for prasanna123

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].

Member Avatar for scarcella
0
141
Member Avatar for klemme

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 …

Member Avatar for scarcella
0
182
Member Avatar for dhaval.2cool

It depends where your getting the images from. The code can be very simple to very complex. Please be more clear.

Member Avatar for scarcella
0
72
Member Avatar for gilanib

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

Member Avatar for scarcella
0
195
Member Avatar for scarcella

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 …

Member Avatar for deceptikon
0
117
Member Avatar for bibiki

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

Member Avatar for bibiki
0
141
Member Avatar for scarcella

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 …

Member Avatar for scarcella
0
86
Member Avatar for zooferic
Member Avatar for scarcella
0
277
Member Avatar for scarcella

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' ); ); …

Member Avatar for scarcella
0
211
Member Avatar for johndoe111

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 …

Member Avatar for scarcella
0
155
Member Avatar for Karlwakim

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 …

Member Avatar for scarcella
0
148
Member Avatar for scarcella

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" …

Member Avatar for lps
0
152
Member Avatar for scarcella

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

Member Avatar for Database Shardi
0
105
Member Avatar for scarcella

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 …

Member Avatar for scarcella
0
181
Member Avatar for scarcella

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 …

Member Avatar for Narue
-1
345
Member Avatar for scarcella

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 …

Member Avatar for scarcella
0
174
Member Avatar for scarcella

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 …

Member Avatar for scarcella
0
158
Member Avatar for scarcella

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" …

Member Avatar for scarcella
0
154
Member Avatar for scarcella

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

0
103
Member Avatar for MaddTechwf

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

Member Avatar for betabasic
0
101
Member Avatar for scarcella

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.

Member Avatar for scarcella
0
109
Member Avatar for scarcella

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 …

Member Avatar for Ezzaral
0
146
Member Avatar for scarcella

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 …

-1
74

The End.