Jump to content

chipk1

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by chipk1

  1. Duh! Sometimes those extra sets of eyes are valuable. Thank you!
  2. No one knows the solution to this? I really need help to move on with my project. Plz plz plz?
  3. Make sure there are no spaces before or after your <?php  ?>. If <?php is not the very first this on the page, server will send its own header info. hence the error your getting.
  4. [quote author=Unholy Prayer link=topic=116788.msg476025#msg476025 date=1164849356] Ok, this is my code to get the number of threads in the forum: [code] $count_sql = mysql_query('SELECT * FROM threads WHERE $fid = fid'); $threads = mysql_num_rows($count_sql);[/code] This is the error message that i get: [quote]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mtechdev/public_html/bbultimate/index.php on line 41[/quote] Can someone tell me what is wrong with my code? [/quote] Had the same problem yesterday. Try this $count_sql = mysql_query("SELECT * FROM threads WHERE fid = '$fid'") or die(mysql_error()); Change single ' to double ' and the put single ' around $fid like this '$fid' should work than
  5. This doesn't seem to work? What am I doing wrong? ------------------------------------------------------------------ class A { var $data; function A() { $this->data = "information to be displayed"; } } class B { var $a; function B() { $a = new A(); } } $c = new B(); echo $c->a->data; ------------------------------------------------ It does not echo "information to be displayed"????????????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.