473,545 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
2
2,593
thread by: Wm | last post Jul 16 '05 by: Andy Hassall
I'm having a very hard time trying to add an edited listing to mySQL. I'm breaking this in to two halves, so that each error/problem can be pinpointed. The edit form queries mySQL and fills in a form with their existing information (identical form to the original "Add Me" form, but this time echo'ing the data currently in mySQL). This part...
3
2,890
thread by: Robert | last post Jul 16 '05 by: Rob
Hello all.. Im a beginner in php and looking to do something similar to a shopping cart system. I want users to be able to view profiles on people and be able to add them to the "shopping cart" until they decide they are ready to send a mass email to all the people in their cart. They will be able to view the people in their cart, add and...
2
1,896
thread by: moeFinley | last post Jul 16 '05 by: matty
How can I pass a variable out of a class? I'm sure this is very simple, but I can't find out how. I think you put a charater in front of the variable name, is this right? Thanks for any help Moe
1
3,510
thread by: Kyle Maddison | last post Jul 16 '05 by: Frank Passek
Hi, I would like to access an array via an index I have in a string. I know I can pull the string apart and manually access it but that just looks ugly to me :) $pg = "foo@bar.com"; $row->name = ""; //single quotes on 'owner' haven't helped $value = "pg".$row->name; echo $value; //ouput: 'pg'
5
2,703
thread by: DjDrakk | last post Jul 16 '05 by: matty
I want to use headers to redirect the client if they didn't come from the correct page, but I have a problem with one page. If they leave a form field empty, they are redirected back to the page they came from with an error number and a 6 digit 1d number in the location bar which defines what field was left empty( order.php?prob=2&id=000001) ...
3
4,219
thread by: lawrence | last post Jul 16 '05 by: jkd
I do get that MD5() scrambles a password, but how do you then unscrable it? I want to get $password from the user, scrable it, then append it to every link.
1
2,551
thread by: Dennis Lee | last post Jul 16 '05 by: Michel Feldheim
My OS is Winxp . My web server is apache 2 which is installed as a NT service . My php version is 4.32 , and I extracted it into "c:\php" . I run php as a apache module . I want to load Additional extensions .They are php_mbstring.dll, php_xslt.dll and php_domxml.dll .
6
3,568
thread by: John Simmons | last post Jul 16 '05 by: John Simmons
How is it that even though I have the column "username" in my database set as a Primary key, using my PHP script to add new users to the database works without any errors even when signing up using an existing username. I have a database full of the same usernames!
2
6,081
thread by: boclair | last post Jul 16 '05 by: boclair
I have some date fields which in some records will have NULL value. I am trying to show nothing in the HTML display. IF <? $date3=$myrow; ?> <p><?=$date3?><p> The html display is 0000-00-00 if there is no date value in the db table. I
1
2,919
thread by: ecow | last post Jul 16 '05 by: Tom Thackrey
Can anyone think of a reason why this is happening? $b = xxx //<enormously long string with at least 100000 characters> $c = yyy //<shorter but still a long string> $a = $b.$c; echo "$a"; Output:
1
2,437
thread by: Marc | last post Jul 16 '05 by: Jeffrey Silverman
Hello, I have a form with multiple selects (pullDown). All selects have the same name but each select has a different value. The user selects a value in each select. When he submits the form I want to put te values of the selects in a database so that the value of each select is added to a table and the option te user selected in that...
3
4,308
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
I got the following function from one of the PHP websites and I'm getting the following error: Warning: fileatime(): Stat failed for /tmp\lost+found (errno=2 - No such file or directory) in /home/rfresh/public_html/whosonline_form.php on line 93 This is line 93 in the function below: if (time()- fileatime(session_save_path() . '\\' ....
0
1,779
thread by: Tiernan | last post Jul 16 '05 by: Tiernan
Hey everybody. I'm verrynew to PHP and MYSQL and have been working on a form that when it is submitted stores the information into a mysql database. The main problem is that i'm trying to finish up my script for almost a week now and I still cant get it right. here is the code <?php include ("ES_includes/appconst.inc.php") ;
1
2,951
thread by: Stephan Lachmuth | last post Jul 16 '05 by: haptiK
Hello, I want to do some SOAP with PHP and found the SOAP package at PEAR. But I didn't find any documentation for it. Can anybody tell, where to find docs? Or can anybody tell how to use it? Thanks in advance Stephan Lachmuth
3
4,148
thread by: Carlos Marangon | last post Jul 16 '05 by: Rainer Herbst
Hello! I need some help with tables in MySQL. I am making a colums of articles in my site. It has 3 posters that post articles. I make a little serach page to search for words into articles. I have the sintax below working, but I need to know what is the syntax to it select words from several tables. Every table is for a poster and all...
1
1,992
thread by: Bernhard Hörlberger | last post Jul 16 '05 by: Jim Dabell
I have the following function. It checks if a User exists, authenticates that user based on the provided Password and Username, updates the last login info, and then returns a filepath to direct the user to. function login($aArgs) { if( !$this->_authenticate($aArgs) ) { catchErr("Can't authenticate User"); return FALSE;
2
1,947
thread by: jorntk | last post Jul 16 '05 by: Pertti Kosunen
if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) { header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else { echo "You entered $PHP_AUTH_USER for a username.<BR>";
2
3,955
thread by: Tony W. | last post Jul 16 '05 by: Tom Thackrey
I am trying to do something in PHP that I thought would be fairly easy but has become rather troublesome. I'm trying to retrieve a list of numbers from a MySQL database and display the contents in a comma delimited string if there is more than one element. My problem is that the first element of the array is displaying but not any of the...
1
1,627
thread by: Amittai Aviram | last post Jul 16 '05 by: Ian.H [dS]
(Slightly OT.) Does anybody here who works in both PHP and Perl happen to know whether there is a Perl equivalent to PHP's file(url)? I need to get the HTML output of a file as served through HTTP into some form so that I can write it locally (on the same host machine) as static HTML, and some complicated facts about permissions on the...
2
9,123
thread by: Martin Lucas-Smith | last post Jul 16 '05 by: Andy Hassall
Can anyone provide any suggestions/URLs for best-practice approaches to preventing SQL injection? There seems to be little on the web that I can find on this. Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22 www.lucas-smith.co.uk Senior Computing Technician (Web Technician) Department of Geography, University...
2
14,366
thread by: Texas Guy | last post Jul 16 '05 by: Jochen Buennagel
Not getting what I expect when I try to return an array from my function. See sample below. function test() { $myArray = 1; $myArray = 2; return $myArray; }
0
1,745
thread by: gf | last post Jul 16 '05 by: gf
I'm sure I'll slap my forehead when I see the answer, but it is sure escaping me! $field1 = 100; //Some number $field2 = '/10'; //An operand and a divisor I need $result = to be a numeric representation of 100/5 = 20. I have fiddled with concatonation and eval() and haven't figured it out yet. What's the answer?
1
2,053
thread by: Arlequín | last post Jul 16 '05 by: CC Zona
Hello, there! Is there any possibility to access a PHP newsgroup though a news client (i.e. Mozilla, Pan), using the NNTP protocol? Thanks a lot
1
7,771
thread by: Paul | last post Jul 16 '05 by: Peter James
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION =...
0
1,643
thread by: The Plankmeister | last post Jul 16 '05 by: The Plankmeister
Hi... I have a class that needs to effectively have global data so that different instances of the class on different pages share the same data. The following class is not the real thing, but the two functions I'm using are the ones listed here. They are: store_session and retrieve_session..... ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.