Wednesday, 3 September 2014

PHP select single colun value





PHP single column value :

$post_like_id=mysql_query("SELECT * FROM `post_answer` WHERE `postid` = '$questionID'");

$post_answer = mysql_fetch_array($post_like_id);

$like=$post_answer['p_id'];

No comments:

Post a Comment

KISS, DRY, SOLID, YAGNI — A Simple Guide to Some Principles of Software Engineering and Clean Code

1 — KISS (Keep It Simple, Stupid)  Simplicity triumphs over complexity. Direct and clear codes are better for developing, maintaining, and s...