Re: New years resolution: To get serious with my programming! Anyone wanna help? :)
| From: | Jochem Maas | Date: | Tue, 08 Jan 2008 21:37:24 +0000 |
| Subject: | Re: New years resolution: To get serious with my programming! Anyone wanna help? :) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266921@lists.php.net to get a copy of this message | ||
Daniel Brown schreef:
> On Jan 8, 2008 3:43 PM, Jason Pruim <japruim@raoset.com> wrote:
>> I wasn't able to make it work with mysqli_insert_id() but you did give
>> me the idea of using mysqli_stmt_error() instead. Which doesn't return
>> anything if it was successful... So a simple:
>>
>> $check = mysqli_stmt_error();
>> if($check = "")
>> redirect;
>> }
>> else
>> {
>> exit();
>> }
>
> Hey, Dippy.... exit isn't a function!
no but it does take an 'argument expression' (is that the correct terminology)
which is handy when you want offer an exit code ... or a 'die' message.
die("PostTrack Alter Ego");
and die is a synonym for exit IIRC.
funnily enough exit is even listed as a function.
>