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 gkittelson 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: *

  • Users: k3bap
  • Order by date
  1. k3bap

    Setting a varialbe from another file?

    ok, I have the variable declared in test.inc: <?php $foo = '10' ?> What I want to do is Increment it but the code to do that MUST be in test.php In other words i am trying to MODIFY a global variable in test.inc from test.php I tried this test.inc: <?php $foo = '10' ?> test.php: <?php...
  2. k3bap

    Setting a varialbe from another file?

    Hi sleipnir214, thanks but thats not what I meant. From your example, I am looking for a way to set $foo from test.php so that it updates in test.inc! Is that possible?
  3. k3bap

    Setting a varialbe from another file?

    Hi I have an include file config.inc.php and another file. I am trying to set a variable within the config.inc.php from the other file. Is this possible? Doesnt seem to work!
  4. k3bap

    Setting a variable in an include?

    Hi I have an include file config.inc.php and another file. I am trying to set a variable within the config.inc.php from the other file. Is this possible? Doesnt seem to work!
  5. k3bap

    Truncate an IP address? :)

    solved it $words = explode(&quot;.&quot;, $ip); echo ($words[0].&quot;.&quot;.$words[1].&quot;.&quot;.$words[2]);
  6. k3bap

    Truncate an IP address? :)

    I need to truncate an IP address so that if I have 192.168.0.1 I end up with 192.168.0 any ideas what would be the best way to do this?
  7. k3bap

    Resource ID problem???

    thats done it. Thanks!
  8. k3bap

    Resource ID problem???

    I have the following problem: $sql_car = &quot;SELECT Car FROM cars c INNER JOIN numberplate n ON n.Model = c.Model WHERE NumberPlate='RVVG12'&quot;; $carModel = mysql_query($sql_car) or die(&quot;MySQL Error: &quot; . mysql_error()); The query itself works fine in something like PhpMyAdmin...

Part and Inventory Search

Back
Top