39,323 Topics

Member Avatar for
Member Avatar for hwoarang69

image store in database long blob tying to work on upload.php page. where user can upload images. it works fine but when user upload a image size in mb's it give me 3 errors. Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\a_upload\upload.php on line 69 Warning: mysql_query() [function.mysql-query]: …

Member Avatar for |-|x
0
196
Member Avatar for hwoarang69

$file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false; $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image in $image //need help here nothing prints $exif_ifd0 = read_exif_data($image,'IFD0' ,0); $notFound = "Unavailable"; if (@array_key_exists('Make', $image)) { $camMake = $image['Make']; } else { $camMake = $notFound; } echo"$camMake";

Member Avatar for cereal
0
184
Member Avatar for pattmorter

Hey everyone. I was learning how to make a simple content system for my website today and I was following along the code at [css-tricks.com](http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/) and when I was all finished, I got this error saying: `Parse error: syntax error, unexpected $end in /home/gosports/public_html/gsbadmin/_class/simpleCMS.php on line 107` I read up …

Member Avatar for diafol
0
168
Member Avatar for Binarydog

Hi all, I'm hoping someone here might be able to give me some advice. My current client has hired me to create a product importer for their shopping cart. The problem I am having is that there is a total of 7,154 products which need to be inserted into the …

Member Avatar for Binarydog
0
189
Member Avatar for Red Dragon

Hi, I have a form which saves a string of text to a database with rawurlencode() which adds things like space characters (%20) and newline characters (%0D%0A), however, when I use rawurldecode() on this string it only decodes the space characters, and ignores all the newlines, by simply printing them …

Member Avatar for diafol
1
579
Member Avatar for missumissu

I tried many times to update a record. when I click update, it pop-up new tab. Then I try change name. When click submit. it show updating is successful but not update it in database. I dont know what wrong.. please help me. list_record.php : [code]<?php $host="localhost"; $username="MY_USERNAME"; $password="MY_PASSWORD"; $db_name="test_create_DB"; …

Member Avatar for Squidge
0
146
Member Avatar for pgmarco

Hello, I am familiar with PHP and MySQL and teaching myself how to create a login script, I am not sure if I am simple missing something or something is worong with the code. I am able to signup a user and submit the data to the MySQL table, It …

Member Avatar for pgmarco
0
324
Member Avatar for shujat132

i wanna extract many ziped folders, but i am not successfull. i have find out problem but not the solution of that. whenever i pass an array or associative array in a for loop to code given below to extract all ziped folders to unzip it stop working. $zip = …

Member Avatar for shujat132
1
224
Member Avatar for rakibtg

hi, my email form is written in php, it does not support multiple languages i mean unicode fonts. it shows something like this: খোলা জানালা . In this case what i should do.

Member Avatar for diafol
0
218
Member Avatar for hwoarang69

here iam checking if the image size is in mb's than i want to reduce the image to kb's. iam not sure how to do this. the if statment works fine. but i need halp inside. $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image in database. long blob if(strstr($file_size,'M')) //mb's { $upload_error .= …

Member Avatar for pritaeas
0
228
Member Avatar for masocha

l am working on a USSD service. The USSD gateway will send XML to my PHP script. My problem is how do l read the XML and how do l send back XML. Thank you in advance

Member Avatar for pritaeas
0
75
Member Avatar for dagtad

I'm using windows 7 and wamp server on my computer. I want to send email from my local host and i write the php code like the following <?php $to = 'dagtade@gmail.com'; $subject = 'test_subject'; $message = 'test_message'; mail($to,$subject,$message); ?> the above code neither displays error message nor sends the …

Member Avatar for pritaeas
0
109
Member Avatar for harshm027

Hi, I am using IN array with my where clause in mysql query. My query goes like this :- $sql = mysql_query("SELECT * FROM table1 where id IN ('$id_array')"); The problem is when I echo the query, I see 'Array' in the query instead of the id's. Please help

Member Avatar for pritaeas
0
56
Member Avatar for divyakrishnan

I used the code given below to take the count of files in a folder which is in another machine. On my localhost the glob() is working fine, BUT on the server it displays the array size as 0. $dir_path ="http://192.168.0.202/img/$sub_code/$sub_code".N."$churunano/*.jpg*"; $count = count(glob($dir_path)); How to find the count of …

Member Avatar for pritaeas
0
264
Member Avatar for wussa

Hi, I am running this [URL="http://checkpagerank.ws"]Check Page Rank[/URL] site There is just one prob left with the code. When I submit a domain for analysis if the domain doesn't have a history at archive.com it come out error like this Example [URL="http://checkpagerank.ws/?txt_url=http%3A%2F%2Ftl.my&Submit="]result[/URL]~ If result with archive.com is successful like this …

