39,320 Topics

Member Avatar for
Member Avatar for Vigasdeep

Hey Experts, Please Help me.. i am facing this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\tf\process.php on [B]line 22[/B] [CODE] for($b=1;$b<$_POST['studentcount'];$b++) { $c='sname' . $b; $ql="INSERT INTO stud (name) VALUES ('$_POST['sname1'])"; /*line 22*/ mysql_query($ql); } [/CODE] Please do checkwhats wrong with this, Regards, Vigas …

Member Avatar for BzzBee
-1
127
Member Avatar for phpDave

Hi, I have a counter and it works fine in firefox, but when I try to bring up the page to be counted in internet explorer in does not work. The page wont even be brought up in the browser. If I disconnect the include file to the counter it …

Member Avatar for phpDave
0
109
Member Avatar for Bubbleboy

I have an email form on my site which has an action to a php page. The php page detects whether the user has entered a name and email, if they haven't it directs them back, if they have it sends an email to me. I want to add a …

Member Avatar for diafol
0
121
Member Avatar for johndoe444

What is the server program that is usually used to php? Is it apache? If so how to deploy php applications to apache? I installed apache and try to look at their documentations. This seems a mammoth task to wade through this massive collections of documentations. What are the relevant …

Member Avatar for almostbob
0
84
Member Avatar for affee

so my PHP is operational. The script I want to run is here: [CODE] <div style=""> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td align=center><script language="JavaScript1.2"> /* Left-Right image slideshow Script- By Dynamic Drive (www.dynamicdrive.com) For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com */ ///////configure the below …

Member Avatar for Airshow
0
162
Member Avatar for agr8lemon

Hello everyone, I'm not sure the title fits my question, but I didn't know how to word it correctly. Here is my question. I'm working on a forum that pulls data from a SQL database via PHP. It's data on employee data (name, job title, what programs they have access …

Member Avatar for agr8lemon
0
113
Member Avatar for s32ialx

Ok so i have a template script my friend built for me. I'll include all file names OK so what is not working is file_get_contents is not grabing the content (1 I don't know where the content should be placed and 2 i want it placed in a directory so …

Member Avatar for s32ialx
0
328
Member Avatar for rahul8590

i want the user to enter the name in the query and only after entering the name the next input text appears. Unfortunately it doesnt work the way i want it to. here is the code [code] <?php // formtest2.php $flag = 0; if (isset($_POST['name'])) { $name = $_POST['name']; $flag …

Member Avatar for rahul8590
0
135
Member Avatar for Allison2009

Hello Everyone, We have a website driven by Zen Cart. There is a serious issue, which we find it extremely difficult to resolve. The issue is - We have a Registration Page. It has so many mandatory fields, like Telephone No. and Date of Birth. But users are able to …

Member Avatar for Allison2009
0
145
Member Avatar for alyssajones

Hey people, I don'r know much about PHP so I think you can help me on this one. I have a email form and the action says: [CODE]<form id="contato" method="post" action="[COLOR="Red"]contact.php[/COLOR]">[/CODE] The php is placed as follows: [CODE]<?php $to = "conde.taly@gmail.com"; $subject = "Site Contact" ; $email = $_REQUEST['email'] ; …

Member Avatar for diafol
0
229
Member Avatar for mrcniceguy

i have a comment system of which member can insert smileys which commenting to something )))that works well...Now i want the smileys to be desplayed in a small popup window like the one i have attached in screenshot..and dont know how to make it possible... i just believe that it …

Member Avatar for mrcniceguy
0
68
Member Avatar for hassancool

1). Well I am using a PhpBB forum.... Everything is working fine but I have a little question that where should I paste the php META TAG refresh code so that its not annoying for users!!! 2). My second question is that "is there any advantage of META TAG refresh …

Member Avatar for saiprem
0
91
Member Avatar for mcastu

hi i want to know that how can i search the entire database at once.... i have code with which i can only search from a single table but i want that search should be performed on entire database.... i m using php+mysql....... help me out...

Member Avatar for mcastu
0
201
Member Avatar for D4n1sD

Hello, I am really sorry for posting this here but I couldn't find anything simular to the net. I need to insert datetime values into my mysql db and in particular the current time second and minute value and than I want to call this value and do a $current_time-$mysql_time …

Member Avatar for BzzBee
0
108
Member Avatar for RobotFX

Hi! Does anybody know of a [U]script capable to read feeds and store them in static files[/U]? Also, if possible, to [U]create an index of these files, too, so visitors on the website can find them easily by date or name,[/U] for example? What I'm trying to do is to …

Member Avatar for BzzBee
0
311
Member Avatar for srilakshmitr7

I want to upload videos from my site into youtube. I worked on examples provided in oogle but i got strucked by auythentication process where it is saying invalid parameters in youtube page. Can anyone solve this problem.

Member Avatar for BzzBee
0
56
Member Avatar for whitestream6

