• Member Avatar for mattster
    mattster

    Replied To a Post in jquery is not firing

    I have replicated this in [jsFiddle](http://jsfiddle.net/z9v6eszt/1/), and all is working okay. Your alert script will not kick in until `$("#dd-event").change()` is called (as its within an IF statement). So as …
  • Member Avatar for mattster
    mattster

    Began Watching Saving picture

    Hello, I am trying to input pictures in student profile yet it doesn't work yet. I wonder why? studentinfo.php <?php include('includes/koneksi.php'); $student_id = isset($_GET['student_id']) ? $_GET['student_id'] : ''; $group_id = …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Saving picture

    You can easily do this with the temporary file using the [getimagesize()](http://uk3.php.net/manual/en/function.getimagesize.php) function $image_info = getimagesize($_FILES["file"]["name"]); $image_width = $image_info[0]; $image_height = $image_info[1]; The easiest way is to take the above, …
  • Member Avatar for mattster
    mattster

    Began Watching share values of one php script to another same php file

    hello i have a php file named index.php. within that file two php scripts are there ... they have to share four $variables values with each other...how coud i do …
  • Member Avatar for mattster
    mattster

    Replied To a Post in share values of one php script to another same php file

    If everything is contained within the same file, a static should be able to handle it. Without seeing your code it's difficult to tell. Just use some basic markup like: …
  • Member Avatar for mattster
    mattster

    Gave Reputation to diafol in A Simple Password Hash and Verify Class

    Hi All, thought I'd pass on a (very) simple password class which is built on the new `password_hash()` and `password_verify()` functions. You will need php 5.5.0+ in order to get …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Delete Confirmation

    echo '<td><a href="studentmgt.php?student_id='.$data['student_id'].'" onClick="return confirm("Are you sure you want to delete this")>Delete</a></td>'; Will never work, because your quotes are mixed up. Try this: echo '<td><a href="studentmgt.php?student_id='.$data['student_id'].'" onClick="return confirm(\'Are you sure …
  • Member Avatar for mattster
    mattster

    Replied To a Post in File upload will not work in linux

    I'm sorry I've made a mistake and told you wrong! You were right with `fopen()`! In the documentation, it states that in `fgetcsv()`, the length parameter became optional in v5. …
  • Member Avatar for mattster
    mattster

    Replied To a Post in File upload will not work in linux

    Why don't you use [file_get_contents()](http://uk3.php.net/manual/en/function.file-get-contents.php) instead if you're only reading the file? This should produce pretty much the same result, but doesn't worry about handling files etc. I really can't …
  • Member Avatar for mattster
    mattster

    Began Watching File upload will not work in linux

    I have this script that will NOT work no matter what i add to it, i have fopen not working and i believe that is the root of all my …
  • Member Avatar for mattster
    mattster

    Replied To a Post in File upload will not work in linux

    Platform shouldn't make a difference. These are PHP errors, and will show up no matter what platform you are running on. Are you CERTAIN the file `/uploaded/606.txt` exixts? And it …
  • Member Avatar for mattster
    mattster

    Began Watching how can support upload file type .txt and .html extension

    # #how can use file extension like .txt,.php,.html for the same script. # anybody can help# <?php if ($_POST['variable'] == '') { $variable = './'; // default folder } else …
  • Member Avatar for mattster
    mattster

    Replied To a Post in how can support upload file type .txt and .html extension

    $allowtype = array_merge($imagetype, $file_type); Because you're using a double quote, your two variables aren't being inserted into the array. Use [array_merge()](http://php.net/manual/en/function.array-merge.php), it will combine both of your arrays accurately.
  • Member Avatar for mattster
    mattster

    Began Watching Retrieving information from database to Textbox

    Can't display proper value in the textbox from database.Displaying only first word. * CODE: echo "<input type=\"text\" name=\"newstitle1\" value=".$row['news_title']."; There is no problem with the database part.please help.
  • Member Avatar for mattster
    mattster

    Replied To a Post in Retrieving information from database to Textbox

    echo "<input type='text' name='newstitle1' value='".$row['news_title']."' />"; You got your `"`'s all mangled up. There's no attribute opening to the value, and no closure of the value attribute and the input …
  • Member Avatar for mattster
    mattster

    Gave Reputation to veedeoo in Need Help? Check This Out First (or second)!

    I look for all of the above and these as my own personal rules **(some are maybe redundant)** 1. Ask for help rather than demanding for help. 2. Asking us …
  • Member Avatar for mattster
    mattster

    Began Watching How select the selector from its method?

    I need to select '#foo #three' using 'this' to get this result: cat dog cat Html: <div id="foo"> <div id="one">cat</div> <div id="two">dog</div> <div id="three">mouse</div> </div> JS: $("#foo #three").text($('this div:first').text()); I …
  • Member Avatar for mattster
    mattster

    Replied To a Post in How select the selector from its method?

    > I need to select '#foo #three' using 'this' to get this result Smells like homework to me? Well learn what the `.text()` function is and how to use it, …
  • Member Avatar for mattster
    mattster

    Began Watching MySQL Inserting NULL Value into INT Column

    I want to insert a NULL value into my integer column. if ($startYear == "") { $startYear = NULL; } mysqli_query($con, "INSERT INTO Application (startYear) VALUES ('".$startYear."')"); Before you ask, …
  • Member Avatar for mattster
    mattster

    Replied To a Post in MySQL Inserting NULL Value into INT Column

    Well assuming everything else is in order, try this in your code: $startYear = 1997; # Define variable here, I've used '1997' as an example, note that there's no commas …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Delete Confirmation

    SQL cannot in any way be executed by Javascript. Bad idea. Instead, you can use AJAX: $.ajax({ type: "POST", url: "delete.php", data: { comment_id: 12345 } }) .done(function() { alert( …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Questions using PHP mail

    You need to make `$body` equal it's new value. That explains why theres no content coming through, because `$bodys` isn't actually placed into the `mail()`. $body .= $bodys . "</body></html>";
  • Member Avatar for mattster
    mattster

    Began Watching Sliding Images in Background

    Hey guys. have a nice day.... can anyone tell me how to achieve something like this slider in background ? I used a full screen slider but can't write content …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Sliding Images in Background

    You can achieve this with a really simple jQuery script. I've used one from [here](http://www.jqueryscript.net/slideshow/Lightweight-jQuery-Background-Slideshow-Plugin-BgSwitcher.html), so it's just a case of changing the background attribute with a bit of jQuery …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Defining dropdown menu characteristics

    I took your original screenshot and had a play, and here is what I managed: [jsFiddle](http://jsfiddle.net/9g30y4kv/). It's hardly perfect and there are so many cool things you can do to …
  • Member Avatar for mattster
    mattster

    Began Watching saving download file in particular folder by user selection

    hi all i am trying to allow the user to select the folder to store the downloading file using javascript i didnt found input attribute for download like file i …
  • Member Avatar for mattster
    mattster

    Replied To a Post in saving download file in particular folder by user selection

    **Javascript cannot specify download locations of any file.** That would be a serious security problem. In most cases, I don't see what the problem is letting the user pick themselves …
  • Member Avatar for mattster
    mattster

    Began Watching Questions using PHP mail

    I'm trying to send an e-mail using the PHP mail function and having two issues in regard to the below code: 1) When I get the e-mail - it is …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Questions using PHP mail

    Dispite other errors in the code, `mail()` needs the following parameters: *to, subject, message (, headers etc.)* [(See here)](http://uk3.php.net/manual/en/function.mail.php) No from. So this will cause a problem. Your HTML is …
  • Member Avatar for mattster
    mattster

    Began Watching Not Inserting Data

    Hi there I am trying to add some data from a form into a MySQL database and it doesn't seem to been working. Any help would be appreciated. # PHP …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Not Inserting Data

    For a start, remember `mysql_*` functions are outdated in PHP now, so a much better idea to use `mysqli_` or PDO. There is also no need to open and close …
  • Member Avatar for mattster
    mattster

    Began Watching Adobe Font Kit / Google Fonts linked or embedded?

    Hey Folks, I'm investigating the use of selective Fonts - outside of the "usual" or default set and want to avoid making any font into an image file (.gif .jpg …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Adobe Font Kit / Google Fonts linked or embedded?

    Personally, I've never had a problem with [Google Fonts](http://www.google.com/fonts/). It is a vast library containing soo many free fonts to suit every purpose. A general font, like Open Sans or …
  • Member Avatar for mattster
    mattster

    Replied To a Post in How best to use Opacity to Display Images

    > Awesome! That worked! Nice one, please upvote and mark solved :) And yes that *css-tricks.com* example is great, but not so helpful for what you needed.
  • Member Avatar for mattster
    mattster

    Began Watching Contact Us does not work

    Hello, I have been trying to make contact us works. It appears that it works like I receive a success message but in actual it doesn't work like it suppose …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Contact Us does not work

    When you send an email using your code, but instead of PHP dynamically putting content into the email, you manually type it in yourself. It's to check to make sure …
  • Member Avatar for mattster
    mattster

    Began Watching How best to use Opacity to Display Images

    All, I am trying to use opacity to have one image on the page behind another image. The below code creates the opacity for the image in the div - …
  • Member Avatar for mattster
    mattster

    Replied To a Post in How best to use Opacity to Display Images

    > <img src="sills/cat_image_sill.png"><span><span></a> What the hell is going on here aha? `<img>` tags can't have child elements and god knows where the `</a>` came from. I've solved your problem using …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Defining dropdown menu characteristics

    [Here](http://codepen.io/philhoyt/pen/ujHzd) is an example of a 3 layer menu with some styles added to it, so maybe try adapting it? It's only your HTML and CSS arn't quite there. Hope …
  • Member Avatar for mattster
    mattster

    Began Watching Best way to use CSS Clip

    All, I'm wondering if their is a way to use the CSS clip to place my image propational within another image. In this case - I am giving users the …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Best way to use CSS Clip

    Yes you can use [javascript](http://www.w3schools.com/cssref/tryit.asp?filename=trycss_js_clip) to do it, and your syntax is correct. Or you can apply CSS direct to an image, like this: img.clip { position: absolute; clip: rect(0px,60px,200px,0px); …
  • Member Avatar for mattster
    mattster

    Began Watching how can i get values in form of array??from response

    hello, <?php $q=$_GET['q']; //echo $q; $con=mysqli_connect("localhost","root","",$q); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $abc=mysqli_query($con,"use $q") or die('cannot show tables'); $result=mysqli_query($con,"show tables"); echo "<select id='abc'>"; …
  • Member Avatar for mattster
    mattster

    Replied To a Post in how can i get values in form of array??from response

    Hi there, try this: HTML PAGE: [jsFiddle](http://jsfiddle.net/z87c2bvt/2/) PHP: <?php // Connect to DB $result = mysqli_query($con,"show tables"); while( $row = mysqli_fetch_array($result) ) { echo "<option value='". $row[0]. "'>" . $row[0] …
  • Member Avatar for mattster
    mattster

    Replied To a Post in formatting content in php email

    That's really good to know :) No worries anytime :D
  • Member Avatar for mattster
    mattster

    Replied To a Post in formatting content in php email

    Sure no worries, its pretty simple aha. A quick TinyMCE (with CDN) tutorial: 1) Shove this into your page, just before the `</body>` tag if possible <script src="http://tinymce.cachefly.net/4.1/tinymce.min.js"></script> <script>tinymce.init({selector:'textarea'});</script> And …
  • Member Avatar for mattster
    mattster

    Replied To a Post in unable to record group_level

    Oh yes sorry my bad, didn't see it. Maybe try indenting your code.
  • Member Avatar for mattster
    mattster

    Replied To a Post in Move an existing drupal site to my server?

    > ok I got the website to show finally. Good good, please upvote if any of us helped you with that. Make sure that Drupal's base URL is set up …
  • Member Avatar for mattster
    mattster

    Gave Reputation to stultuske in How to promote by online eCommerce website

    first of all: don't consider this a website, it's an eCommerce. whether or not it is online, it is, in the first place, a shop, so market it as such. …
  • Member Avatar for mattster
    mattster

    Replied To a Post in Portal System

    But my point remains, you need to actually know exactly what you're going to make first before you worry about HOW you're going to make it.
  • Member Avatar for mattster
    mattster

    Began Watching Hello evrybody,

    I am new to this forum. I hope to read and learn a lot from you. Regards, Brennen

The End.