39,402 Topics

Member Avatar for
Member Avatar for serdas

i don't know if this is enough you to help me but looking at this could you tell me what i could do to fix it? [code] $user_check = mysql_query("SELECT userdb_user_name FROM default_userdb WHERE userdb_user_name='$reciever'"); $user_check = mysql_num_rows($user_check); Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in …

Member Avatar for serdas
0
174
Member Avatar for patharianidhi

Dear all Plzz help me I am stuck with PHP include function. I have given the include path in php.ini file as include_path="C\PHP_includes In PHP_include folder i have 3 files menu.inc which has html code, menu.css that has all the styles and menu.js that has certain functions. i have a …

Member Avatar for diafol
0
132
Member Avatar for rapperhuj

i used phpmyadmin software then i create a database named sycom_dbase, but the problem i can execute it. but there is no output? and error messages.. any comments suggestions. why did it happens. where should i save all my php files.. www? i save it in www folder but it …

Member Avatar for diafol
0
168
Member Avatar for vinithktp

Hi, I developed a website with captcha image validation. I developed it with PHP Version 5.2.5 and i uploaded on PHP Version 4.3.11 server. Captcha image validation working with my server. But it is not working with my cient server. Here iam sending my code sample. Please help me to …

Member Avatar for buddylee17
0
155
Member Avatar for headedtomexico

I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' …

Member Avatar for KevinADC
0
102
Member Avatar for akai80

Hi does anyone knows which is the most user-friendly software tool to use if i were to develop a Classified Ads website with enabled private messaging among users? I would prefer to develop on a PHP/MySQL platform. i have tried using GeoClassified but i find it quite user-unfriendly esp while …

Member Avatar for almostbob
0
76
Member Avatar for MSK 7

Hi to all, I am beginner in the field of php & I have a problem as, I want to open & show the contents of a new form (with in new window) , as click on submit button in the current form, after selecting one of the two radio …

Member Avatar for blocblue
0
79
Member Avatar for agent007

Hey All Has anyone successfully configured FastCGI (mod_fastcgi-2.4.6-AP22.dll), Apache (2.2.11) and PHP (5.2.8) on Windows XP (Pro XP3)? I have setup the fastcgi module and entered the directive to load it in the httpd.conf file, and edited that file further to use the fastcgi module to parse .php files. However, …

0
83
Member Avatar for almostbob

Got directed to these [url=http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/]cheat sheets [/url] php css scripting regular expressions 'et al' had to pass the link on

Member Avatar for diafol
1
133
Member Avatar for ibiyemi

