-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
-
Perhaps it isn't sending multiple emails, but rather, the form submit button is being clicked multiple times. Do you notify the user after the form has sent successfully? If you don't, then the problem is the UIX.
-
http://php.net/manual/bg/
-
What language do you speak?
-
I always wondered the same thing Damn, that's a lot of work. You must just be so used to it that you write it without thinking though.
-
foreach(Array as $key => $val) { if (in_array('Thumbnail', $val['Purposes']) { echo $val['url'] . " \n"; } else continue; }
-
I'm looking for some side jobs, and by side jobs I mean not permanent. I have extensive knowledge in web development, system administration, and system engineering. Please feel free to PM me if you are interested. You think it, I make it.
-
A million dollor Guru ! Where is he ?
Zane replied to ajoo's topic in PHPFreaks.com Website Feedback
DevShed -
I hear nothing but good things about VIM. Maybe that's the way you should go.
-
Congratulations to our new guru, QuickOldCar. Welcome aboard, decoder ring's in the mail; you must be there waiting near the mailbox when the delivery truck arrives or it self destructs.
-
That sounds like a PITA, but there is indeed a setting for it Moderate content of everyone in this group? YesNo until approved posts days since joining Enter 0 or leave blank in second field to not limit by days/posts
-
Redirect to different url depending on values of 2 dropdowns
Zane replied to Kevin_Verhoeven's topic in Applications
Instead of oudersessieouder1 and oudersessieouder2 Just create an array by naming the select tags this: <select name='oudersessieouder[]' ....> Then you can just count how many values are in oudersessieouder if( oudersessieouder1.length == 1 ) open 1 parent page else if ( oudersessieouder1.length == 2) open 2 parent page- 5 replies
-
- chronoforms
- redirect
-
(and 3 more)
Tagged with:
-
Use your datatypes the correct way. Prices shouldn't be stored as a string, it will bite you in the ass in the future because you won't be able to order your queries correctly, much less query them correctly. What happens when you want to search a range of prices? You can't use the greater than less than symbols for strings, as far as I know. Anyway, the £ symbol has no purpose in a price column. You can add that when you pull it out of the database. SELECT CONCAT('£', payRates) as payRates FROM yourTable Save yourself the frustration and use your datatypes. It's so worth it!
-
Give the anchor tag an id <a id='threelinks' href='#'>Open three tabs</a> then use jQuery (or Javascript ) $("a#threelinks").on('click', function() { window.open('page1.php', 'first page'); window.open('page2.php', 'secondpage'); window.open('page3.php', 'third page'); return false; });
-
Buy a theme from http://themeforest.net, that's the most straightforward way to start instead of creating a look from scratch. Then you can get to the nitty gritty and create your graphics and programming.
-
If you only need the first character of a string there is no reason to use substr, when you can easily access that first character directly, as if it were an array. $myString = "abcdefg"; echo $myString[0]; //will echo ==> a
-
I just started IRC back up again. Hopefully we're stable from now on. Hardware has been moved. Time will tell.
-
import csv file into mysql with file path in a textbox
Zane replied to iojbr's topic in PHP Coding Help
Look at str_getcsv() error_reporting(E_ALL); ini_set('display_errors', true); $file="spreadsheet-file.csv"; $csv= file_get_contents($file); $array = array_map("str_getcsv", explode("\n", $csv)); echo "<pre>", print_r($array), "</pre>"; $tdata = null; foreach($array as $k=>$v) { $tdata[$k][] = $v; } echo "<pre>", print_r($tdata), "</pre>"; -
You da man, David!
-
Yah, I know.. I've been looking into that, I installed PHP-FPM and that didn't help.. restarted both of them.. I've never used Nginx before, so it's a bit awkward to me.
-
Lost acces to my old a/c reset email not coming
Zane replied to codexpower2's topic in PHPFreaks.com Website Feedback
It's fixed, try again. -
It's been back online for a week or so now, and I just realized that I forgot to announce the fact. So fire up your preferred IRC Client and come join the fun, learn some, teach some, and opine. irc.phpfreaks.com:6667
-
If you're going to treat the id as a string, then use it like a string.. place quotes around the id $sql = "UPDATE `fruits` SET `type`='banana' WHERE fruitid = '$fruitid'";
-
I can only imagine, I wish I had bought stock in Google too.
-
Amazing how expensive those little bastards are.. $244 for 1 bitcoin.