环境 win2003 iis6.0 php5.2
mysql帐户有写入修改权限 但是在php页面上不能写入修改 只能查询
求大神指点
回复讨论(解决方案)
建议还是贴代码出来,有错误提示也一并贴出。
建议还是贴代码出来,有错误提示也一并贴出。
没有错误 在我本地机器可以 到服务器就不可以 是不是php哪个模块或者 数据库文件权限的问题
打开php的错误提示看看
php.ini 中 display_errors=On
放在本地的另一台服务器试试
打开php的错误提示看看
php.ini 中 display_errors=On
这个是打开的。
打开php的错误提示看看
php.ini 中 display_errors=On
我觉得不是错误 是不是mysql文件也要有权限写入呢
本地可以,说明程序基本没问题。因此,服务器不可以,应首先检查是否有权限
程序基本没问题,并不表示一定能运行成功
数据库都需要转义特殊字符,你没做,就可能出问题
本地可以,说明程序基本没问题。因此,服务器不可以,应首先检查是否有权限
程序基本没问题,并不表示一定能运行成功
数据库都需要转义特殊字符,你没做,就可能出问题
mysql帐户权限是有的 其他不知道还要检查什么权限。
也能确定不是特殊字符的问题。
mysql帐户权限是有的
那么请贴出 mysql.user 表相关记录看看
也能确定不是特殊字符的问题
那么请贴出有关转义部分的代码
mysql帐户权限是有的
那么请贴出 mysql.user 表相关记录看看
也能确定不是特殊字符的问题
那么请贴出有关转义部分的代码
在phpmyadmin里可以添加修改数据的 那就应该有权限
转义的化 我用的是最土的模板 php其实有点看不懂
static public function &Instance() { if ( null == self::$mInstance ) { $class = __CLASS__; self::$mInstance = new $class; } return self::$mInstance; }
觉得是这里的问题
INSERT INTO `table`
SET `email` = 'email@msn.com',
会不会是[`]这个的问题
瞎猜做什么?
echo mysql_error();
不就知道是否有问题了?
在浏览器输出插入的sql语句,然后放到MySQL管理器中执行,看有没有问题,或者报的什么错误
瞎猜做什么?
echo mysql_error();
不就知道是否有问题了?
就是对php不熟悉
瞎猜做什么?
echo mysql_error();
不就知道是否有问题了?
表是只读的。
多谢版主再次帮我解决问题。对你的敬仰犹如滔滔江水 连绵不绝

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

PHPisusedforsendingemailsduetoitsbuilt-inmail()functionandsupportivelibrarieslikePHPMailerandSwiftMailer.1)Usethemail()functionforbasicemails,butithaslimitations.2)EmployPHPMailerforadvancedfeatureslikeHTMLemailsandattachments.3)Improvedeliverability

PHP performance bottlenecks can be solved through the following steps: 1) Use Xdebug or Blackfire for performance analysis to find out the problem; 2) Optimize database queries and use caches, such as APCu; 3) Use efficient functions such as array_filter to optimize array operations; 4) Configure OPcache for bytecode cache; 5) Optimize the front-end, such as reducing HTTP requests and optimizing pictures; 6) Continuously monitor and optimize performance. Through these methods, the performance of PHP applications can be significantly improved.

DependencyInjection(DI)inPHPisadesignpatternthatmanagesandreducesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itallowspassingdependencieslikedatabaseconnectionstoclassesasparameters,facilitatingeasiertestingandscalability.

CachingimprovesPHPperformancebystoringresultsofcomputationsorqueriesforquickretrieval,reducingserverloadandenhancingresponsetimes.Effectivestrategiesinclude:1)Opcodecaching,whichstorescompiledPHPscriptsinmemorytoskipcompilation;2)DatacachingusingMemc


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
