Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pheng56

    How to call public function article() inside printf()

    Hi, Still have this error: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Database\DBAccess.php on line 43 All codes are below: Regards, <?php namespace...
  2. pheng56

    How to call public function article() inside printf()

    Hi jpadie, <h3> <a href="article()?id=%s\">%s</a> </h3> I take the above line from your code and change $id=%d for decimal like this: <a href="article()?id=%d\">%s</a> and put in my code and I still have this error: Parse error: syntax error, unexpected 'article' (T_STRING) in...
  3. pheng56

    How to call public function article() inside printf()

    Hello, Please assist me to fix this calling function within printf(); I really appreciate, Thank you in advance, Best regards, public function main() { // SQL to display the article part with number of comments and last date time of comments $sql = "SELECT...
  4. pheng56

    Pass variable $id into userid(field) of article table.

    Hi, Can you advise me where is Symfony forum in tek-tips ? Thanks again,
  5. pheng56

    Pass variable $id into userid(field) of article table.

    Hi, I have a $id that needs to put inside the field userid of article table by using this function of PHP Symfony. I really appreciate if someone can help me to fix my function. Thanks, public function submitAction($id) { print_r('UserID to enter is '); print_r($id); $message=''...
  6. pheng56

    How to keep one variable in memory

    Hi Nigel, Thank you, it works fine.
  7. pheng56

    How to keep one variable in memory

    Hi all, I would like to keep one variable in memory for my next sql query. mysql_connect('localhost', 'root', '') or die("Mysql connection failed"); mysql_select_db("blog") or die("Can't find database 'blog'"); $sql = "select * from user,article where article.userID=user.ID order by...

Part and Inventory Search

Back
Top