Re: [PHP-DB] Displaying next ten items

2006-12-28 Thread Darryl Ware
to worry if there aren't 10 left to display as limit will just return the rows that are left. For complete non results (like record 59 of 46) there are a few schools of though, like doing a max/min on the id field or a row count to see whats the possible range. Darryl. -- PHP Database Mailing

[PHP-DB] Re: 10 rows

2006-12-28 Thread Darryl Ware
and that will put you onto plenty of great tutorials. Darryl. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Only a section from the database result

2006-07-18 Thread Darryl Steyn
also add LIMIT 15 to your query. no point in getting all that info if you want 15 results. On 7/18/06, Miguel Guirao [EMAIL PROTECTED] wrote: Use the trim function, or anoter function that just takes the n first characters. -Original Message- From: Benjamin Adams [mailto:[EMAIL

Re: [PHP-DB] Re: maximum number of records in a db?

2005-08-26 Thread Darryl Steyn
with questions being answered like that, i am sure many will. On 8/26/05, Raz [EMAIL PROTECTED] wrote: Jordan I am sorry that people like to ridicule noobs on this list. It was a simple question with a simple answer. Thank you!! Not at all, shame if you see it this way - it is mostly

Re: [PHP-DB] parse error in create statement.

2005-06-14 Thread Darryl Steyn
$sqlstmt= CREATE USER .$adduser. PROFILE DEFAULT IDENTIFIED BY .$addpass. DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON USERS ACCOUNT UNLOCK; GRANT CREATE TABLE TO .$adduser. GRANT CREATE TRIGGER TO .$adduser. GRANT CONNECT TO .$adduser.; for the .'s

RE: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg - to uploadimage path

2005-02-09 Thread Darryl
You could use something like $fileloc = subdir/.$_FILES[addpic][name]; -Original Message- From: Bastien Koert [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 9:44 PM To: [EMAIL PROTECTED]; php-db@lists.php.net Subject: RE: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to

[PHP-DB] Access

2005-02-02 Thread Darryl
Hay, I was just wondering if any of you had any links to websites that explained php programming with Access databases. Thanks in advance, Darryl

FW: [PHP-DB] why is it so?

2004-12-30 Thread Darryl
Make sure that you are sending the session_start() function before you send anything else to the web browser, it must be the first thing done as with setting cookies -Original Message- From: Nayyar Ahmed [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 5:56 PM To:

FW: [PHP-DB] check out this , if block is not executing ............

2004-12-27 Thread Darryl
From what I see, the code is fine, you just haven't finished it. mysql_query(INSERT INTO totalinfo (Username,Password) VALUES ('$loginusername','$loginpassword'),$dbh)or die (mysql_error()); } Give that a bash -Original Message- From: John Hicks [mailto:[EMAIL PROTECTED] Sent: Monday,

FW: [PHP-DB] mysql_query

2004-10-12 Thread Darryl
You may have to use $_POST. Like - $ime = $_POST[ime]; Just put the form component name inside the square brackets of the post function to get it to work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 3:44 PM To: [EMAIL PROTECTED]

RE: [PHP-DB] ip address

2004-09-30 Thread Darryl
function getIP() { if (getenv(HTTP_CLIENT_IP) strcasecmp(getenv(HTTP_CLIENT_IP), unknown)) $ip = getenv(HTTP_CLIENT_IP); else if (getenv(HTTP_X_FORWARDED_FOR) strcasecmp(getenv(HTTP_X_FORWARDED_FOR), unknown)) $ip = getenv(HTTP_X_FORWARDED_FOR); else if (getenv(REMOTE_ADDR)

[PHP-DB] String handling

2004-09-30 Thread Darryl
Hay, Is there a way to make a string into an integer? I have a value coming from a textbox and I want to check if the amount in it is 1. Thanks, Darryl

RE: [PHP-DB] String handling

2004-09-30 Thread Darryl
Yeah, I thought so seeing as I had done it like that previously, turns out it was something else that was causing the problem :D Thanks anyhow :D -Original Message- From: Hutchins, Richard [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 5:43 PM To: 'Darryl'; [EMAIL

RE: [PHP-DB] SQLite problem INSERTing string

2004-09-19 Thread Darryl
$val = 127.0.0.1; $query = INSERT INTO node (uri,name) VALUES ('.$val.','bla'); Try that? -Original Message- From: Stefan Reimers [mailto:[EMAIL PROTECTED] Sent: Sunday, September 19, 2004 6:37 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] SQLite problem INSERTing string Hello, I am

FW: Fwd: [PHP-DB] Q

2004-08-22 Thread Darryl
I think he wants something like; Echo(a href=\$address\view website/a\n); Where $address = the db entry that will store the value -Original Message- From: Peter Ellis [mailto:[EMAIL PROTECTED] Sent: Sunday, August 22, 2004 6:57 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[PHP-DB] date function

2003-09-05 Thread Darryl
. $timein is always 1969. Date in the database is -MM-DD. What have I screwed up ? thanks, Darryl -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] basic php question

2003-09-03 Thread Darryl
to create a new record in emp2 and load values. Is there a tutorial that shows how to do something this basic ? tips ? thanks, Darryl -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Using Snoopy

2003-02-22 Thread darryl porter
Does anyone know of any sites that explains how to use the Snoopy class? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Really Dumb Question...

2001-04-11 Thread Darryl Friesen
able $propTable ( ID int not null auto_increment primary key, TourName tinytext, TourTitle tinytext, ViewTitle tinytext, TourNum tinyint not null, Applet tinyint not null, Desc text, TourPath text, SmFile text, LgFile text ); "; $result = mysql_que

Re: [PHP-DB] how do I connect to MSSQL and mySQL with PHP4 and Linux?

2001-03-28 Thread Darryl Friesen
part is knowing what port the SQL server listens on (the default is 1433). Feel free to email me if you need more help. By the way, I understand there are major issues with SQL2000 server. In that case, ODBC might be a bette

Re: [PHP-DB] Hold that insert!

2001-03-27 Thread Darryl Friesen
Like this: if ( empty($submit) ) { ### Display the form } else { ### Do some checks to make the the data is OK ### Do the Insert, or whatever else is to be done } - Darryl ------ Darryl Friesen, B.Sc., Programmer/A

Re: [PHP-DB] A question - ($file_exists)

2001-03-27 Thread Darryl Friesen
quot;; # $var hold the _name_ of the variable # you want to change $$var = "blank.jpg"; # The $$ syntax is used to references the # actual variable See the section of the manual dealing with variables (htt

Re: [PHP-DB] More on strings

2001-03-20 Thread Darryl Friesen
e out of the double quotes, like you did in the first line. $sql = "select Primaryid from primarycodes where Code like'%" . $row[Primaryexpertise] . "%'"; print $sql . "BR\n"; $resultp = mysql_query($sql) or die (mysql_error()); - Darryl -------

Re: [PHP-DB] Select where

2001-03-20 Thread Darryl Friesen
SELECT, and you don't need to escape the single quotes. - Darryl ------ Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask.ca/ Department of Com

Re: [PHP-DB] Re: [PHP] Query - Grouping Results

2001-03-19 Thread Darryl Friesen
ecord, check if it's different than the current one. If it is, save it as the current username, and print the login info. If it's the same, just print the login info. - Darryl ------ Darryl Friesen, B.Sc., Programmer/Analyst

Re: [PHP-DB] Default port on sybase_connect()

2001-03-15 Thread Darryl Friesen
by looking at the file how to change the port number. Also, check out the documentation that came with FreeTDS/Sybase. - Darryl -- Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology

Re: [PHP-DB] mysql_fetch_array problem...!

2001-03-05 Thread Darryl Friesen
result set. - Darryl ------ Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask.ca/ Department of Computing Services, University of Sa

Re: [PHP-DB] Drop down box

2001-03-01 Thread Darryl Friesen
The action you want is only available using JavaScript. You need to submit the form without a submit button. The "select" tag has the "OnChange" event which is scriptable. You can use the JavaScript statement "this.form.submit();" associated with the "OnChange" event. form... select

Re: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Darryl Friesen
of pages/images etc. Better to spend the time writing PHP code. :) - Darryl -- Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask.ca/ Department

Re: [PHP-DB] Hide Files

2001-02-19 Thread Darryl Friesen
($file_name !="*.php") how come that still displays all the *.php files? Because that's an exact string match for a file called '*.php' which probably doesn't exist. Try some thing like (substr($file_name, -4) != '.php') That should exclude all files ending in '.php'.

Re: [PHP-DB] Basic MySQL question

2001-02-15 Thread Darryl Friesen
ss running? I assume this is a unix box of some sort. Try "ps -ef | grep mysqld". Get any results? - Darryl ------ Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technolog

Re: [PHP-DB] Apache, PHP4, access problem to MS SQL 7.0

2001-02-14 Thread Darryl Friesen
that helps. - Darryl -- Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask.ca/ Department of Computing Services, University of Saskatchewan

Re: [PHP-DB] what's a core file?

2001-02-07 Thread Darryl Friesen
r mysql server is dumping core, you've got big problems that need addressing. - Darryl ------ Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask

Re: [PHP-DB] installing

2001-02-06 Thread Darryl Friesen
wouldn't bother with PWS. Apache or Xitami (www.xitami.com) are far easier to setup. I've installed PHP under both, with no problems. - Darryl -- Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education

Re: [PHP-DB] insert into mysql

2001-01-29 Thread Darryl Friesen
ySQl still treats it as intended. THey aren' necessary for int columns, but it is acceptable to have them there Thanks for pointing that out Tom. That's a good bit of info to tuck away for later. We've been using MSSQL Server 7 here quite a bit lately, and it isn't nearly as forgiving. :(

Re: [PHP-DB] insert into mysql

2001-01-25 Thread Darryl Friesen
It still didn't work. just says unable to add part $sql = "INSERT INTO ecomm (ID,part) VALUES ('$sid','$spp')"; Another thought: Are ID and part character data of some sort? If not (i.e. if ID is an int) then remove the single quotes.

Re: [PHP-DB] Child tables in MySQL

2001-01-19 Thread Darryl Friesen
? - Darryl -- Darryl Friesen, B.Sc., Programmer/Analyst[EMAIL PROTECTED] Education Research Technology Services, http://gollum.usask.ca/ Department of Computing Services, University of Saskatchewan