39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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'] ; … | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
Hi All I have my URLs without cleanup [url]http://10.0.0.76/project/mydashboard.php?section=12§ion_childs=1[/url] [url]http://10.0.0.76/project/some_x_page.php?section=12§ion_childs=1[/url] OR [url]http://www.myprojects.com/mydashboard.php?section=12§ion_childs=1[/url] [url]http://www.myprojects.com/some_x_page.php?section=12§ion_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. | |
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 … | |
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...... … | |
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 … | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … |
The End.