-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Zane
-
-
it's because you're using globals.
Globals are removed in PHP as of version 5.4, and they were deprecated in 5.3.
-
I just recently started using it. It is a massive IDE, and so chock full of shortcuts and features that you'd need Raymond Babbitt on hand to remember them all.
I also just love the fact that it also has an embedded database administrator panel. No need to alt+tab between phpmyadmin and such.
-
Cheers fastsol! Happy I just became a "Guru" Day.
-
It's installed but insists on being 19-21 minutes behind.
-
It seems as though the actual server is out of sync..
-
-
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.
-
-
What language do you speak?
-
@barand do you manually create those ascii chart/tables for db schemas or do you have some tool that does it?
I always wondered the same thing
I do it the laborious way. I have often thought of creating a tool (in fact every time I create a new diagram)
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.
-
-
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.
-
Moderation of first-time posts perhaps?
That sounds like a PITA, but there is indeed a setting for it
YesNo until approved posts days since joining
Enter 0 or leave blank in second field to not limit by days/posts
-
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
-
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.
-
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!
Multiple mySQLi calls
in PHP Coding Help
Posted
Probably because you are closing the connection before hand