39,316 Topics

Member Avatar for
Member Avatar for rashid47010

BELOW IS PHP CODE GETTING PARSE ERROR AT LINE #16 [CODE=PHP] <html> <head> <title>table php file</title> <?php $times=2; if(isset($_POST["submit1"])) { $start=$_POST["txtStart"]; $end=$_POST["txtEnd"]; $times=$_POST["txtTimes"]; for($start;$start<=$end;$start++) { $answer= $start * $times; print($start. "multiplied by" .$times. "=" .$answer.) ; } } ?> </head> <body> <form name="form1" method="post" action="table.php" size=15> Start-Number:<input type="text" name="txtStart" value="1" …

Member Avatar for ShawnCplus
0
94
Member Avatar for sarithak

Hi frnds... I m inserting some text(link+) into db table like : [B]Our PHP forum is the place for Q&A-style discussions related to this popular development language. LAMP programmers... [url]http://www.xxxxxxxx.com/gallery/gallery.php?gid=295&gcat=Heroines&gname=Bhumika%20Chawla's%20Hot%20[/url].... Our PHP forum is the place for Q&A-style discussions related to this popular development language. LAMP programmers [/B] When i …

Member Avatar for diafol
0
103
Member Avatar for Schoorsteen

I had a rather short question, doesn't OOP Programming make you increase the amount of executed queries? [code=PHP] class Guild{ private $members[]; private $sName; private $iLevel; function __construct($guildId) { // get all information from db using the guildid // also get all memberid's from the db and pass these trough …

Member Avatar for Schoorsteen
0
126
Member Avatar for rayarman

Hi, I've got the following type of date string parsed from an OFX file: 20090902000000[-5:EST] How can I get this into my mysql db via php - formatted as d-m-Y I've tried : [code]$ofxdate = strtotime("20090902000000[-5:EST]"); $stmtdate = date("d-m-Y",$ofxdate); [/code] Obviously wrong! ... Any assistance appreciated! How would I do …

Member Avatar for melissagirl
0
125
Member Avatar for tryhere

[CODE] <?xml version="1.0"?> <staff> <user> <id>A</id> <rank>User</rank> </user> <user> <id>B</id> <rank>User</rank> </user> <user> <id>C</id> <rank>Administrator</rank> </user> </staff> [/CODE] I have to promote to "Administrator" a random user using XPath. How can I do it?

Member Avatar for fpmurphy
-1
123
Member Avatar for hemgoyal_1990

Hi All, I have a PHP code for Sending http post from cURL. it work fine but i have a trouble that when i am send any data from loop it display me only first string the remaining string it not print. I am Use this Code. [ICODE]<html> <head> <meta …

Member Avatar for hemgoyal_1990
0
687
Member Avatar for ffs

