52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mary_forum

$pimg="../pimages/".$_FILES[p_img][name]; move_uploaded_file($_FILES[p_img][tmp_name],$pimg); image does not move into image folder

Web Development image php
Member Avatar for diafol
0
1K
Member Avatar for zjbarden

Three files. A simple contact form. I am trying to get checkboxes & dropdowns to work, but so far, only (1) dropdown works, and after going at it for hours, have found no error in the <form> itself. Not a PHP genius, so maybe it has something to do with …

Web Development html-css php
Member Avatar for ko ko
0
277
Member Avatar for almr3b

I Keep Getting This Error Please Help? Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\Bot.php on line 897 <?php declare(ticks=1); set_time_limit(0);//DO NOT REMOVE THIS IF YOU ARE GOING TO USE XAMPP!!!!! class XatBot { var $creator = array('name'=>'MisterBlaze', 'id'=>'370058127'); private $roomID = "152905091"; //152905091 private $botName = "BlazeBOT"; var $botID …

Web Development php
Member Avatar for diafol
0
541
Member Avatar for niche1

how do I get the css and the html into the function? [code]<html> <head> <script type="text/javascript"> function myFunction() { return ("Hello world!"); } </script> </head> <body> <div style="float:right;"> <script type="text/javascript"> document.write(myFunction()) </script> </div> </body> </html>[/code]

Web Development html-css javascript
Member Avatar for niche1
0
123
Member Avatar for rakwel10

Pls help me with this... [CODE] //FINANCE.PHP <form id="frmpay" name="frmpay" method="POST" action="finance_payment.php"> <input type="radio" name="seltour[]" value="<?php echo $tour_code; ?>"> <input type="submit" value="input" name="submit" /> </form> [/CODE] once submitted.. [CODE] //FINANCE_PAYMENT.PHP if(isset($_POST['submit'])) { for($i=0;$i<$numrow;$i++){ $code = [B]$_POST['seltour'][/B][$i]; $query = "SELECT tour_amount, tour_name FROM `tbl_tour_profile` WHERE tour_code = '[B]$code[/B]'"; $result = mysql_query($query); …

Web Development finance php sql
Member Avatar for ko ko
0
129
Member Avatar for Venugopal Ravi

Hi, I am using CKEditor (FCK) and I want to filter certain things from being used by users like (.com, <, >) symbols and words. Is there any plugin available for this or in which way i can do this? any help please.. thanks rave

Web Development php
Member Avatar for diafol
0
160
Member Avatar for jacksantho

Hi, I wants to display my results on the browser. Table1 Table2 sno name sno name 1 sss 3 kkk 2 aaa 4 xxx I need the tables on both side. How can i do this ? Thanks

Web Development display php
Member Avatar for jacksantho
0
2K
Member Avatar for joseph_bodagh

Hi How are you guys Im new learner in php and im coding a small script for orders and customers and i hve problem lets say I have table with name of : Orders id : int(11) - AUTO_INCREMENT pizza : text - not null and order form is like …

Web Development php
Member Avatar for cgull
0
187
Member Avatar for rouse

I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array …

Web Development javascript php xml
Member Avatar for rouse
0
374
Member Avatar for extemer

what i am trying to do is when i click the div it decreases to width=100px and when i click it again it changes it to original size but i am getting the problem in the second part where i want to re size it to original size i known …

Web Development javascript
Member Avatar for Airshow
0
150
Member Avatar for asif49

I'm trying to make my website compatible with internet explorer. I've been thinking of making it compatible for IE and then Firefox and then I'll be good. It works for google chrome but there's some very very annoying little things which the new IE does. The images look much bigger …

Web Development php
Member Avatar for asif49
0
122
Member Avatar for fire eaters

when i click the link the the div is resized to 100px .. but again if i click i want to the the div to be same as before (800px) using the same sliding animation ..how can i do that [CODE] #ee{ border:1px solid #00F; height:100px; width:800px; position: absolute; } …

Web Development javascript javascript-jquery
Member Avatar for extemer
0
113
Member Avatar for Smurf_UK

Hi All, I am new to the site, and also to PHP and MySQL, so please go easy on me for asking what may be an obvious question for many. I am wanting to store the data from a sign-up form in a MySQL DB, but I cannot get my …

Web Development mysql php
Member Avatar for Morta
0
3K
Member Avatar for William Blore

okay, I've got another problem. How can I obtain content of cascade style, using javascript? I know, there's a code document.getElementById('id').style.border='5px solid blue'; for example, but I need to do reversed operation, not to change style, but obtain it. I hope I've described my problem clearly enough enough ;) Thanks …

