39,388 Topics
![]() | |
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. ![]() | |
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 .= … | |
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 | |
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 … | |
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 | |
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 … | |
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 … | |
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"); … | |
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. | |
kindly advise on how i can manage to send bulk sms where by, phone numbers are retrieved from my database. | |
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 … | |
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', … ![]() | |
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 … | |
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 … ![]() | |
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 … | |
**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 * … ![]() | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … ![]() | |
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 … | |
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 | |
![]() | so i checkied how to swap 2 variables without a 3rd one and I found this solution - $x ^= $y ^= $x ^= $y; but I don't understand what the xor (^) does! never used it before and php.net has some strange examples I don't get.. can someone explain … ![]() |
trying to display image from database. last image to 1st. but getting error: Warning: mysql_query() expects parameter 1 to be string, resource given in C:\xampp\htdocs\a_upload\gallery.php on line 12 Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in C:\xampp\htdocs\a_upload\gallery.php on line 26 $sql = mysql_query("SELECT * FROM image WHERE … | |
G'day, I have a created a search engine which allows users to search for files uploaded on my site. But I have created a progress bar as well and I want that progress bar to show after a user hits the search button. My Search engine code: <div class="searchBox"> <form … ![]() | |
I want to connect to sql server database from php code. OS: Win xp SP3 PHP ver 5.1.0 Database : SQL server 2005 IIS ver 5.1 What are the drivers needed for the connection to happen? I downloaded the php_sqlsrv_52_ts.dll and tried with it. It doesn't work.I think its for … | |
Hello, I have a comment box that uses php her is the code: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.html", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try again … ![]() | |
Hello everybody!I want to ask you something. I want to send values from C# windows form application in php webpage.In other words send post values from C# to php. The problem is that php script cannot read this values and preview this results which comes from C# app.Could you help … | |
how to print 30 random images and image name from database width out repeating same images? database: image image_id user_id image(image store here blob) iam thinking some thing like this but not sure i = 0; while(i > 31) $queryget = mysql_query("SELECT image_name FROM user WHERE username = '$user'") or … |
The End.