188 Posted Topics

Member Avatar for chand8

yes, but I will give you a very long winded answer, I hope you find it helpful. ever use a class before, this would be the perfect time, so I made one for you. [CODE] <?php // assuming you named the class file import.class.php import('import.class.php'); // instantiate your class (get …

Member Avatar for diafol
0
209
Member Avatar for mary_forum

You can't do that unless a form is actually posting those values. what does your form look like? and when are you calling this code?

Member Avatar for ddymacek
0
1K
Member Avatar for akasekaihime

this should help [CODE] <html> <body> <h4>Grade Form</h4> <form action="test4.php" method="post"/> Grade: <input name="Grade" type="text" /> <input type="submit" name="submit" value="Submit"> </form> <?php if (isset($_POST['submit'])) { $grade = 0; $grade = (int)$_POST['Grade']; if ($grade>="75") { echo "Your grade was " . $grade . " Congratulations you PASSED!"; } else if ($grade<="75") …

Member Avatar for divyakrishnan
0
108
Member Avatar for Lost Monk

two problems, you are never pulling 'interestedin' because there is no field on your form named that: change this line: [CODE] <li class="inputbar"><select name="I'm interestd in" value="<?php // to this, changing the name of your select box. <li class="inputbar"><select name="interestedin" value="<?php // and then in the top code when you …

Member Avatar for ddymacek
0
214
Member Avatar for bkimbriel

can you post your whole form, are you submitting to a separate php file or is that code on the same page? you should use $_GET or $_POST to retrieve the values and probably not $_REQUEST your foreach statements were 'blowing up' because you did not check if there was …

Member Avatar for ddymacek
0
138
Member Avatar for emily-bcot

I did not include a constructor like you have, but recommend that you change yours. Your very base construct should not run a query and try to do an insert, the purpose of a class (in my opinion) is to one be a 'container' to hold the values of your …

Member Avatar for ddymacek
0
138
Member Avatar for davidXY

try to remove the . on line 50 '{.$s}'==>'{$s}' & '{.$p}'==>'{$p}' also you can put an 'or die()' statement for [CODE] mysql_query("UPDATE `{$GLOBALS['table_name']}` SET `RecordTime` = '{$s}' WHERE `Sentence` = '{$p}'") or die("update error = ".mysql_error()); [/CODE] to try and figure out what your error message is.

Member Avatar for davidXY
0
146
Member Avatar for dimasalang

you cannot write to a file on a server using javascript, so no what you are wanting to do is not possible, since you are using java you need to use java to open,close,and read or write to a file.

Member Avatar for dimasalang
0
2K
Member Avatar for gganeriwal

because in your first statement, the php and javascript is being evaluated when the page is executed. The php $width variable does not contain the 'value' you think is there. It contains the javascript statement that is being evaluated when you load your page. Look at your source code to …

Member Avatar for gganeriwal
0
114
Member Avatar for extemer

there are a couple of ways of validating your id field, you can pass it in (as n in this case) returns boolean true / false when called. [CODE] function isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } // or since you should be able to find your id field function …

Member Avatar for ddymacek
0
108
Member Avatar for DILO3D
Member Avatar for Ichcha