Member Avatar for ragufiles
0
871
Member Avatar for hwoarang69

trying to print last image from database. my image type is long blob. note this is all one file. //first get the last id in database and get last image form database <?php $lastid = mysql_insert_id(); $image = mysql_query("SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC"); …

Member Avatar for muralibobby2015
0
125
Member Avatar for newbie1234

in php i insert some data into database. In database s_no automatic increase when any data instered. I want to get that s_no. how do i get it.

Member Avatar for newbie1234
0
105
Member Avatar for mayreeh

kindly advise on how i can manage to send bulk sms where by, phone numbers are retrieved from my database.

Member Avatar for newbie1234
-1
367
Member Avatar for khajvah

Hello ppl, I am learning PHP. I already know some programming languages, so i didnt read whole book i had, but after i read part of the book, i understood that i get the information but can not use it, so my question is-Is there any videos or books, which …

Member Avatar for Red Dragon
0
309
Member Avatar for hwoarang69

i am store image in database by using long blob. here is my code for that $file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false; ... $query = mysql_query("Select * FROM image WHERE image_short_name = '$image_short_name_p' AND user_id='$id'"); $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); $image_width_height = getimagesize($_FILES['fileupload']['tmp_name']); $insert = mysql_query("INSERT INTO image VALUES(NULL, '$user_id_db', '$image', …

Member Avatar for diafol
0
199
Member Avatar for rori

hi, i posted this in the javascript forums but didn't get any replies, maybe this is a better place. i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists …

Member Avatar for marsystsm123
0
2K
Member Avatar for hwoarang69

this page just load random images from database. problem is that this page take like 10sec to load. which is too slow. is there any thing i can do to load it faster. note i want store image in database. <?php include("include/header.php"); //check, if user is loged in or not …

Member Avatar for diafol
0
1K
Member Avatar for aaloo

i m working on a linux server and my part of the code is this- $post = mysql_real_escape_string($_POST['post']); echo $post; but my $post variable is not getting printed. and when i print $post variable without using mysql_real_escape_string function ,it is working. i.e. echo $post; its a weird problem . can …

Member Avatar for broj1
0
121
Member Avatar for afrogfx

**how can i make next page and prev page in my gallery script .. when mid = id of images path = link of images i need 2 button next to get next image and prev to get last image ?? how can i do it ?** $mid=$_GET['mid']; $qur="select * …

Member Avatar for diafol
0
128
Member Avatar for EvolutionFallen

I have some web forms that contain several normal fields, and at least one upload field each. Upon submission, the contents of the form are e-mailed to the recipient. When I fill out the form *without* including a file for upload, it works correctly. I get an e-mail that, when …

Member Avatar for EvolutionFallen
0
213
Member Avatar for hwoarang69

note all image store in database . long blob. so i have a gallery.php page where i have all the image of user who i loged in. echo" <a href='zoom.php'><img src=\"$src\" width='130px' height='130px' class='image_p' /></a>"; now i want to make a zoom.php page. here i want to display the same …

Member Avatar for hwoarang69
0
198
Member Avatar for Borderline

Good evening I'm running a tipping competition, and am hoping to make the updating slightly less tedious. The code currently reads as follows: <?php $query = " SELECT SUM(comptipsterselections.profit) as Profit, comptipsterselections.stable, comptipsterboard.link FROM comptipsterselections INNER JOIN comptipsterboard ON comptipsterselections.stable=comptipsterboard.stable WHERE comptipsterselections.comp = 'aintree 2010' GROUP BY comptipsterselections.stable, comptipsterboard.link ORDER …

Member Avatar for Borderline
0
140
Member Avatar for aaloo

this is my javascript for validation of a form .It works perfectly <script type="text/javascript"> function validateForm() { var x=document.forms["contacts-form"]["email"].value; var atpos=x.indexOf("@"); var dotpos=x.lastIndexOf("."); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) { alert("Not a valid e-mail address"); return false; } var x=document.forms["contacts-form"]["name"].value; if (x==null || x==""||x=="Name:") { alert("First name must be filled …

Member Avatar for diafol
0
1K
Member Avatar for hwoarang69

trying to create upload page. 1st need help geting image size for ex 199mb or kb etc.. 2nd resolutiion 1000x39 etc 3rd how can get more information about the image.or camra for ex make, model, Aperture, ocal Length. 4th how to get date when its sumbited for some reason it …

Member Avatar for hwoarang69
0
3K
Member Avatar for jacob21

Hi, I have text in kruti dev 011hindi font. I wish to display it on web page using unicode mangal hindi font in utf-8 format. Need Help

Member Avatar for MarPlo
0
89

The End.