- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 17
- Posts with Upvotes
- 13
- Upvoting Members
- 13
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
83 Posted Topics
Re: You want URL and not path. I suppose you could try `echo 'http://localhost/img_mysql/images/' . $row['image']`. | |
Re: You could open new topic. But answer to your question could be done with Mailchimp service. And if you want to use it dinamically from your PHP application, you can use their API system. | |
Re: Have you checked the [docs](http://www.php.net/manual/en/features.file-upload.multiple.php) already? | |
Re: Go to `/usr/local/bin` location and execute `mv composer.phar /usr/local/bin/composer` command. Then you can use `composer` further. Double check what [docs](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) say. ![]() | |
Re: PHP interpreter doesn't check `.html` pages unless stated otherwise. In Apache2@Ubuntu/Debian use this directive in `.htaccess` file. AddType application/x-httpd-php .html .htm or AddType application/x-httpd-php5 .html .htm If you are running PHP as CGI, you should write AddHandler application/x-httpd-php .html .htm or AddHandler application/x-httpd-php5 .html .htm Solution from [here](http://stackoverflow.com/questions/4687208/using-htaccess-to-make-all-html-pages-to-run-as-php-files). | |
Re: So show some code where you stuck. I can recommend [great article](http://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/) of how to ask for help. Help us to help you. ;) Other than that, you can use AJAX to move recorded file to DB since you have already the file name/location. You can tweak `invokeSaveAsDialog` function of … | |
Re: 1. We don't know what `user_1` and/or `user_2` are. 2. Post complete HTML form. 3. Post JS/AJAX code used. 4. Post PHP code used. [How to ask](http://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/). | |
Re: This doesn't work this way. Check [here](http://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/) and try again. | |
Re: Shorthand is easy to remember as well: http://php.net/manual/en/language.operators.comparison.php#92685 | |
Re: Welcome to aboard. First, you shouldn't use mysql driver but you should use mysqli if procedural (as this example is) or PDO (preferable) if OOP. Secondly, you need to loop over returned results. Check [example 2](http://php.net/manual/en/function.mysql-query.php#example-1794). Also, check what have you got if print_r($result) without html tags. | |
Re: Also, I think you should omit `onClick="update_cart_detail()"` since you trigger function and whole AJAX process by clicking `id="update_cart"` which is that button. ![]() | |
Re: Before form you want to check out if data is sent by POST so let's say right after line 40 (or first line after opening if condition) you need something like: if ( isset($_POST['submit_btn']) ) { // do what you need // insert or what ever // don't forget validation … | |
Re: Can you test it on non secured page and check results, some development environment maybe? ![]() | |
Re: Copy all files to localhost and check if there is same behaviour. | |
Re: Check if .htaccess is written well for online environment. | |
Re: Check [this](http://datamapper.wanwizard.eu/) docs. | |
Re: Try to add any relevant code in next post (i.e. PHP, HTML, CSS, JS that is used in action). | |
Re: Check if [this solution](http://webcheatsheet.com/php/reading_clean_text_from_pdf.php) suits you. I have just googled it. Seems like possible solution. I am getting some results but not wanted. Try if it will fit your request. ![]() | |
Re: Seems like `$topuid` is not an array. `var_dump($topuid);exit;` just before line 198 to see what is there. | |
Re: I use: `isset($_POST['checkboxName']);` to determine checkbox fields. | |
| |
Re: What stopped you from [google](http://bit.ly/1mP54SY)? (Hint: w3schools, phpfileuploader or tutorial on php.about.com seem to be good ones.) | |
![]() | Re: Some practice I've met and started to use was to have folder named assets in the root: -application -assets --css --img --js -system .htaccess index.php Third party libraries are meant to be in `application/third_party` folder. |
Re: It's not secured enough. Someone could manually type id in url and update wrong page. | |
Re: Try to look the code in first place. I am very satisfied with Google Chrome right click Inspect element context option. If you check it, you will see that login form is just div *css-ed* with `display: none;` rule. With JS/jQuery you can make the magic removing that rule (class) … | |
Re: It looks like there is IO.php (not necessarily) file with same class name (mandatory) in it to me. I would say there is `public static function intValue($int = FALSE){}` or something like that inside class. Are you familiar with OOP? | |
Re: Following your pseudo logic, closest answer would be if (refreshed == TRUE) { revertColor(red) } | |
Re: Revert the loop code. It is fine. Variable is created and you can use it next in code. My question is where do you pick `$_POST['edit_event']` in your form? Because you set condition for fetching data if edit_event is posted. | |
Re: [Save your file as utf-8 without BOM](http://ch1.php.net/manual/en/function.session-start.php#103550). | |
Re: [You have to](https://www.google.com/search?q=dinamically+creating+email+address&oq=dinamically+creating+email+address&aqs=chrome..69i57.8688j0j7&sourceid=chrome&es_sm=93&ie=UTF-8#q=dynamically+creating+email+address&spell=1) configure a mail server host on your own server or use the API of your host service. | |
Re: Try with setting: `$db[‘default’][‘db_debug’] = false;` in database.php file. | |
Re: You would need understanding of OOP and classes. [Here](http://www.phpkode.com/source/s/simple-xlsx/simplexlsx.class.php) is the class doing that. | |
Re: $faces = array ('4', '1', '2', '3', '6', '5'); $wheel1 = array(); foreach ($faces as $face) { $wheel1[] = $face; } Wouldn't be simplier:`$wheel1 = $faces;`? | |
![]() | Re: Please use search engine for this kind of question. Check [this simple search](http://bit.ly/1fSPghZ). And these are first 4 results: a) [One](http://stackoverflow.com/questions/9349142/twitter-bootstrap-2-modal-form-dialogs). b) [Two](http://stackoverflow.com/questions/16154216/twitter-bootstrap-modal-form-submit). c) [Three](https://gist.github.com/havvg/3226804). d) [Four](https://www.youtube.com/watch?v=PrtmSNlsE6U). ![]() |
Re: [User-defined function](http://www.php.net/manual/en/functions.user-defined.php). Had to be coded in one of files included before. | |
Re: What is the error when you say 'it just doesn't work'? You described way of doing that. Btw. you could try if mailer class is working with one if condition (ln. 42): <?php $name = trim($_POST['name']); $email = $_POST['email']; $comments = $_POST['comments']; $site_owners_email = '**************'; // Replace this with your … | |
Re: Check [this code](http://wordpress.org/support/topic/how-to-drop-table-from-database). Bit different than yours. | |
Re: User's login to management page should check DB table column to see if it is available or not. That is column which value is changed by admin. So, when user logs in to account or even as logged in member click the link to management page (in case there is … | |
Re: Can you show the code of method `user_exists()`? | |
Re: Since you are using javascript field validation, take a look of [this](http://jqueryvalidation.org/) integrated jQuery solution. | |
Re: Try with: `center = new google.maps.LatLng(30.0599153,31.2620199,13) || map.setCenter(marker.getPosition());` | |
Re: I am thinking of that button is using JS to print out the discount code. It could be used with AJAX to count clicks and save it to the DB table too. | |
Re: Hi. If you are beginer, this code woube more than suitable for you. Consider it this way: if there's any line you understand - the code is over you, otherwise you are over code. :) I would suggest you [php.net](http://www.php.net) and some series on youtube. Go to my chat room … | |
Re: //use assignment operator http://www.php.net/manual/en/language.operators.string.php $message = 'start of output string'; if (true) { $message .= 'conditional body of string'; } $message .= 'end with whole string since it's begun'; | |
Re: You can use js or some of jquery functions [add(), append(), appendTo()] to get such result. | |
Re: I think those are just safety and security improvements. If your code is clean way and well coding habit guarded (i.e. if you have coded nice bridge if required file doesn't exists), there is no need to worry about. Here you have [changing log and list of what is done … |
The End.