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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by merlinx

  1. merlinx

    Fatal error:

    __construct() (with double underscore) is part of your problem. check out Link
  2. merlinx

    Exporting From C to PHP

    It might have been written as a cgi to hide the source code, If so you need to extract everything manually.
  3. merlinx

    jquery a tag onclick

    found a solution, $(document).ready(function() { $("li ul li a").each(function(index) { if($(this).attr("name")){ alert($(this).attr("name")); } }); }); in this case alert will be replaced with other functional code.
  4. merlinx

    jquery a tag onclick

    I'm working on a project where I need to use something like bind, on, onclick or such. I have a navigation setup with a ul li structure, <ul> <li> </li> <li> </li> <li> <ul> <li><a class="mennav" name="t2">item 1</a></li> <li><a class="mennav" name="t3">item 2</a></li>...
  5. merlinx

    PHP data connection

    are the extra quotes part of the string? [COLOR=red]'[/color red][COLOR=green]SELECT * FROM Users WHERE username='keith'[/color green][COLOR=red]'[/color red] try it without the variable, [COLOR=blue]$sql = '[/color blue][COLOR=green]SELECT * FROM Users WHERE username=\'keith\'[/color...
  6. merlinx

    PHP data connection

    one star for jpadie from me. ;-) I'm still in my first year of using php, and I think I've got good grasp on things. none the less I'm still in my write more, do less phase.
  7. merlinx

    PHP data connection

    my 2 in the morning syntax... If you copied and pasted the code directly, then your user name was preceded with an empty space on the left side, $sql = 'SELECT * FROM Users WHERE username='.'\' '.$who.'\' '; my 2 in the afternoon syntax... [COLOR=blue]$sql = [/color blue][COLOR=green]'SELECT...
  8. merlinx

    PHP data connection

    another correction, if ($con === false){ $ret = mysql_close( $con ); } // wrong if ($con !== false){ $ret = mysql_close( $con ); } // better
  9. merlinx

    PHP data connection

    echo (!$data) and got a 1. following script, <?php echo (!false); ?> outputs 1 // not false = true so, starting from ground up, $host ="host"; // Servername $user ="who"; // MySQL-Benutzer $pwd ="pass"; // Password $db ="db"; // Database $table = "myTable" // select from this table $con =...
  10. merlinx

    PHP data connection

    also echo array's with echo '<pre>'; print_r ($variable ); // from first example print_r ($resultSet); // from second example echo '</pre>';
  11. merlinx

    PHP data connection

    your request will return either false or an array. first off, if($data !== false) 1) $variable = mysql_fetch_array($data); 2) while($result = mysql_fetch_array($data )) { $resultSet[] = $result; } 3) it's 2:15 in the morning here in Germany, I'll have...
  12. merlinx

    PHP data connection

    correction; [dot] dollar request , I looked over that to fast. in the both you have an opening " with out the closing one, pertains only to the second one. but look at $sql if $_REQUEST["username"] for example is alfred, it is turned into 'alfred'
  13. merlinx

    PHP data connection

    in the first one you have [dot] dollar request. in the both you have an opening " with out the closing portion and the same problem with the username turning off the string and opening a new string with out being closed. try, $who = $_REQUEST["username"]; $data = mysql_query("SELECT * FROM...
  14. merlinx

    php and request

    off the top case sensitivity $_REQUEST not $_Request. it's also better to use $_GET & $_POST accordingly to avoid conflicts.
  15. merlinx

    debugging includes

    Cool, didn't know that one yet. I just read over it, even though for my purposes the other way is better for this project. when reading file names from a data base, I can add it's name to the varible & then try to include it. After which I can generate a message about any missing file.

Part and Inventory Search

Back
Top