39,395 Topics

Member Avatar for
Member Avatar for lotpb

Please help I am stuck on how to click checkbox and put area code in textfield <?php $array1 = array("(516)","(631)","(718)"); ?> <?php $AreaCode = $array1; ?> <td><input name="Phone" type="text" value="<?php echo $array1[0] ?>" size="15" /> <input name="RadioGroup1" type="radio" id="RadioGroup1_0" value="<?php echo $array[0]; ?>" checked="checked" /> <label>(516)</label> <input type="radio" name="RadioGroup1" id="RadioGroup1_1" …

Member Avatar for lotpb
0
78
Member Avatar for AnjX

I get this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pixogeni/public_html/arcade/admin/commandcenter.php on line 46 Well this is line 46, I can't seem to figure out a fix for it... if (isset($_GET['p']) && $_GET['p'] == "login") { Any suggestions? :S Thanks in advance :)

Member Avatar for AnjX
0
145
Member Avatar for danielpataki

Hi everyone! I'd like to ask a simple question to which I can't really find a definitive answer. If I condense my code a lot, will this mean an increase in loading times which is significant enough? I like having my code spaced out, readable, but I would also like …

Member Avatar for danielpataki
0
214
Member Avatar for danishbacker

can anyone tell me how to upload a file iis server I use the following code now but it doesn't work in iis server. [code] $fileName = basename( $_FILES['fileName']['name']);//filename from post $currentdir=getcwd();//get current directory $target_path = $currentdir."\\snaps\\" . $fileName ; if([COLOR="Red"]move_uploaded_file($_FILES['fileName']['tmp_name'], $target_path)[/COLOR]) { echo "Success"; } [/code] can I get …

Member Avatar for danishbacker
0
142
Member Avatar for suredurga

I am bigginer in php. i want create a small admin section for an institute. i have admin table and students details table in my sql. i know , how to insert and update the data. but in my application there is one dropdown list for student courses.what ever i …

Member Avatar for sDJh
0
88
Member Avatar for yasmena

im new to Joomla..and i need somebody help me where the joomla scripts are ??? i mean i want to edit the JCE uploading script and i dont know where the scripts are

0
82
Member Avatar for cali_dotcom

hi, i have the wamp server installed on my pc and now i just downloaded the latest version of the zend frame work and need learn to use the zend framework. Does anybody know what steps i need to take to get the zend framework going?

0
78
Member Avatar for jt1

Hi there, I am writing a free php extension and am wondering if I'll need to compile it for each operating system (FreeBSD, Sun, etc...). I have compiled a separate dll for windows. Cheers

Member Avatar for daFool
0
64
Member Avatar for suredurga

hi friends and seniores, i have a registration form, i can inseted data into database. its working no problem. when retrieve the data it will displayed in the text boxes format.please send me the code . use one "dropdownlist" also.please............

Member Avatar for Shanti C
0
63
Member Avatar for maadri

HI everybody, i'm a final year student, doing an SMS shopping system, and i intend to make it as open source so that everyone can benifit from that. the system should allow the users to buy products from a vendor, by sending sms, currently i am working on php, but …

Member Avatar for maadri
0
97
Member Avatar for msimonds

Was wondering if you could take a look at the attached code. I have a form that is making a call back to the database and populating search form for parts. As you type in parts, it renders choices (screenshot2 attached). You can then click on a choice and it …

0
104
Member Avatar for queenc

hi i want to upload photos. i have a upload button when the upload button is clicked a window will pop out and uploading image option are there. when the close window buttton is clicked in the pop up,i want to close the pop up and the path should be …

Member Avatar for BrettH
0
67
Member Avatar for MDGM

Hi all! Im making an upload script that uploads an image file, saves it and saves a thumbnail copy in a different directory. I have tried a couple of scripts and have found one which I think will work nicely but i cannot get it working. The script is below: …

Member Avatar for MDGM
0
121
Member Avatar for PanGraphX

Does anyone have a solution to separate include template? I have the index.php calling for the control file and a template page. I'm wanting it to call up template1.php if you click on this, or else template2.php if you click on this. I don't know if I'm making sense. Example: …

Member Avatar for PanGraphX
0
78
Member Avatar for benjamindemers

Hey folks! I just got one of those forms that you can create at phpformgenerator. Well everything went super on install and use. The problem is that when the form is sent to an email recipient the text the visitor types into the text area has no formatting on it …

0
10
Member Avatar for justinmyoung