The script works just fine in IE, problems occur in FF. [code=javascript] <script language="JavaScript" type="text/javascript"> var counter = 0; window.onload = ajaxFunction; function ajaxFunction(nr){ var ajaxRequest; try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch …

Member Avatar for ffs
0
178
Member Avatar for YoungSkali

Adding The Sig [IMG]http://i179.photobucket.com/albums/w300/scalia24/sigforum1.jpg[/IMG] Always attach Sig Option [IMG]http://i179.photobucket.com/albums/w300/scalia24/forumsig2.jpg[/IMG] NO SIG!!!! [IMG]http://i179.photobucket.com/albums/w300/scalia24/nosig.jpg[/IMG] please tell me what i need to do i use [url]www.forummotion.com[/url]

Member Avatar for SimonMayer
0
60
Member Avatar for gouthamvel

[CODE=php]<? function outError($text){ print "<center><b><font color = red>$text</font></b><br><br></center>"; }[/CODE] [CODE=php] <option value="0" <?= ($installtype == "0") ? "selected" : ""; ?> >Install with CPanel Info (can create MySQL DB automatically)</option> [/CODE] I have a script with such unusual tags and the script won't work. I cannot replace them since they …

Member Avatar for cwarn23
0
125
Member Avatar for ajithredsmoke

I'm a newbie in programming. I spent few hours yesterday and today working on a small AJAX page with multiple combo boxes that are populated from the database. I use IE6 99% of the time and I utilize the excellent . I almost done with the page (I’m pretty proud …

0
136
Member Avatar for andrewnim

Hi all getting this error "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 '' at line 1" [code] if($_POST['paypalsubmit']) { $upsql = "UPDATE orders SET status =2, payment_type =1 WHERE id =" . …

Member Avatar for andrewnim
0
125
Member Avatar for lonestar23

Hello, I am retrieving results from a RSS feed, but not all results have a title. I would like to run something like the below code which, lets me know how many times a title is empty. If three "titles" are empty, then X code would dynamically echo "3" etc.... …

Member Avatar for darkagn
0
158
Member Avatar for Aamit

Hi, I am writing code to create new text filed dynamically. [COLOR="Red"]But after create 2 or 3 it stops. Not creating continuously. [/COLOR] How to solve this?? [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <SCRIPT language="javascript"> function GenerateRow(rowid){ str = …

Member Avatar for darkagn
0
129
Member Avatar for i_need_help2009

Hi I have what is probably a simple question as still fairly new to php. I have a webpage which has two drop down lists, both dynamically created from sql databases. I need the user to be able to select a client in the first drop down list and it …

Member Avatar for darkagn
0
74
Member Avatar for Toxikr3

I didn't know where to post this so please move this if it is in the wrong place. I need flash to read from my database(mysql database) and also write to it. I tried doing it through php>xml>flash but it won't work. My friend works with flash while I work …

Member Avatar for Toxikr3
0
108
Member Avatar for Gearspro

Well, i found this hack for VB. And basically it displays the information of the user the same as before but in a different position. I was wondering if someone could help me out and tell me how to center the action buttons and info above and below the post. …

Member Avatar for diafol
0
303
Member Avatar for whiteberry

Where is the best place to save cakes.php in Apache web server? I was trying to develop a web page in Dreamweaver, and then save it so that the Apache server runs it in standard browser without fail.

Member Avatar for diafol
0
218
Member Avatar for survesunny18186
Member Avatar for Harshadewa

Here are details about my forum to make things easier. phpBB Version 3.0.1 Host Servage.net Style fisubice2 Database type/version MySQL 5.0.85 How did you install your board? Using install package from Phpbb.com Fresh install or a conversion First I installed Phpbb2. And then upgraded to version 3 MODs installed? [CODE] …

Member Avatar for digital-ether
0
174
Member Avatar for php_coder

Hello guys I still could not solve the PDF issue :( I am using XAMP server on windows system. I think PDF comes with it by default. (not sure though). I have uncommented the required 2 lines in php config file. Yet no luck. Could somebody please help me out? …

Member Avatar for asyouwish
0
1K
Member Avatar for Vai

How do I make the timestamp string be displayed as something that is actually readable / understandable? Yes, I have looked on google, here and a couple other places, but I am not seeing anything too specific or I am just not understand. Thank you for your understanding, helping me …

Member Avatar for Rkeast
0
150
Member Avatar for Tribal01

Heya Guys, I am currently working on a project, on which my customer wants to have a customizable object. Now, what i mean by this is that the customer wants a customizable "shoe" on their site. Whereby visitors can choose the colour of the laces, the lace holes etc etc. …

Member Avatar for codejoust
0
154
Member Avatar for valonesal

So here is what I would like to achieve, I currently have 2 servers one of the servers has a script installed on it that is a pretty nice script, I would like to be able to run this script on both server while it is only installed on one …

Member Avatar for digital-ether
0
110
Member Avatar for Auch

Hi! I have a form working and in the login section I also give the option to register in case someone hasnt done so yet. This will show another form which, on submit, will use a different .php page. Now on that page,if register is successful, I'd like it to …

Member Avatar for Auch
0
101
Member Avatar for Naveenk2k

Hi I have updated the database when browser is closed,But i have a small problem.i.e. The database is updating when the page is refreshing also. I need that the Database should be updated on when the browser is closed(Not updated when page is refreshed).

Member Avatar for digital-ether
0
69
Member Avatar for tulipputih

Hello, Anyone know how to solve this problem? I have several tables. 1. the main table namely lesson contains several fields that used for searching. 2. weight is assigned by users for each keyword for searching purpose. 3. users' keyword will be compared with the record in the database. each …

Member Avatar for tulipputih
0
189
Member Avatar for arunajasmine

Hi, i am having Cakephp code like [CODE]<?php foreach ($viewfields as $r): if($r['Attribute']['type']=='radio') { ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ $("#"+<?=$r['Attribute']['id'];?>).each(function() { type= "<?=$r['Attribute']['type'];?>"; attribute_id="<?=$r['Attribute']['id'];?>"; if(type=="radio") { var ht = $.ajax({ type: "GET", url: "http://localhost/FormBuilder/index.php/forms/viewChoices/"+attribute_id, async: false }).responseText; var myObject = eval('(' + ht + ')'); var data = myObject;var j=0; …

0
119
Member Avatar for Jord09

Hi I'm trying to use the functions/methods of one class inside another, however I keep getting errors and I don't understand this... for example; [CODE=PHP] class DB { private $host; private $user; private $pass; private $database; public function __construct($host, $user, $pass, $database) { ... } public function query($sql) { ... …

Member Avatar for Jord09
0
137
Member Avatar for Jeyush

Hi mate, I use regex for my validation but @ this time I get confuse, how to use white space in it. I want user to enter a city name, some city name contains white space like Los Angeles, New York, I have regex which is not allowing user to …

Member Avatar for digital-ether
0
156
Member Avatar for ondusko

I installed a joomla template and the search seems to be the only thing that is not working ,it a;ways comes up with a 0' for results where in in the back end can i fix this issue ? thankyou

Member Avatar for digital-ether
0
53

The End.