User Profile

Collapse

Profile Sidebar

Collapse
Thew
Thew
Last Activity: Mar 11 '11, 08:07 PM
Joined: Aug 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thew
    replied to jQuery: Function gives... Nothing?
    But it still doesn't show anything. So...
    See more | Go to post

    Leave a comment:


  • Thew
    replied to jQuery: Function gives... Nothing?
    Removed the
    Code:
     = false
    ... But error console was empty.
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic jQuery: Function gives... Nothing?

    jQuery: Function gives... Nothing?

    Code:
    <!DOCTYPE html>
    <html>
    	<head>
    		<title>Example</title>
    		<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    		<script type="text/javascript">
    			(function($){
    ...
    See more | Go to post

  • 1: What an ugly code

    Code:
    mysql_query($query) or die (mysql_error());
    Isn't correct error handeling.

    Code:
    $query = "UPDATE tbl_products set prod_name = '$prod_name',cat_id= '$cat_id', prod_desc='$prod_desc', prod_price='$prod_price', prod_rep='$prod_rep',prod_brnd='$prod_brnd', prod_unit='$prod_unit' WHERE prod_id='$prod_id'";
    Get $variables outside codes... Like this:

    Code:
    echo 'This
    ...
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic How to get to apache webserver behind router?

    How to get to apache webserver behind router?

    So i have my ip adress going to my router page,
    192.168.0.1 to my router page, 192.168.0.100 failing,

    And i want to get 83.81.212.133 to my localhost page.

    I did everything i needed to do that they told me at portforward.com

    So i haven now in my router:
    [IMGnothumb]http://i.imgur.com/tvM81.png[/IMGnothumb]
    On my firewall:
    [IMGnothumb]http://i.imgur.com/l3h2f.png[/IMGnothumb]
    ...
    See more | Go to post
    Last edited by Niheel; Mar 1 '11, 05:12 PM.

  • Thew
    replied to Create image from url: multiple problems
    in PHP
    I searched on PHP.net and after some time i found this:

    Code:
    $text = base64_decode('Image could not be loaded!');
    	
    	$im = imagecreatefromstring($text);
    	header('Content-Type: image/png');
    	imagepng($im);
    	imagedestroy($im);
    But that doesn't seem to work at me? And the text in the upper-right corner? How can i do that?
    EDIT: I searched through the GD Functions and imagestring() worked. But...
    See more | Go to post

    Leave a comment:


  • Code:
    echo $data;
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic Create image from url: multiple problems
    in PHP

    Create image from url: multiple problems

    Code:
    <?php
    if(isset($_GET['img']) && is_numeric($_GET['img'])){ 
    $img = $_GET['img']; 
    
    $imgarray = array ( 
    '1' => 'http://www.path/to/image1.png', 
    '2' => 'http://www.path/to/image2.png', 
    '3' => 'http://www.path/to/image3.png'
    );
    
    $src = $imgarray[$img];
    header('Content-type: image/png');
    echo file_get_contents($src);
    }
    else
    ...
    See more | Go to post

  • I fixed it, the script im using is so big (876 rows and not finished) that i need to use multiple variables... So i got confused what $getsql and $sql was... But still thanks.
    See more | Go to post

    Leave a comment:


  • Thew
    replied to HOW to upload to two places?
    in PHP
    Try this:

    Code:
    <?php
    
    	$newname = dirname(__FILE__).'/upload'.$myvar;
        $newcopy = dirname(__FILE__).'/copy'.$today.$myvar;
    	
        
        if (!file_exists($newname)) {
    		if(!file_exists($newcopy)) {
    			if (move_uploaded_file($_FILES['uploaded_file']['tmp_name'],$newname)) 
    			{
    				echo 'File 1 has been uploaded...<br/>';
    				
    					if (move_uploaded_file
    ...
    See more | Go to post

    Leave a comment:


  • Thew
    replied to How to both name and $_GET variables in a URL?
    in PHP
    It was much easier if you tried it, and a lot faster too!

    here is the example:

    page.php?get=va riable#point
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic How to get the last 5 topics from a miniBB table?
    in PHP

    How to get the last 5 topics from a miniBB table?

    Code:
    <?php
    							$getsql = mysql_query("SELECT * FROM minibbtable_topics ORDER BY topic_id DESC LIMIT 5");
    							if($getsql){
    								if(mysql_num_rows($sql) == 0){
    									echo 'No recent topics';
    								}
    								else
    								{
    									while($getdata = mysql_fetch_assoc($sql)){
    										echo '<a href="forum/index.php?action=vthread&topic='. $getdata['topic_id']
    ...
    See more | Go to post

  • Thew
    replied to Css width not working
    But how can i change that?
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic Css width not working

    Css width not working

    Code:
    <!DOCTYPE html>
    <html>
    	<head>
    		<title>Layout</title>
    		<style type="text/css">
    			body {
    				background-color: #DDDDDD;
    				text-align:center;
    			}
    			
    			body, td, div, ul, button, textarea, input {
    				font: 12px helvetica,arial,sans-serif;
    			}
    			#header1 {
    				background-color: #FD0000;
    			}
    ...
    See more | Go to post

  • Thew
    replied to How to host from your own IP address?
    Well when i go to my ip adress, i come on my router page. I saw something about ip forwarding, but i didn't understand anything of it?
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic How to host from your own IP address?

    How to host from your own IP address?

    I see at some websites, that people host stuff at an IP adress. But im wondering, how do they do that? I have Apache installed, but do i need something else?
    See more | Go to post

  • Thew
    started a topic Javascript Slide up en down by click doesn't work

    Javascript Slide up en down by click doesn't work

    Hi

    Im working on an HTML5 Valid and Javascripted page of my website. For that im using Motionpack.

    This is my webpage: http://html5.alphenwee r.nl/ (dutch)

    I want if someone clicks on radar, there appears a little radar underneath. But then, if someone clicks on that little radar, underneath all maps there comes a bigger radar.

    So this is the code i build:

    Code:
    <!DOCTYPE
    ...
    See more | Go to post

  • Thew
    started a topic Change innerhtml with function gives black page?

    Change innerhtml with function gives black page?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="style.css" rel="stylesheet"
    ...
    See more | Go to post

  • That means your email is not right set in your INI file.
    See more | Go to post

    Leave a comment:


  • Thew
    started a topic How to grab image from variable in URL
    in PHP

    How to grab image from variable in URL

    Its hard to explain.
    If i wanna know that if you for example type showimage.php?s how=1, it wil show the image that matches the image from the array.

    so if i have this array:

    Code:
    $imgarray = array(
    '1' => 'http://www.link.to/image1.jpg',
    '2' => 'http://www.link.to/image2.jpg',
    '3' => 'http://www.link.to/image3.jpg')
    showimage.php?s how=1 will return the image...
    See more | Go to post
No activity results to display
Show More
Working...