for off move your $size = sizeof... code what is $GroupName coming from and why is in the middle of your while loop.... never mind try this: [CODE] while($rowmain=mssql_fetch_array($resultmain)) { $course = $rowmain['GroupID']; //$groupname is an array foreach($GroupName as $key => $value) { // check your values echo "key= " …

Member Avatar for Ichcha
0
100
Member Avatar for dimasalang
Member Avatar for dimasalang
0
107
Member Avatar for kaizokupuffball

do you have gd image library for processing images? is so I have a script you could use

Member Avatar for kaizokupuffball
0
402
Member Avatar for jacksantho

"i can't understand. Normally, how we can place tables side by side on the web page. I dont need to display my table sequentially. Please help me out. " you don't need to display your data sequentially, is that what you mean? is your data in an array, how is …

Member Avatar for jacksantho
0
2K
Member Avatar for Rahul V S

I'll bite, you could create a function to append text... alas this would save you no lines of coding so I would say that depending on what you are trying to do, you sometimes need to tackle bigger problems with bigger ideas. [CODE] <script type="text/javascript"> function appendstr(orig,addto) { var str …

Member Avatar for LaxLoafer
0
95
Member Avatar for niche1

there are other ways, jquery has an 'autocomplete' feature as well. but you can try something like this... [CODE] <?php // Fill up array with names $a[]="Bob"; $a[]="Brittany"; $a[]="Brian"; //echo var_dump($a) . '<br/>'; //get the q parameter from URL $q=$_GET["q"]; //lookup all hints from array if length of q>0 $hint …

Member Avatar for niche1
0
164
Member Avatar for Paaat

Is it possible, that the user is on the page so long, or writing such a long comment that their session is timing out? I would add in some debugging / data safe to hold expected variables and see if they have a value. Never 'expect' something to be there …

Member Avatar for Paaat
0
158
Member Avatar for soomro_moon

you are using $res1 in your while statement and only $res[] in your echo statements. change them to all be $res1 or $res.

Member Avatar for Rhamises
0
203
Member Avatar for Ajaxnewbie

try dynamic drive they have some great scripts. this one will do nicely for you [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm"]http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm[/URL]

Member Avatar for LaxLoafer
0
160
Member Avatar for cliffcc

you need to count the cells and you need to know what you are expecting. [CODE] $linecount = 0; $cellcnt = 0; while(!feof($handle)) { $data = fgets($handle); $listing = explode(",", $data); // break out each cell on the comma delimeter // iterate over each cell $linecount++; // $listing is an …

Member Avatar for cliffcc
0
2K
Member Avatar for krishna501

I would suggest that you try useing jQuery and it's datepicker.js functionality. it's pretty cool.

Member Avatar for ddymacek
0
137
Member Avatar for Virangya

try [CODE] setTimeout(blink,3000); // or possibly your setInterval ... 1000 milliseconds = 1 second, // you are setting yours to 10000 = 10 seconds, so set it to 3000. [/CODE]

Member Avatar for ddymacek
0
271
Member Avatar for soomro_moon

you should have an identifier on one and two that tie the two tables together like an id, or the name. your query would look something like [CODE] $query="SELECT one.name,two.address FROM one,two where one.name=two.name"; // or some identifying field that ties that particular address to that particular name $query="SELECT one.name,two.address …

Member Avatar for ddymacek
0
155
Member Avatar for 54uydf

perhaps I could help but would need a sample xls file, I have only worked with csv's to do what you want. It would only have to be 3 or 4 rows long with the header fields and some garbage data. Is it possible to create the xls files as …

Member Avatar for 54uydf
0
408
Member Avatar for CodeFusion1

this code looks ok, look for the variable id coming over in the form post set on your select box line. [CODE] // line 10 of your function code ?><select name="class" id="<? $row['id'] // somewhere in $edit-schedule.php $id = ''; $id = $_POST['id']; if ($id != '') { // pseudo …

Member Avatar for CodeFusion1
0
851
Member Avatar for Bazzaah

try to put ticks around your get variable as well as I assume word in your db is a string. [CODE] $variable = ''; $variable = $_GET['w']; if ($variable != '') { $query = "SELECT * FROM `pro_words` WHERE `word` = '".$variable."'; } else { echo "NO VARIABLE PASSED IN"; …

Member Avatar for Bazzaah
0
116
Member Avatar for Raim

sample code. my experience with dreamweaver was that it added all kinds of additional markup to my pages which often interfered with styles and other css. remove all inline markup and make a css stylesheet to affect your display.

Member Avatar for Raim
0
195
Member Avatar for ankit.pandey3

what is your error?, you code opens formData.php in a new window, like I expected it to. so is it this page or formData.php that has a problem? Are you not getting data? need more info if you want help.

Member Avatar for ddymacek
0
178
Member Avatar for phaedrusGhost

I don't have any code written for you but when you 'recommend agent' you should call some sort of js function that you can pass their id or name into so you can load the 'right' person. you could send a post or get variable to your pop up and …

Member Avatar for ddymacek
0
163
Member Avatar for nblackburn

put some more echos in your code, echo out your filename just before you are looking for it, is the path correct? in your 'file_exists' code take it one step further... and why not use the is_dir() function [CODE] //$filename = 'test2.php'; this was a file, $filename = 'cabron'; this …

Member Avatar for nblackburn
0
19K
Member Avatar for spawn2004

use and instead of or on your if comparison line 29. [CODE] if($ext!='pptx' && $ext!="pdf" ){ // error message } else { // check file size code... } [/CODE] tested with extensions of pptx, pdf and doc. pptx and pdf makes it to check file size code, doc fails validation.

Member Avatar for ddymacek
0
144
Member Avatar for digital_plunder

instead of setting content type as an image set it to text/html [CODE] header('Content-type: text/html'); // you should then be able to output html content including images. [/CODE]

Member Avatar for ddymacek
0
103
Member Avatar for anupama385

you could do an onmouseout or onkeyup event something to fire a bit of script to grab the value of your textbox and display it in your form below. could display or use hidden form value for passing data around.

Member Avatar for krishna501
0
294
Member Avatar for shahbaz13

please post your last iteration of code. you said you've 'changed it many times' so what are you looking at now, what issues are you still having?

Member Avatar for shahbaz13
0
104
Member Avatar for Sorcher

BY is your issue, change it the WHERE (line 7 of posted code. [CODE] $result6 = mysql_query("UPDATE `ue-xxx` SET `albumname` ='$newalbum' WHERE `albumname` ='$oldalbum' WHERE `id` ='$imageid'")or die(mysql_error()); [/CODE]

Member Avatar for karthik_ppts
0
141
Member Avatar for bubbafunk1

I have yet to find one that suits my needs. so unfortunately no, no good references at this time. I would also be interested if anyone has made one or found a good one out there for free.

Member Avatar for mschroeder
0
316
Member Avatar for davy_yg

do you have php installed? try a new index.php page. all you need on it is: [CODE] <?php phpinfo(); ?> // what are your results? [/CODE]

Member Avatar for azeem786
0
2K
Member Avatar for rakwel10

either change your query and add in a where clause: ...tbl_tour_request where id = $id order by... which should just pull the specific row you are looking for since you have the 'id' already set coming in from your link. or inside your while statement nest an if(); [CODE] while …

Member Avatar for rakwel10
0
336
Member Avatar for felix001

what are the 'required values' and when are you wanting to add them in? perhaps when you are building your input boxes you can give them values.

Member Avatar for felix001
0
165
Member Avatar for phorce

In your first example $site->load('header'), you are passing the variable 'header' to your load function. in the second example the header() is a function being returned from the load call. It is a matter of how you reference the function load(), in your class object. I'm curious to see your …

Member Avatar for kaisarkhan87
0
93
Member Avatar for Farhad.idrees

session_start() must be the first thing on your page. [CODE] <?php session_start(); // nothing can be before this line // which appears to be line 7 in your program. you should post full codes for debugging info, because your line 8 is our line 2. that should do it for …

Member Avatar for mamdouh ramadan
0
100
Member Avatar for cipcip

whats in your config file. it appears as though the error may be coming from there.

Member Avatar for ko ko
0
136
Member Avatar for deraad

if you post your full form code I will try to debug it, as far as the functions they appear to be fine and I don't know why they would interfere with each other off hand.

Member Avatar for deraad
0
1K
Member Avatar for rakwel10

try this: [CODE] <script language="JavaScript" type="text/javascript"> function CloseAndRefresh() { opener.location.reload(true); self.close(); } </script> You can call the function a couple of ways. You can use a link: <a href="#" onClick="CloseAndRefresh(); return:false;">Close</a> Or a button: <input type="button" value="close" onClick="CloseAndRefresh();" Or you can make it part of the submit: <input type="submit" value="submit" …

Member Avatar for almostbob
0
20K
Member Avatar for l0ns008

I may not have much to add to your conversation. I am an object oriented programmer and love to make classes and get php 'logic' off of the webpage. you should gain new insite on building classes and handling data, separate of your presentation on web pages. If you want …

Member Avatar for l0ns008
0
193
Member Avatar for Juriy

try to change your method from get to post. so on your form change method='get' to method='post' and on show.php, change $_GET to $_POST when retrieving your variables.

Member Avatar for Juriy
0
325
Member Avatar for chris_j_haines

2 things. change your method (form method='get') to post. and then in your php page (lines 8 - 23) change $_GET to $_POST. also, line 51 $_FILES['uploadedfile']['name']) needs to be [CODE] $_FILES['photo']['name'] [/CODE]

Member Avatar for ddymacek
0
190
Member Avatar for riseguim

use javascript [CODE] <form> <input type="button" value="Print this page" onClick="window.print()"> </form> [/CODE]

Member Avatar for riseguim
0
145
Member Avatar for pinar747

I did this for somebody yesterday pm me if you would like to solve your problem. (I did not click the link yet) please send all form code (minus any db connection stuff-things that are not relavant to goal), I will click the link tomorrow and view your perspective but …

Member Avatar for ivan3510
0
162

The End.