Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

pa help po sa PHP about sa Upload Image

omnistrife42

Novice
Advanced Member
Messages
21
Reaction score
0
Points
26
eto ung codes na gamit ko andd may nakuha nmn akong code ng upload image sa youtube thouugh d ata gumagana sa system kko...
may alam po ba kaung alternatives na para paganahin ang upload ><????


eto po ung 3 php files na ginamit ko
http://*** BANNED LINK - DO NOT POST ***/7A3zn0aV
 
eto ung codes na gamit ko andd may nakuha nmn akong code ng upload image sa youtube thouugh d ata gumagana sa system kko...
may alam po ba kaung alternatives na para paganahin ang upload ><????


eto po ung 3 php files na ginamit ko
http://*** BANNED LINK - DO NOT POST ***/7A3zn0aV

bro try this

<?php
include(database mo);
include(session mo);


if (isset($_POST['change'])) {


$image = addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']['name']);
$image_size = getimagesize($_FILES['image']['tmp_name']);

move_uploaded_file($_FILES["image"]["tmp_name"], "uploads/" . $_FILES["image"]["name"]);
$adminthumbnails = "uploads/" . $_FILES["image"]["name"];

mysql_query("update admin set adminthumbnails = '$adminthumbnails' where admin_id = '$session_id' ")or die(mysql_error());

?>

<script>
window.location = "dashboard.php";
</script>

<?php } ?>

ganyan ko ginawa sakin. UPLOAD PICTURE. pero sakin pang profile picture hahaha. sana makatulong at kumana.
 
Last edited:
Back
Top Bottom