Comments on: Diving into PHP: Day 11 http://blog.themeforest.net/tutorials/diving-into-php-day-11/ The ThemeForest Blog Fri, 18 Dec 2009 19:09:10 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: fahrrad http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-21561 fahrrad Tue, 25 Aug 2009 18:39:48 +0000 http://blog.themeforest.net/?p=1459#comment-21561 What about if a name already exist in the database and i want to get a error if the same name is submited again? What about if a name already exist in the database and i want to get a error if the same name is submited again?

]]>
By: whiz http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-19131 whiz Tue, 04 Aug 2009 21:16:04 +0000 http://blog.themeforest.net/?p=1459#comment-19131 ray is right when u submit a name the prev one is shown on the list. beside u can submit empty fields - shouldnt we check if there is an output before we update the list? ray is right when u submit a name the prev one is shown on the list. beside u can submit empty fields – shouldnt we check if there is an output before we update the list?

]]>
By: jqueryninja http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-19024 jqueryninja Tue, 04 Aug 2009 03:39:22 +0000 http://blog.themeforest.net/?p=1459#comment-19024 @Ray - More than likely you figured this out a few weeks ago, but I believe your problem is that you were querying the database and building your "name array" before you processed the form. Because the insert into the database happens after you build your array (in your code), you are missing the last item. To solve simply move the if($result) code block after the if(!empty section of code. @Jeffrey - Not sure if you keep up on these comments after so many months, but I am very appreciative of this series. Keep up the great work on both Nettuts+ and themeforest. @Ray – More than likely you figured this out a few weeks ago, but I believe your problem is that you were querying the database and building your “name array” before you processed the form. Because the insert into the database happens after you build your array (in your code), you are missing the last item. To solve simply move the if($result) code block after the if(!empty section of code.

@Jeffrey – Not sure if you keep up on these comments after so many months, but I am very appreciative of this series. Keep up the great work on both Nettuts+ and themeforest.

]]>
By: Giles http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-16812 Giles Thu, 16 Jul 2009 05:17:59 +0000 http://blog.themeforest.net/?p=1459#comment-16812 Hi Jeffrey, Having a bit of trouble... I'm trying this out with more than one row, but I don't know how to add more than one row to the array. $item[] = $firstName; That works fine, however the lastName row that I am using is the same for all of them. Would I do something like; $item[] = $firstName, $lastName; ...so that I can echo both variables in my foreach() statement? Thanks for the help, Giles Hi Jeffrey,

Having a bit of trouble… I’m trying this out with more than one row, but I don’t know how to add more than one row to the array.

$item[] = $firstName;

That works fine, however the lastName row that I am using is the same for all of them. Would I do something like;

$item[] = $firstName, $lastName;

…so that I can echo both variables in my foreach() statement?

Thanks for the help,
Giles

]]>
By: Michael http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-12998 Michael Tue, 09 Jun 2009 03:19:52 +0000 http://blog.themeforest.net/?p=1459#comment-12998 Just a note Texter doesn't seem to work correctly on windows 7 Just a note Texter doesn’t seem to work correctly on windows 7

]]>
By: Ray http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-12401 Ray Tue, 02 Jun 2009 20:07:44 +0000 http://blog.themeforest.net/?p=1459#comment-12401 Guys, I have this strange thing going on, where everything seems to work great, yet when i press the submit button it returns the value i added in the textbox before the last entry. Example: I input 'Some Guy' -> Nothing happens I input 'Some Girl' -> it echoes 'Some Guy' I input 'Some Boy' -> it echoes 'Some Girl' etc. One could state it lags 1 name behind. We might have seen this happen in the above screencast at the end, where Jeffrey entered a value twice athe the end of the tut. But no one mentioned this so i might be wrong :) Any ideas? Thanks!! Ray Guys,

I have this strange thing going on, where everything seems to work great, yet when i press the submit button it returns the value i added in the textbox before the last entry.

Example:

I input ‘Some Guy’ -> Nothing happens
I input ‘Some Girl’ -> it echoes ‘Some Guy’
I input ‘Some Boy’ -> it echoes ‘Some Girl’

etc.

One could state it lags 1 name behind.

We might have seen this happen in the above screencast at the end, where Jeffrey entered a value twice athe the end of the tut. But no one mentioned this so i might be wrong :)

Any ideas? Thanks!!

Ray

]]>
By: markj http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-9937 markj Thu, 07 May 2009 16:36:58 +0000 http://blog.themeforest.net/?p=1459#comment-9937 Can I just ask why I would get an error like this please? It happens even when I copy and paste your code. Fatal error: [] operator not supported for strings in /var/www/vhosts/mark.bluebit.co.uk/httpdocs/php/day11/index.php on line 9 Can I just ask why I would get an error like this please? It happens even when I copy and paste your code.

Fatal error: [] operator not supported for strings in /var/www/vhosts/mark.bluebit.co.uk/httpdocs/php/day11/index.php on line 9

]]>
By: Alex http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-8725 Alex Wed, 15 Apr 2009 15:56:34 +0000 http://blog.themeforest.net/?p=1459#comment-8725 Can you show teach us how to email form data along with an uploaded file? I have looked around some forums for an answer but they just tell you to use the free phpmailer. This of course doesn't teach me how the process actually works. I would love to see you do a tutorial on this and from the comments I've seen around in the forums I am confident others would too. Thanks again for your superb videos! Can you show teach us how to email form data along with an uploaded file? I have looked around some forums for an answer but they just tell you to use the free phpmailer. This of course doesn’t teach me how the process actually works.

I would love to see you do a tutorial on this and from the comments I’ve seen around in the forums I am confident others would too.

Thanks again for your superb videos!

]]>
By: wrerm http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-7790 wrerm Sat, 28 Mar 2009 00:07:00 +0000 http://blog.themeforest.net/?p=1459#comment-7790 Jeff did your page update automatically when you clicked "Submit" ???? Jeff did your page update automatically when you clicked “Submit” ????

]]>
By: Chris http://blog.themeforest.net/tutorials/diving-into-php-day-11/comment-page-1/#comment-7451 Chris Sun, 22 Mar 2009 21:17:27 +0000 http://blog.themeforest.net/?p=1459#comment-7451 I'm shocked that there was no mention of PDO. In any case, I really like the tutorials. I hope we get into some more advanced stuff like OOP & Zend Framework. I’m shocked that there was no mention of PDO. In any case, I really like the tutorials. I hope we get into some more advanced stuff like OOP & Zend Framework.

]]>