I've been trying to create a specialised CMS, as none of the current open-source ones fit my needs for this project. I'm trying to create a CMS for a TV/episode guide which is similar to this: [url]http://library.digiguide.com/lib/programmenextshowing/Police%2C+Camera%2C+Action!-12578[/url] (one such example) - where records expire and delete from the database after …

Member Avatar for whitestream6
0
121
Member Avatar for tearose49

I'd like to display the contents of some fields in a MySql table as a table on a webpage. I found sample scripts, but I'm doing something wrong in trying to adapt them. Can anyone give me a link to a webpage that displays a table like this, so I …

Member Avatar for tearose49
0
102
Member Avatar for saiprem

Hi All I have my URLs without cleanup [url]http://10.0.0.76/project/mydashboard.php?section=12&section_childs=1[/url] [url]http://10.0.0.76/project/some_x_page.php?section=12&section_childs=1[/url] OR [url]http://www.myprojects.com/mydashboard.php?section=12&section_childs=1[/url] [url]http://www.myprojects.com/some_x_page.php?section=12&section_childs=1[/url] How can I get my URL like below [url]http://10.0.0.76/project/mydashboard/section/12/section_childs/1[/url] [url]http://10.0.0.76/project/some_x_page/section/12/section_childs/1[/url] OR [url]http://www.myprojects.com/mydashboard/section/12/section_childs/1[/url] [url]http://www.myprojects.com/some_x_page/section/12/section_childs/1[/url] I know we can do it with .htaccess, but i don't know how to write, can any one please help me to implement this.

Member Avatar for vitana
0
124
Member Avatar for AdventDeo

OK I'm not really sure how to put it but I will try my best to explain my question. Basically I am really lost when it comes to arrays and for loops, so I need help badly. I have in my HTML Form about 20 checkboxes like this: [CODE]echo "<input …

Member Avatar for AdventDeo
0
182
Member Avatar for hassancool

HI all, I am using a php Code for Image hosting script and having this kind of error continuously..... "Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83" Line Number 83 contains this "if (move_uploaded_file($_FILES['file']['tmp_name'],$filedir."/".$newname))" Help me plz how to get out of this trouble...... …

Member Avatar for saiprem
0
93
Member Avatar for Pooja J.

Hi, I have one page session-bom.php, in which computer parts are availlable for shopping. e.g. mouse , keyboard ect. with the checkbox. and textboxes to enter quantity and label of prices. When user hits 'submit' button, only selected parts goes to the bill.php page and showing their price multiplied by …

Member Avatar for as.bhanuprakash
0
246
Member Avatar for psathish2

this my code : plz solve this problem immediately [code] <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>GYM jobs</title> <link href="style/style3.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="ui.dropdownchecklist.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript"> $(document).ready(function() { …

Member Avatar for cwarn23
-1
169
Member Avatar for Pooja J.

Hi to all, I have 4 pages. page1.php, page2.php, page3.php and last.php. page 1, 2 and 3 pages have one text and submit button. The values enter by user in page1.php store in session var. and clicking on 'Submit' button. page2 shuold be open. In this page same procedure should …

Member Avatar for liamfriel
0
146
Member Avatar for trashed

Hi. I'm trying to write a script that fetchs image codes from a mysql database to display them into a 3 columns table. I got this so far: [php] $selection = $_GET['scelta']; $query = 'SELECT photo_code FROM'. $selection .';'; $result = mysql_query($query); $rows_nb = mysql_num_rows($query); print('<table width="75%" border="0" align="center">'); while …

Member Avatar for tips4php
0
2K
Member Avatar for futhonguy

Hi, I am wondering if i am able to insert 2 entries from a form to mysql. for example: [CODE]</tr> <tr> <td bgcolor="#eeeeff"> Is it a shared devices?<br> <font color='#F62817'>** If yes, please indicate the shared device num. </font> </td> <td bgcolor="#eeeeff"> <SELECT name="shared"> <option value="No"SELECTED>No</option> <option value="Yes">Yes</option> <INPUT type …

Member Avatar for futhonguy
0
92
Member Avatar for phpDave

Hello! I have a counter to count personal page views for users, but when the counter in the table is updated (incremented by 1)it also updates the date. Anyone know if the counter column can be updated without updating the date? Also, I need to have an update date for …

Member Avatar for phpDave
0
82
Member Avatar for Lsmjudoka

I have a script that runs a static chatroom(User has to refresh the page manually). When a user submits a post, the user's data(Username, title, user level, etc..) is stored in the DB along with the post. The script for getting the post looks something like this: [code=php] $result = …

Member Avatar for Lsmjudoka
0
105
Member Avatar for phpsteve

hi I would like to be able produce statistics on my web page by counting the numbers of rows in my sql database. for example. within my database i have 10 defects in my table called "defects". 9 defects are major, 1 defect is a minor. is there a way …

Member Avatar for edwinhermann
0
93
Member Avatar for baseballfury

Hiya Guys, Been working on the w3schools livesearch example but you can only select the option via a link. I'm trying to do it so i can submit a value to return database results. The external php code is below if anyone wants a look: I got it returning the …

Member Avatar for baseballfury
0
533

The End.