| |
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...
|
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...
|
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
|
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'
|
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)
...
|
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.
|
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 .
|
| |
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!
|
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
|
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:
|
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...
|
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() . '\\' ....
|
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") ;
|
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
|
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...
|
| |
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;
|
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>";
|
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...
|
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...
|
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...
|
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;
}
|
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?
|
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
|
| |
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 =...
|
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.....
...
|