39,320 Topics

Member Avatar for
Member Avatar for MrXortex

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 …

Member Avatar for diafol
0
122
Member Avatar for shanboy

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 …

Member Avatar for Squidge
0
251
Member Avatar for Sanchixx

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 …

Member Avatar for diafol
0
306
Member Avatar for sirus23

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 …

Member Avatar for sirus23
0
1K
Member Avatar for hwoarang69

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 …

Member Avatar for Biiim
0
141
Member Avatar for rayidi

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 …

Member Avatar for Biiim
0
190
Member Avatar for hwoarang69

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 …

Member Avatar for ckchaudhary
0
142
Member Avatar for dany12

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 …

Member Avatar for almostbob
0
841
Member Avatar for mwenyenia07

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

Member Avatar for junior_rosul
0
112
Member Avatar for ak47carbon

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 …

Member Avatar for dany12
0
426
Member Avatar for SuchANewb

Hello everybody! My roommate had a problem and asked me for some help. I do not write in Java so I would need some help translating my code from PHP into Java. Here is the code: <?php mysql_connect ( "someserver", "someusername", "somepassword" ) ; mysql_select_db("somedatabase"); $q = mysql_query ( "SELECT …

Member Avatar for NormR1
0
425
Member Avatar for PravinSW

Can anybody will tell me how a submenu or dyanmically selected dropdown list items can fetch something from the database and then display it on the page. please if any one has the idea or code please help me...I am begging for that in PHP.

Member Avatar for jacob21
0
60
Member Avatar for ehpratah

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 …

Member Avatar for ehpratah
0
172
Member Avatar for stephen_UK

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 …

Member Avatar for stephen_UK
0
195
Member Avatar for Mihujoy

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) && …

Member Avatar for cereal
0
167
Member Avatar for smoothe19

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

Member Avatar for rotten69
0
79
Member Avatar for amruta.phadke

Hello Everyone, I developed a web app in php on version 5.3.1. My whole project is working awesome on my system, but when i upload it to server(php version is 5.2.9-1), it is not working properly. Is there any chances that this issue is getting just becasue of php versions??? …

Member Avatar for veedeoo
0
42
Member Avatar for UFO Disko

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 …

Member Avatar for UFO Disko
0
155
Member Avatar for jackbauer24

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, …

Member Avatar for jackbauer24
0
278
Member Avatar for harshm027

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 …

Member Avatar for dany12
0
1K
Member Avatar for harshm027

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 …

0
94
Member Avatar for brainfo

I am having a problem on fetching content from wordpress admin page to ajax tab menu which is placed in index.php. I can fetch content to index.php but i am not able to fetch it to ajax tab menu. Any idea how to resolve it. thanks in advance.

Member Avatar for ko ko
0
173
Member Avatar for drjay1627

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 …

Member Avatar for ko ko
0
150
Member Avatar for microbert

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, …

Member Avatar for ko ko
0
248
Member Avatar for knrakesh

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

Member Avatar for websols
0
106
Member Avatar for harshm027

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 …

Member Avatar for harshm027
0
332
Member Avatar for mariaceline_21

i just want to ask how to change the height og menu bar in dreamweaver if it is possible

Member Avatar for mariaceline_21
0
99
Member Avatar for code739

>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 …

Member Avatar for broj1
0
211
Member Avatar for AjixPreston

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 …

Member Avatar for scarcella
0
113
Member Avatar for patocardo

For security reasons, several articles recommend "do not cache pages". So I usually put the following at the beginning of my web pages header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); That works very …

Member Avatar for jmichae3
0
202

The End.