yangkai9999 Posted November 25, 2009 Share Posted November 25, 2009 Hello,I created a PHP-MySQL web database. It inclued a modify exist data function. Now, I would like to built a function that can set a radio button from a value to null. I counld not find a way to do that except manually using MySQL update command to set null value for the variable.Is there a way to do so using PHP?Thank you Link to comment Share on other sites More sharing options...
justsomeguy Posted November 25, 2009 Share Posted November 25, 2009 I'm not quite sure what you're asking, but you have to use SQL to communicate with the database. PHP alone can't use the database without sending SQL commands to it. If you want to set a value to null you just use the special value NULL, without quotes around it. Link to comment Share on other sites More sharing options...
yangkai9999 Posted November 25, 2009 Author Share Posted November 25, 2009 I'm not quite sure what you're asking, but you have to use SQL to communicate with the database. PHP alone can't use the database without sending SQL commands to it. If you want to set a value to null you just use the special value NULL, without quotes around it.Thank you, I'll try that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.