User Profile

Collapse

Profile Sidebar

Collapse
xyrhou
xyrhou
Last Activity: Apr 4 '10, 11:32 PM
Joined: Mar 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xyrhou
    replied to Error at sending Email confirmation
    in PHP
    i downloaded a PHPMailer_v5.1 but where do i need to extract it at my online host?
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to Error at sending Email confirmation
    in PHP
    Can you please specify what is a mail server? T_T im a total newbie at uploading sites online php etc..

    I contacted the host they said i should use SMTP Authentication but did not tell me how to..

    There is a webmail option at the mail menu in their plesk system but im not sure about it..

    here is the site

    sneakersworld.o rg

    thanks
    See more | Go to post

    Leave a comment:


  • xyrhou
    started a topic Error at sending Email confirmation
    in PHP

    Error at sending Email confirmation

    When i uploaded my site i got these error at registration. When a user register he/she will receive a confirmation email with the link to activate his/her account.
    But i got this error when i click register:


    Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in E:\Inetpub\vhos ts\sneakersworl d.org\httpdocs\ Sneakers\includ e\mailer.php on line 40

    the line 40 of my...
    See more | Go to post

  • xyrhou
    replied to assigning $_SESSION
    in PHP
    Thank you so much it works now.. ^_^
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to mysql_affected_rows
    in PHP
    i finally got it.. ^_^

    i just add ORDER BY ImgID DESC LIMIT 1

    sorry for the newbie trouble..

    Thanks ^_^
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to mysql_affected_rows
    in PHP
    one more question sir.

    i want to select the last row that was inserted at the database by selecting it in
    Code:
    <?php
    include("connection.php");
    	$sql = mysql_query("SELECT * FROM image WHERE ImgID = '" . $ImgID . "'") or die(mysql_error());	
    	
            $row = mysql_fetch_array($sql);
    
    echo "<img src=view.php?image=". $row['url'] . "&amp;mode=resize&amp;size=350x500
    ...
    See more | Go to post

    Leave a comment:


  • xyrhou
    started a topic mysql_affected_rows
    in PHP

    mysql_affected_rows

    i found this mysql_affected_ rows in php.net but there is no example for SELECT.

    i want to select the last save image then preview it by calling its url at the database.. is it possible with mysql_affected_ rows? or should i go for mysql_data_seek ()?

    Im still a newbie and still exploring the wonders in php.. though im guilty that i just copy and paste code and try to understand its function..

    i cant find...
    See more | Go to post

  • xyrhou
    replied to assigning $_SESSION
    in PHP
    Here is the code for pic.php
    Code:
    <?php
    	
    session_start();
    include("connection.php");
    
    	echo "Pageviews = ". $_SESSION['random'];	//checking if Session is passed
    
    	$ImgID = $_SESSION['random'];
    			$filename= $random;
    			$path = 'images/' . $filename . '.jpg';
    		$sql = mysql_query("SELECT * FROM image WHERE ImgID = '" . $ImgID .
    ...
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to assigning $_SESSION
    in PHP
    When i tried putting a session on my pixel.php i got these error:
    i got a
    Code:
    	header("location: pic.php");
    at the end of the pixel.php

    Do the header affect the Session?

    Here is the error:

    Warning: session_start() [function.sessio n-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs \WWW\Sneakers\f iles\pic.php:2) in C:\xampp\htdocs \WWW\Sneakers\f iles\pic.php...
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to assigning $_SESSION
    in PHP
    Thanks you so much. What a great community..

    Im going to try to apply it on my code.

    If i have further questions am i going to post another? or post it in this thread?

    Thank you again!!
    See more | Go to post

    Leave a comment:


  • xyrhou
    replied to assigning $_SESSION
    in PHP
    Can you assign another variable to Session? Like this:
    Code:
    $random = rand (100 , 200)
    $_SESSION['random'] = "$random";
    So that when i start session again in another page its value is the last $random?
    See more | Go to post

    Leave a comment:


  • xyrhou
    started a topic assigning $_SESSION
    in PHP

    assigning $_SESSION

    Is it possible to call the $random in another page? i used the $random as a filename in the image that was converted from movie to jpeg.
    Code:
    $random = rand(1000000, 9999999); 
    $_SESSION['random']=$random;
    im planning to use the $random from page1.php in page2.php in these code to filter the url that im planning to display.
    Code:
    $sql = mysql_query("SELECT * FROM image WHERE url
    ...
    See more | Go to post

  • xyrhou
    replied to How to save image PHP
    Im sorry about that. I got carried away by my problem forgot to be aware of forum tags. I'll edit it. Thanks

    Sir do you have any idea how to pass the $image to the database?
    See more | Go to post

    Leave a comment:


  • xyrhou
    started a topic How to save image PHP

    How to save image PHP

    I tried to convert a movie (SWF) to Jpeg using getpixel then the jpeg image will be pass to show.php.

    The show.php will be pop out in a new tab with the SWF converted already into a JPEG.

    I want to save that image into MySql but i failed to insert it correctly.


    Here is the Show.php code:
    Code:
    <?php
    	$data = explode(",", $_POST['img']);
    	$width = $_POST['width'];
    ...
    See more | Go to post
    Last edited by xyrhou; Mar 19 '10, 12:32 AM. Reason: No tags
No activity results to display
Show More
Working...