Hi Everyone, I am a bit new to using php/Mysql and i am having a little challenge. I am creating an online form but on entering a value in one of the form fields, i want to add a link to check if that value is valid(ie if it does …

Member Avatar for diafol
0
70
Member Avatar for MSK 7

Hi, In PHP, What should be the right code so that , I can open & Show an another New form (may be called as "form1"), on the same current window page (may be called as "page1") , as i click & select one of the two radio button choices …

Member Avatar for diafol
0
69
Member Avatar for prateeknigamk

i am creating chat server in php where i need to get dynamic data in php page without referesh can anyone guide me how to do it

Member Avatar for samarudge
0
57
Member Avatar for suneer

i want to display database value in atable and edit new value in the existing field.how is it possible.please help me

0
44
Member Avatar for MSK 7

Hi to all, I am beginner in the field of php & I have a problem as, I want to show a form , after selection of one of the two radio buttons choices & then click on submit button. Can i use "onclick()" for this ? if Yes, please …

Member Avatar for diafol
0
97
Member Avatar for yonghan

Hi all,i need help with validating php form..I got 3 php files.How do i show the error messages beside the text input..Here are the codes that i have made.Thanks.. output_fns.php [code] <?php function do_kepala($title){ ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title><?php echo $title ?></title> <meta http-equiv="Content-Type" …

Member Avatar for diafol
0
182
Member Avatar for moi1

Hi I need a bit of guidance please, I want to place a feedback page on a small site I am working on. The form will have 4 options per question. I would like the results of feedbacks to be available to admin only in 2 ways: # as graph …

Member Avatar for diafol
0
72
Member Avatar for jumbla

Hi guys, I am trying to echo some output based on a variable in my PHP. I can code an if statement to echo the output if the variable is not empty [inlinecode] if (!$variable=='')[/inlinecode] but my problem comes if the variable returns the value "N/A". If it returns N/A …

Member Avatar for jumbla
0
109
Member Avatar for gordo58

Hi, I'm looking for help with my description meta. I have set it for a maximum length of 150 characters which works fine, but does anybody know how I can set it so that it stops after the first white space after 150 characters ie so that only full words …

Member Avatar for uncle_smith
0
134
Member Avatar for akai80

Hi im developing a PHP website based on PHPRunner 5.0 and i feel that it has basically all the features that im looking for. However i do want to have a private messaging system for users to send messages to other users. anyone knows which software have this component and …

Member Avatar for diafol
0
102
Member Avatar for blank81

hi there...i really need some help... am develope training calender.. so in table i have training title n date for training ( from jan to dec). i have some problem when i wanna view all the training. fo example . in table i got 3 data: 1. training abc with …

Member Avatar for diafol
0
64
Member Avatar for Jacky1

I want to know if this image has been viewed let say if I have this link : [url]www.example.com/image.jpg[/url] when the imaged get viewed I want store the time of view in db , my only problem is how can I tell if the image has been viewed and how …

Member Avatar for Jacky1
0
833
Member Avatar for LTT

Hello! Im new to PHP and have a need for what I have found out is called AJAX. I prefer to code in PHP for my DB access. I need to create a dropdown list using AJAX that updates it self depending on what is slected in the parent dropdown …

Member Avatar for jshpro2
0
459
Member Avatar for jakx12

ok so, the problem is it goes straight to the register3.php and it totally ignores the if statements! here is the code: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title>Register</title> </head> <body> <center> <h1>You Are Now Ready To Register!</h1> <div class=indexboxlarge> <form action=" " method="post" name="register"> <label>First Name*<br> <input name="name1" type="text" …

Member Avatar for erms
0
95
Member Avatar for ndeniche

somewhere i read to install joomla i must install it in apache's directory htdocs... but i installed the php5, apache, mysql pack with easyphp... and it doesn't have any htdocs folder... where do i install it then?

Member Avatar for Rapunzl
0
179
Member Avatar for jakx12

ok so what i want is the image path to be implemented in the database, but i dont understand how i can also include the speech marks for the image source. Heres my code: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Image Upload </title> </head> <body> <?php include("header.php"); ?> <br> …

Member Avatar for diafol
0
84
Member Avatar for LTT

Hello I have a question about pulling a value from a mySQL DB. Wondering how you pull just one value out of a list.. ex. Table name is People ID 1 FIRST NAME Jim LAST NAME Boberson PHONE 555-555-5555 AGE 99 How would I display just Jim Boberson's age on …

Member Avatar for LTT
0
71
Member Avatar for jakx12

Here is a little bit of the code that generates a number based on retrieving the largest number from the field Number. However when it inserts it in, the Number value is 0. here is the code: [ICODE]<?php SESSION_start(); include("dbcon.php"); dbcon(); $user = mysql_real_escape_string($_POST['user']); $content = mysql_real_escape_string($_POST['content']); $date = mysql_real_escape_string($_POST['date']); …

Member Avatar for jakx12
0
93
Member Avatar for mrcniceguy

as i`m creating a social network website,i would like to inhance members to upload photos to their personal albums. So i dont know how to get started,is there a free script i can use or somebody to explain to me what i need to do inorder to fulfill my needs. …

Member Avatar for mrcniceguy
0
129
Member Avatar for Andy2210

Hi am currently new to php i know all the basics etc but wanting to learn to do bigger more complicated things can anybody reccomend any gud software or books or anywhere could have help learning any help would be appreciated fanx

Member Avatar for almostbob
0
105
Member Avatar for serdas

i get this old code to create some tables but it gives me error this [code]#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`message` TEXT NOT NULL , `from` INT( 11 …

Member Avatar for almostbob
0
91
Member Avatar for csharplearner

Hello all, I have this strange problem. I have a website where user can post messages to the site. I see from yesterday that someone is trying is manipulate with the forms. I see some 1048 messages posted in a single minute to the site :( . I used nl2br(htmlentities(-displaymessage)).. …

Member Avatar for csharplearner
0
136
Member Avatar for jakx12

ok so here is the error:[ICODE] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from, content, date) VALUES('', '', '', '')' at line 1 [/ICODE] Between the apostrophes is the information from the …

Member Avatar for Shanti C
0
74
Member Avatar for vivichie
Member Avatar for gpittingale

Hello Again everyone, I have two forms on the same page, i have text input fields and the drop down boxes i created are auto submit boxes i created with javascript. Now the problem is that when form 1 submits itself it resets form 2 and vica verca i am …

Member Avatar for almostbob
0
100
Member Avatar for gpittingale

Can anyone please help here I have a form that i wish the user to select a product from a drop down box and then query it in a mysql then i would like to the user to input a number in the next field the press the submit button, …

Member Avatar for Fest3er
0
140
Member Avatar for rickarro

Hey All, I've got a web page that displays multiple boxes of text using php. The text are coming from .txt files instead of using a database to store the data. I can update these text files when I want to change the information. My problem is that I need …

Member Avatar for almostbob
0
217
Member Avatar for gpittingale

Hi everyone i cant seem to get my drop down boxes to retain the data the user selected is this code right? [CODE]<select name="bap1" id="bap1" onchange='this.form.submit()' value="" > <option>Select One</option> <option value='Energy Efficient Cooking' <?php if($_POST['bap1'] == 'Energy Efficient Cooking') echo "selected"?>>Energy Efficient Cooking</option>[/CODE] Tahnks in advance anyone!!

Member Avatar for gpittingale
0
93
Member Avatar for Anandmahalakshm

i want to Call a Div tag in validating a form.....that means i need a div call at the onblur condition....in that time i want to recieve a msg like this username is already exits....like that

Member Avatar for diafol
0
111
Member Avatar for antwan1986

Hi everyone and thanks for reading. Up until yesterday I was unaware of this technique, and have always just ran a user's password through md5 and stored the result to the database. From what I've been reading about SALT it sounds like a very cool way of making your passwords …

Member Avatar for antwan1986
0
103
Member Avatar for theimben

Im using [URL="http://uk2.php.net/manual/en/function.get-browser.php"]get_browser[/URL] and I only want to echo parts of what is returned. So say for example I just want to echo platform and browser from what the array returns. How would I do that. Thanks :)

Member Avatar for theimben
0
158
Member Avatar for websurfer

Hello, All: I have been testing and learning by building this simple CMS application and want see if works OK, but most importantly, would like to know if any of you are able to hack it. It's a simple "notepad" that allows people to register their own id/pw and able …

Member Avatar for websurfer
0
110
Member Avatar for almostbob

everybody knows strtotime is buggy in and around february first day +1month at the 29 30 31 January typically puts you in march 1 not Feb 1 last day of the month is not always 28 feb, may be march I have a script for my own use, residential leases …

0
106
Member Avatar for cowboysdude

The server crashed and I have tried everything I can think of and read everything I can find for the last 2 days....this is what I get when I try to open phpmyadmin... [COLOR="red"]Protocol error: Unknown command type, closing connection[/COLOR] I don't know how to fix this... I have tried …

Member Avatar for supportresort
0
106
Member Avatar for PomonaGrange

Hi There folks. I was thinking of trying to make a php function in my sites configuration file so that I could keep all mysql database info in one central file. I should mention that this is the first time I have tried to make my own function. I have …

Member Avatar for PomonaGrange
0
151
Member Avatar for jakx12

Basically what i want is the action page to have "GET" information in it. here is the code i got so far: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> </head> <body> <?php include("header.php"); ?> <center> <h1>You are currently uploading an image in gallery: <?php echo $_GET[gall]; ?> <br> <br> <br> <br> …

Member Avatar for diafol
0
84
Member Avatar for Aamit

[code] <? $sql="select * from table"; while($row=mysql_fetch_array($sql)) { $name=$row['name']; $view=$row['view']; $view1=$row['view1']; $id2=$row['id']; ?> <form name="myform" action="list.php?id=<?=$id2;?>&view=<?=$view;?>" method="post"> <td align="center" width="5%"><?=$name;?></td> <td align="center" width="5%"><?=$view;?></td> <td align="center" width="3%"><input type="text" value="<?=$view1; ?>" size="5" id="newva" name="newva"> </td> </form> <td align="center" width="5%"> <a href="/show/list?id=<?=$id2;?>&view=<?=$view;?>" onClick="document.myform.submit();" >Submit</a> </td> <? } ?> [/code] It shows out put …

Member Avatar for diafol
0
277
Member Avatar for nicolem443

Hi i am trying to output data the way i want but just cant get it to go in the right place. The code i have used is: [code=php]for($i=$n_start;$i<=$n_end;$i++) { echo "<img src='{$products[$i]['phonepic']}' width='100' height='100'>"; echo "<tr>{$products[$i]['modelNum']}</tr>"; echo "<tr>{$products[$i]['price']}</tr>"; echo "<tr><input type='text' name='item{$products[$i]['stockID']}' value='0' size='5'></tr>"; }[/code] As you can see …

Member Avatar for uncle_smith
0
83
Member Avatar for nicolem443

hello I've got two tables that I want to be connected(let's call the A and B), so I made a third table. In table A and B i got two primary keys a_id and b_id. Now I create the third table named AB. Inside that I create ab_id as primary …

Member Avatar for uncle_smith
0
97
Member Avatar for bmackler

Hi there. I am having a problem with hebrew coming through on my php form mail script. Its a standard script that is taken from the original .pl script. I got it from [url]http://www.dtheatre.com/scripts/[/url] When the form comes through, the hebrew is gibberish. what do I need to change to …

0
69
Member Avatar for theimben

I have this... [code=php] <?php $links = explode("\n", $_POST['links']); foreach ($links as $links) { echo '[PART="NUM"]'.$links.'[/PART] <br />'; } ?> [/code] Where it says NUM I want the number of its position in the array. So if I fed this to this script: [CODE] http://www.google.com http://www.yahoo.com http://www.ask.com [/CODE] The script …

Member Avatar for almostbob
0
96

The End.