52,566 Archived Topics
Remove Filter ![]() | |
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 * … Web Development php ![]() | |
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 … Web Development email file-system php | |
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 … Web Development php | |
hello i want to write a filedownload code behind html button how its possible...?? i don't know how to write asp.net(c#) code behind html button on click event? | |
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 … Web Development php ![]() | |
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 … | |
Hey DW fellas I'm having some trouble when I run my code on IE. I tried it on Chrome and Firefox and it works, but it doesn't at IE. I think that is a Javascript problem, but I can't find the solution. So please, if you can give me a … Web Development javascript | |
![]() | |
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 … Web Development php | |
How can I log a user on automatically once they have been identified with a cookie in C#? Membership.ValidateUser("membersUsername","membersPassword") will let me know if it's a valid user but it won't log them on. Web Development asp.net | |
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 … Web Development php ![]() | |
**Hello every one, this is my first post since the day I registered. I need your help as I'm new to the programming world. I'm doing doing JavaScript and so far was going smooth.. But when I tried to work on the exercises that came with textbook, I failed. Here's … Web Development javascript | |
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 … Web Development php | |
Hi firends, hope you all dn well. Here i need one thing ! table1 - Which stores all user's posts ( `id`, `post`, `who` ) table2 - Which stores relations ( `id`, `from`, `to`, `status` ) ( `status` contains `accepted` and `hold` ) here i want to retreve the posts … Web Development php | |
so i have a table called image. in side image table it has image_id user_id image_short_name. i am trying to create upload page where user can sumbit image. but i want to make sure a user dont pick same image_short_name. for ex if a user called "dave" pick a image_short_name … Web Development php | |
Hy I have a problem with my apache in wamp it dosen't recognize my htaccess file and I have searched everywhare to find a solution to the problem. Fot starters I want just to show my 404 custom page but my code is not working. `<Files ~ "^\.(htaccess|htpasswd)$"> deny from … | |
![]() | I can't think of how this thing is called and so I can't find any example on google, I'll try to explain my vision best I can. I want to have a list of square divs, each has contant (but that's not the point), so the divs are standing in … Web Development javascript javascript-jquery |
consider the following code: $result=mysql_query($sql); $datas=mysql_fetch_array($result); $row=mysql_fetch_row($datas); $num_rows=mysql_num_rows($result); for ($counter=0;$counter<$num_rows;$counter++) { echo("<option value={$datas[$counter]['name']}>{$datas['name']}</option>"); } the problem is that it only picks the first record in the mysql database and duplicates it. can somebody help me solve this error Web Development php | |
i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it … Web Development javascript javascript-jquery php | |
Hey, I was wondering if someone could help me with this. I want to, when an anchor link is clicked, the id of the link is grabbed by jquery then passed to a function. The id is would be the same as the id of the div that is used … Web Development javascript javascript-jquery | |
Is there any way I could make specific text strings "invisible" on my web page? For example, If I were to specify the string "hxxp://nullrefer.com/?", I would need that text to appear invisible on my page everywhere it's mentioned, automatically. So, if the url "hxxp://nullrefer.com/?hxxp://www.Amazon.com" were to be mentioned on … Web Development javascript | |
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 … Web Development javascript | |
Hi guys, I have a maybe simple question, but I'm wonder how they do this: [http://www.blacknegative.com/#!/adisseo/](http://www.blacknegative.com/#!/adisseo/) background image scale perfect in all screen resolution (even 2560x1440 or 800x1280), and the background picture is only ~1000 x 1000 pixels. I make similar effect with <img src=""> and some javascript, but they … Web Development html-css javascript javascript-jquery | |
guys i'm having a really big problem right now..im trying to make a conditional statement using php but im having an logical error or syntax error..im trying to compute for the car rate but im not getting a correct output e.g i have a list of car which are "Small … Web Development php | |
![]() | Ideally I would like to take a value entered from an Option List and use it in a linked program before the form is submitted, The value would be used in a select search so that the operator then knows what to format of data to enter in the next … Web Development linked-list php session ![]() |
Hello! I have been trying to figure out why an upload script doesn't seem to work like it should but I couldn't understand why so maybe somebody here can help me out a bit please. Here is the function: function uploadFile($conn,$newsid,$table_name,$linkImg,$align) { global $msg,$maxSize; if ( $_FILES['userfile']['size']!=0 && $_FILES['userfile']['size']<($maxSize*1000) && … | |
I am attempting to create a live search using php/javascript to read from an XML file of student names, as the user types a search it shows results live Any tutorials, hints or tips? All my attempts have been futile | |
I have another problem that is driving me crazy. I separated sections on my page with normal anchors, but when I click, they take me to the part of the page where the div is, and I want to keep focus on the top part of the page, I mean, … Web Development html-css javascript | |
When we signout the form How can i disabling back button and, not only disabling back button but also delete history from browser. Suppose i used <script language="javascript" > javascript: window.history.forward(1); </script> to disable back button , its working. when i go to back list and click previous histories it … Web Development javascript | |
Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is … Web Development javascript | |
Hello: I would like to get confirmation from user, if a particular checkbox on form is not checked, whether they want to submit the form without checking this box. I have written the following, but need help with it --missing something. <script type="text/javascript"> function taxable(){ if (document.processEstimate.tax.checked == 0) { … Web Development javascript | |
Hello, I have a simple xml file online, all I want to do is read 2 things, the song name and song artist. I searched for a simple php script that does that with no luck. I really appreciate the help. This is what the xml file looks like <stwcue … | |
I am learning jQuery from Head First jQuery. But first they have asked me to install Apache, PHP and MySQL(in that order). Apache is successful. Up and running. Version 2.2.22 of Apache for Windows XP. I downloaded php-5.2.17-Win32-VC6-x86.msi(file name) and installed. Successful. So just to make sure php was working, … | |
Hi, For some reason form submit is not working properly while I am using Ajax. I want the result to be displayed on the same page. I am using Ajax for this, but when I submit the form, only text is being displayed rather than the actual value. This is … | |
Hello, I have a simple form. <form action="" method="post"> <label for="user">Name</label> <input type="text" name="user" id="user" /> </br> <label for="title">Title</label> <input type="text" name="title" id="title" /> <textarea name="body" rows="20" cols="60"></textarea> <input type="submit" value="Add Post" /> </form> I am trying to insert this to a table, which I am able to do. But … Web Development php | |
Hi, I am using php and html and i am trying to make two buttons: - Print button: that print a specific picture (not the whole page) - Download button: which will display the save as window to save a picture. Do you know if this is possible and how, … Web Development file-system gui image php | |
Hello friends If i want to add multiple images (suppose 10 images) to a database how can any one give me the sujjestion please help me Thank u in advance Web Development php | |
Hi I am working with ajax. `<form action="javascript:ajaxpage('files/search2.php', 'columnTwo')" method="POST"> Email :<input type="text" name="email" value=""/> <button>Submit </form>` The problem is search2.php does not work properly. It echo's the statements "The Email ID is :" but is not able to echo the value i.e $email search2.php `<?php $email = $_POST['email']; echo … Web Development php | |
Hello My webpage is opening on many urls ex: [http://www.cmpsol.net/acer-support.aspx](http://www.cmpsol.net/acer-support.aspx) and it is also opening on [http://www.cmpsol.net/acer-support.aspx/hp/rss/dell-support.aspx](http://www.cmpsol.net/acer-support.aspx/hp/rss/dell-support.aspx) and many you can after .aspx , it will open. currently i have made a permanent redirect to main url. i want show it as error pages. So how can i fix the … Web Development asp.net | |
hi, This is a bit complex.. I have 2 nested repeaters.. and 3 datasources(in markup) <asp:SqlDataSource ID=data1 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select MatrixRiskFactorId,Name,MaxWeight from Matrixriskfactor" ></asp:SqlDataSource> <asp:SqlDataSource ID=data2 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select * from MatrixQuestion" ></asp:SqlDataSource> <asp:SqlDataSource ID=data3 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand = "select MatrixRiskFactorId,Value,text from MatrixRiskFactorScore where MatrixRiskFactorId=2"> <repeater id=rep1 … Web Development asp.net | |
i just want to ask how to change the height og menu bar in dreamweaver if it is possible Web Development php | |
>could someone help me out of this code i have a problem the quoted input text could not be print see my codes `function generate_table(){ $query = "select id,branchcode,accountno,accountname,naturalaccount,mname,placeholder,design,elevel from account_codes"; $result = mssql_query($query); $index = 0; while($result_row=mssql_fetch_array($result)){ $index++; echo '<tr> <td><input size="2" type="hidden" value="'.$result_row['id'].'" name="did'.$index.'" id="did'.$index.'" disabled="disabled"/>'; echo '<select … Web Development php | |
Hello, anyone can help me with the conversion of single quotes in a string to double quotes? Am new to Ruby programming and still learning around on how to use it properly. I have an example in Delphi, which I want to make compatible with Ruby: function ReplaceSingleQuote(AText: String): String; … | |
I have a problem... I mean it looks good, but It's erroring up...? while($row = mysql_fetch_array($result)) { $fav = 0; $stop = 0; $id = $row['id']; $title = mysql_escape_string($row['title']); $body = stripcslashes(nl2br(mysql_escape_string($row['body']))); $time = date("n.j.Y", $row['timestamp']); $result1 = mysql_query("SELECT * FROM favoriteposts WHERE ip='".$_SERVER['REMOTE_ADDR']."' ORDER BY blogid DESC") or die(mysql_error()."<br><br>Please … Web Development php | |
Hi, Does anyone know if Bing translator is still available, or has it gone the same way as google, and converted to 'paid'? I'm trying to use jquery translate on a website that I'm building, but despite 3 days of searching I cannot find how to get a Bing Appid … Web Development javascript javascript-jquery | |
Hi I keep getting Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in and dont know how to fix. I have 1 table and need to display two colums awnser here is the code can any one olease point me in the right direction. <?php $result = mysql_query("SELECT … ![]() | |
I can't seem to figure out what I'm missing. After the end user selects one or more classes, they go to a page that runs a foreach statement to determine which discount to use on each class. But it doesn't seem to be adding the resulting total to the array, … Web Development mathematics php programming-construct ![]() |
The End.