On a previous thread, a member was nice enough to help me out. The script worked fine, until I added other variables. Now, it won't register in the database. My eyes are not working. Any ninjas? Thanks [B]reg.php[/B] [CODE]<?php require( 'config.php' ); $con = mysql_connect( $mySQLhost,$mySQLuser,$mySQLpass ) or die( 'Error: …

Member Avatar for justinmyoung
0
173
Member Avatar for rickarro

Hey All, I'm having trouble figuring out why I can not put aphostrophies in my input form. This is a user input area and it won't take words like, don't, won't ...etc. Here is the input form [code] <?php if (!isset($_SESSION['valid_ad_user'])) { echo "<h2>Sorry, you do not have permission to …

Member Avatar for rickarro
0
100
Member Avatar for Narayanank
Member Avatar for cali_dotcom

hi, i just tried to add the email function to my website so that when users sign in the recieve an email but i keep getting this error. does anybody know what's wrong: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" …

Member Avatar for pritaeas
0
149
Member Avatar for davewylie

I want to be able to identifying users to my website so that I can see when they last logged on and highlight changes to certain pages when they see them for the first time. One problem is that a user's IP address may be dynamic, so I don't see …

Member Avatar for Manuz
0
136
Member Avatar for rogenie

I am using the latest phpmyadmin. I have a database and within it is a whole bunch of tables. I want to load a semicolon delimited text file but it doesn't seem to work. Here is the sample of my text file where 55 is the field id. Field title …

Member Avatar for rogenie
0
180
Member Avatar for jackakos

I have a form in which there is a table that displays a list from the MySQL with checkboxes to each displayed name. I have to make a selection out from the list by checking some the checkboxes all may be all the checkboxes in some circumstances. A. I have …

Member Avatar for jackakos
0
171
Member Avatar for danishbacker
Member Avatar for emhmk1

Hi All, Basially a client wants to visit his site click on the admin link and upload some images and some text so his page refreshes with the new stuff showing at the top and the older stuff below it. I was thinking at first of using include but not …

Member Avatar for emhmk1
0
84
Member Avatar for tkhalane

Hi everyone I want to add all text files in a given directory to a html combo box, when the user selects a file, I have one php script which takes the file and adds it to mysql query LOAD DATA INFILE! I have successfully loaded data from a given …

Member Avatar for somedude3488
0
82
Member Avatar for AnttiK

Hello, How do I post a new value with a form to PHP? I have a table of data and when I click one of the <td>-cells it switches to a text input area where I can type the new value and then update that row. Everything works just fine …

Member Avatar for AOlevel1
0
147
Member Avatar for designingamy

Hello all! I was working using php code and then realized that I wanted to add multiple combo boxes so I found an already written javascript code and decided to use that. However, I am using sessions and want to collect the data from what they chose to follow thru …

0
67
Member Avatar for Will Gresham

I have got a slight problem with the code below, I am getting entries into the Database with null values, which as far as I can see should not be possible I have both Client-side JS to validate the fields are not empty and PHP to do the same, Just …

Member Avatar for Will Gresham
0
107
Member Avatar for yasmena

Is It Possible to pass a variable through an included file include("../admin/addcustomer.php?page=partner"); i tried it but it says : Failed to open stream: No such file or directory plz i need help and if it's not possible how can i pass this variable

Member Avatar for yasmena
0
191
Member Avatar for kevin wood

i am trying to set session variable using a form but i ahve never done this before and i am unsure of how this is done. i have had a look at a few examples on line but still i am not clear on how this works. here is what …

Member Avatar for kevin wood
0
80
Member Avatar for MDGM

hii all, I have a 5 star rating system which writes a cookie as the following when the user rates a product: [CODE] $pid = $_GET['pid']; //product ID (primary key) $ratepostpone = 300; //5 minutes until it expires and the user can rate again $cookieroot = '.mysite.com'; //my website's directory …

Member Avatar for MDGM
0
95
Member Avatar for PanGraphX

Does anyone know where I can find great examples of PHP snippets? I’m a beginner to PHP, just know the basics. I learn by examples. Looking for good code, no flaws.

Member Avatar for PanGraphX
0
62
Member Avatar for gandil

I have a db query, which show datas from mysql database. I want to do : ıf number of rows from query is bigger than x do something if small do another thing. Namely; [code=php] $qry = mysql_query("SELECT * FROM data_table WHERE page='$page'",$dbh); $total = mysql_num_rows($qry); if($total>7) { something... } …

Member Avatar for jt1
0
143
Member Avatar for soultrav

Hello! The error above appears on line 9 and i can't seem to figure it out! [code=php] <?php srand(time()); for ($i=0; $i < 5; $i++) { $rand1 = (rand()%13 + 1); $rand2 = (rand()%4 + 1); $slot[$i] = $rand1*10 + $rand2; for($j=0;$j<$i;$j++) while(slot[$i] == slot[$j]) { $rand1 = (rand()%13 + …

Member Avatar for jt1
0
136
Member Avatar for Venom Rush

Hi all Just want to know if it's possible to check if a checkbox is checked on page load. Venom Rush

Member Avatar for danishbacker
0
70
Member Avatar for Zurompeta

Hi everyone, I made a chunk of code where I wanted to perform a "for" loop within a concatenated string. This is what I came up with: [CODE]$message = "The Top 5 Employees of the month are:" . for ($ctr = 0; $ctr < 5; $ctr++) { $num = $ctr …

Member Avatar for R0bb0b
0
116
Member Avatar for Shanti C

Hello.. I want to counts clicks for a flash script.. For image it is easy to do..but for flash i don't know how??? Can anybody know about this...please help me... Shanti

Member Avatar for FlashCreations
0
136
Member Avatar for justinmyoung

strangely enough I got this to work once but I can't understand how. I've looked it over for hours. need help. here's the situation. all I want to do is have my form, a basic form, insert information into my database. It works for all my fields, except two. I …

Member Avatar for justinmyoung
0
116
Member Avatar for Loopster

Hello, I'm looking for some code that will recognize my recent blog posts (say 6 most recent posts) and display them on the homepage of my static website. The homepage would show a few lines from the blog with link to the post. Can someone help? The server is Linux …

Member Avatar for mexabet
0
148
Member Avatar for ashish100

I am using mod_rewrite in my website.It's a social networking website.There are various groups in my website.Some groups are lie "<spirit","<Iam the ONE>" etc. Previously every page used to get displayed by it's id,so there was not any problem But now since I am using mod_rewrite so the page's name …

Member Avatar for viksan
0
104
Member Avatar for queenc

hi i have a application in which i want to get the zipcode or search based on the zipcode.when the users give the radius and a particular zipcode..i want to get the zip code based onthe radius .please tell me how to do that.. thanks

Member Avatar for queenc
0
722
Member Avatar for tanha

Hi. I want to know the best method of making auto installer for our application, like a page appears and asking for the mysql server information such as username and password and also database and so on, and also default account for the application? something similar to moodle and etc …

Member Avatar for tanha
0
213
Member Avatar for geordiejon

I am trying to get to grips with Object Oriented PHP. Last week we were given a exercise to do, which creates a webpage, using a class and a client which will call the class. I am totaly not getting the hang of this, and i am getting so frustraited …

Member Avatar for vl4kn0
0
150
Member Avatar for cosby

hi everyone can someone help me with the regular expression to chop the string in to peaces basically i am looking for a pattern to match this line in the file. "1980_1.rtf" (5 December 1984) Cosby and Cosby (189 street of people) i want to get a specific string on …

Member Avatar for somedude3488
0
57
Member Avatar for nishant52

I want to develop online event for my college's tech fest similar to [URL="http://www.deathball.net/notpron/"]"NOTPRON"[/URL] game. To be more specific the game should be like [URL="http://www.shaastra.org/2008/Events/Kryptyk/contest/login"]http://www.shaastra.org/2008/Events/Kryptyk/contest/login[/URL] or [URL="http://www.thesilenceguild.com/Dom/game/"]http://www.thesilenceguild.com/Dom/game/[/URL] I know php and DHTML. I have prepared question for the levels. But i need to know how to implement it. Please help …

Member Avatar for somedude3488
0
230
Member Avatar for MDGM

Hi all, Iv made a simple 5 star voting system and need a way to make sure the user can't vote on the same product again in the next hour. I'm not a mathmatician and get really confused with the time calculations and have tried quite a few methods now …

Member Avatar for MDGM
0
142
Member Avatar for brose

I am new to PHP and need help with a website I'm creating. Using a MySQL database I have created a table storing all of my images, descriptions, links etc. I need the product images to display on the PHP page (which I've already figured out) and be links to …

Member Avatar for sDJh
0
90
Member Avatar for quecoder

hello , I've visited the new paltalk web interface [url]http://express.paltalk.com/[/url] that i liked so much , and wondering what programming languages one can use to make a similar service .. that integrates voice and video chat ... maybe Flash & actionscript ? and does the hosting have to have certain …

Member Avatar for sDJh
0
139
Member Avatar for danishbacker
Member Avatar for Shanti C
0
72
Member Avatar for virspy

hi, Iam viru can any one help me in creating the addproducts page

Member Avatar for Shanti C
0
108

The End.