Web Development javascript
Member Avatar for extemer
0
123
Member Avatar for Rahul V S

Hi, :) I am a newbie here and this is my first post. :?: I always wonder whether there is a better way of putting this or that or is there a work around for that, etc.... :idea: So, its better if we can have an uncluttered discussion topic that …

Web Development javascript
Member Avatar for LaxLoafer
0
95
Member Avatar for sarithak

Hi team, i write some logic in my page. here i am using this $x is getting by POST method... Logic :[CODE] if($x>10) { $amount=$amount+400; } [/CODE] It is working fine. Hare the problem is after entered into the page...incase user refresh the page that logic repeated. i dont want …

Web Development php
Member Avatar for sarithak
0
141
Member Avatar for andyliany

Somebody can help me? I want to edit my register page, i want to add new value to my database. Like Bank name, Phone number, address and other, below here is my existing register.php. [CODE]<?php function _generate_user_id(){ $istnieje = false; do{ $losuj = mt_rand(100,999).mt_rand(0,9).mt_rand(0,9).mt_rand(100,999).mt_rand(0,9); $result = mysql_query("SELECT `id` FROM `xeon_users` …

Web Development html-css http-protocol php
Member Avatar for cereal
0
303
Member Avatar for jacksantho

Hi, Am having only one check box. I wants to pass checkbox values through hyperlink. I needs to know, either it is an checked checkbox or an unchecked uncheckbox. Based upon checked checkbox, i carry out my remaining coding part. [CODE]echo "<br>"; echo "<table>"; echo "<tr><td colspan='2'><font color='blue'><b>download PDF document:</b></td></tr>"; …

Web Development pdf php
Member Avatar for jacksantho
0
199
Member Avatar for asif49

So for the admin page of where "reviews" can be written and posted, I've created a delete article function but it's not one I wanted. The one I have now works the following way... A while loop prints out the specified information with their associated IDs. After they are all …

Web Development php
Member Avatar for Zagga
0
355
Member Avatar for jeffc418

Hello! I have been doing my reading on log-in/username system security and I want to post what I have done! I still feel like my system is lacking in security, so I'd love any and all input! I've completely obscured the MySQL table values to my liking (A LOT of …

Web Development encryption php
Member Avatar for bjlotus
0
2K
Member Avatar for niche1

I have a html script with some JS and a php script that produces a comma delimited string of suggestions of first names to enter into an input field. It only works for "B" names right now. I need to turn this script into a combo box and can't think …

Web Development javascript
Member Avatar for niche1
0
164
Member Avatar for zack654

I would like to sharpen my PHP skills on coding web sites. Is there some web site templates which are ready for coding so I can make them functional without touching HTML or CSS? I am not very good with HTML and CSS, I find free templates like this all …

Web Development html-css php
Member Avatar for zack654
0
300
Member Avatar for Paaat

Hello, I've been trying to solve this problem that has faced me many times on my website.. I have written a forum program. It works perfectly. However, sometimes a user tells me that he tried to post his comment, but his comment didn't appear on the page, and that he …

Web Development php
Member Avatar for Paaat
0
158
Member Avatar for soomro_moon

value is not showing in the combo box <? $cn=mysql_connect("localhost","root"); mysql_select_db("test",$cn); // Make a MySQL Connection // Construct our join query $query = "SELECT one.name,two.address FROM one,two where one.name=two.name"; $result = mysql_query($query) or die(mysql_error()); echo " name "."address"; echo "<br />"; while ($row=mysql_fetch_array($result)){ echo $row['name']. " - ".$row['address']; echo "<br …

Web Development php
Member Avatar for Rhamises
0
203
Member Avatar for luddite

I have a log in page for users, which if the login name is valid takes user name and puts it into a session.setAttribute(ā€œuserā€, String); the user then gets redirected a userspage.jsp. At that page I can get the ā€œuserā€ using : <% getAttribute = (String)session.getAttribute("user"); %> the user is …

Web Development java-jsp session
Member Avatar for luddite
0
156
Member Avatar for terrymold

I have a fairly simple PHP page which is giving me some bother, and I'm hoping someone here can point me in the right direction to correct it. In the HEAD section there is a bit of CSS... [CODE].messText { position: absolute; width: 600px; top: 250px; margin: 0 auto; font-family: …

Web Development html-css linked-list php
Member Avatar for ko ko
0
148
Member Avatar for nikki05

Hello, Help please! I am using XAMPP for my website. My website is almost ready now. It is working fine in localhost. Now I would like to make it online (public). And, this is my main OBSTACLE. I have already bought a domain. I also configured the Port Forwarding in …

Web Development php
Member Avatar for nikki05
0
7K
Member Avatar for Ajaxnewbie

Hi there! Okay, here is my scenario: I have a link and a div on a webpage. With the link I want to toggle the content (HTML) of the div. On toggle, I want to load the content from a PHP-file and I want it to load on the toggle, …

Web Development javascript
Member Avatar for LaxLoafer
0
160
Member Avatar for joeidee

Id Product Quantity Amount Date 1 Shoe 4 200 2011-08-27 2 Shoe 2 100 2011-08-28 3 Cap 2 50 2011-08-28 4 Shirt 1 300 2011-08-28 5 Cap 1 25 2011-08-29 6 Shoe 1 50 2011-08-29 7 Shirt 2 600 2011-08-29 This my database structure. what I want to know is …

Web Development php
Member Avatar for joeidee
0
83
Member Avatar for jacksantho

Hi, This was am using in my code: [CODE]echo "<table>"; echo "<tr><td><b>Please, confirm or reject: </b></td><td><a href='thanks.php'>Confirm</a></td>"; echo "<td><a href='reject.php?name=$name&officerid=$pofficerid&officername=$pofficername&txt1=$ss'>Reject</a></td></tr>"; echo "</table>"; [/CODE] On clicking [B]Reject[/B] link, my all values(name,offiderid,officername,txt1) that am passing through hyperlink tag getting visible in the URL. I don't need the user, to see my passing …

Web Development php
Member Avatar for fusedreality
0
263
Member Avatar for dw_user

I am talking about Social engine 4(SE4) ([url]http://www.socialengine.net/[/url]) which is written in Zend. I can go up to the IndexAction of IndexConroller in Core Module. But then I am at a loss. Which models are used there to build the homepage? I think when I can learn about the models …

Web Development php social-media
Member Avatar for dw_user
0
261
Member Avatar for anusanker

Hi, I am working with normal curl login function but it doesn't work for this particular site, please see this login page and suggest any solution for me. [url]http://nbk2.autodata.no/default.aspx?11=4&10=0006117171746465004012&14=12&12=1003[/url]

Web Development php
Member Avatar for anusanker
0
350
Member Avatar for vampshay

i have this code to create a contact directory and my instructor wants me to create a function for database connect to minimize the coding and if an instance to change the server it is easy to change. <?php if(isset ($_POST ["add"])){ $name = $_POST['name']; $address = $_POST['address']; $email = …

Web Development mysql php
Member Avatar for vibhaJ
0
117
Member Avatar for jonsan32

I have 6 horizontal navigation image links on top of my site. The regular images are black n white, but on the hover they transform to a colored image. Each image leads to a different page on my site, I'm wondering if I can make the image corresponding to that …

Web Development image javascript
Member Avatar for shravan24
0
244
Member Avatar for rom.

After updating mysql from 4 to 5, I'm now getting this error: [CODE]Invalid SQL: SELECT HRS.Hrs AS Val, HRS.Job_ID, TS.Staff_ID, Staff.First_name, Staff.Last_name FROM Timesheets AS TS, Timesheet_hrs AS HRS LEFT OUTER JOIN Staff ON (TS.Staff_ID=Staff.ID) WHERE TS.ID=HRS.Timesheet_ID ORDER BY Staff.First_name, Staff.Last_name, HRS.Job_ID DESC: 1054 (Unknown column 'TS.Staff_ID' in 'on clause')[/CODE] …

Web Development mysql php
Member Avatar for rom.
0
295
Member Avatar for tapuwa2002

Hi guys Hoping you can help me I have designed a form when you click on Attach it opens a pop up window with the upload script, uploading is not a problem but returning the value from the pop up text field to the main form is not working. Main …

Web Development php
Member Avatar for sv3tli0
0
127
Member Avatar for Jason123

I would like to use schtasks commandline to create some scheduled jobs in .NET. However, the scheduled jobs created by ASPNET could not start. The command script works fine within cmd and the scheduled job runs. Any ideas on how to make it work?

Web Development asp.net vb.net
Member Avatar for Jason123
0
102
Member Avatar for eman neercs

Have 2 tables - one for new titles and the other for authors. I want to tag the "new titles" table with the "author" value if the author's name appears in list of new titles. As you can see from my code, I don't have a clue what is wrong …

Web Development mysql php sql
Member Avatar for sv3tli0
0
114
Member Avatar for asif49

I've been trying to test out my first website on the following free hosting service for the moment: [url]http://members.000webhost.com/cpanel.php?accountID=6800891&login_hash=xakt1MTI3NQX1Q1z[/url] and it seems that the mysql connection isnt working. I get the following errors... [CODE] Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Myname'@'10.1.1.34' (using password: YES) in /home/a3793016/public_html/reviews.php on line 35 …

Web Development cpanel mysql php
Member Avatar for sv3tli0
0
147
Member Avatar for aureliusnoble

i'm also having a unexspected T-string error, my web hosting service uses php 5 and i don't know what is wrong with my code. attached are all the pages that have this error

Web Development php
Member Avatar for ko ko
0
53
Member Avatar for rpv_sen

Hi i want to generate barcode for each bill. any one can help me. barcode will be alphanumeric(dynamic).

Web Development mysql php
Member Avatar for rpv_sen
0
312
Member Avatar for uselessninja

hi everyone i have this code(dont think its a code spam ..its a trick) which display the date(only): [CODE] <a href="index.php" STYLE="TEXT-DECORATION: NONE">&laquo;Back•</a> <br> <br> <hr width="200" align="left"> <br> <?php $conn=odbc_connect('datasourcegaby','',''); $search=mysql_escape_string($_POST['SEARCH']); if (!$conn) {exit("Connection Failed: " . $conn);} if($search==null){ header("location:index.php"); }else{ $sql="SELECT * from generators WHERE convert(datetime,convert(char(10),TIMESTOMPX,101))= '$search'"; }; …

Web Development display mssql php
Member Avatar for uselessninja
0
293
Member Avatar for vaultdweller123

hi guys i need help, i don't know what's the cause of this but somehow the page only loads 2 jwplayer videos and a white screen on mac google chrome. please help :( [url]http://masterbeing.com/nb/yoga-kurs-film-lp[/url]

Web Development google php
Member Avatar for vaultdweller123
0
81
Member Avatar for cliffcc

[code] <?php $file_handle = fopen("info.csv", "r"); while (!feof($file_handle) ) { $data = fgetcsv($file_handle, 1024); echo"$data[0] . $data[1]"; } fclose($file_handle); ?> [/code] I want to get the specific cell value (2,2) from csv in php, how can i do that ? Thank you very much!

Web Development php
Member Avatar for cliffcc
0
2K
Member Avatar for asif49

I've just created my first website (congratulate me). And I want to upload it but although I don't have access to many different computers, I've opened my webpages up on google chrome, internet explorer and firefox and the style looks slightly different. So apparently what I need to do is …

Web Development open-source php
Member Avatar for asif49
0
83
Member Avatar for spawn2004

Hi all, i need some help with php. I am writing i web site and i have an upload form . I upload files in folder and in database where i have the filename the path and some other fields which i will use for my sql to set my …

Web Development open-source pdf php
Member Avatar for spawn2004
0
143
Member Avatar for jamesl22

If I have an external website how can I pull data from it. I have the following code snippet that I need to pull data from: [CODE] <div class="headlinesBox"> <div class="headline currentHeadline"> <div class="headlinesClipping"> <img src="/common/images/thumbnails/source/1320614405d.jpg" style="float: left; width: 262px; height: 236px;"/> </div> <div class="headlinesText"> <h3><a href="/details/news/1325223/Template-Assisted_Fabrication_for_Polymer_Solar_Cells.html" title="Template-Assisted Fabrication for …

Web Development php
Member Avatar for diafol
0
145
Member Avatar for krishna501

[CODE]<%@page import="java.util.Calendar"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>employee leave application</title> <script src="EmpLeaveValidation.js" type="text/javascript"></script> <style type="text/css"> #ehint { position: absolute; right: 230px; top: 18px; } #cnhint { position: absolute; right: 200px; top: 40px; } #chint { …

Web Development html-css java-jsp javascript
Member Avatar for ddymacek
0
137
Member Avatar for jacksantho

Hi, Please look at this: [CODE]<?php print ' <form> <td><input type="text" name="txt" maxlength="7" style="text-transform:uppercase"></td> </form> </html>'; if(isset($_POST['submit']) { $val=$_POST['txt']; #header(); } ?>[/CODE] my text box values gets erased after submit button. If i use header function: error is [B]Warning: Cannot modify header information - headers already sent by (output started …

Web Development php
Member Avatar for jacksantho
0
3K
Member Avatar for asif49

I'm creating a website and I have implemented a commenting/review system on there but I want to stop spammers so I've been trying to find a way to stop people from typing in url's. I tried the following method but it only works for the last thing mentioned (.in) and …

Web Development php
Member Avatar for asif49
0
94

The End.