|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-08-13 16:33 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
the following script will truncate the date field. foo is a table with a date field in it, say the first field. Larger tables result in "document contains no data". <html> <head> <title>Test</title> </head> <body> <h1>Test</h1> <? PutEnv("SYBASE=/l/sybase"); $di=sybase_connect("server", "username", "password"); $di=sybase_select_db("db"); /* send the SQL request */ $ri=sybase_query("select * from foo"); while ($crow = sybase_fetch_row($ri)) { echo "$crow[0]<br>\n"; } ?> </body> </html>