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 strongm 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. 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.
  16. merlinx

    debugging includes

    I've Banging my brains in the last weeks with my project, after an error which did not occure loacaly but did when uploaded. found out that was do to case sensitivty on a character. So long story short; since then I put a variable at the top of my MAIN script, $OnloadList =...
  17. merlinx

    Auto Scroll a Table

    I had simular problem and to make harder, I needed to scroll the content in a nested div. This code worked for me. 1. it uses the jquery frame work. 2. my server uses php to generate the page, if a post or get variable is set ( I'm using get in this case ) then in the document ready function...
  18. merlinx

    Array and Switch Problem

    you should try it perhaps this way: $offices = array ( 'foyer' = array(0 => ' John Smith'), 'common' = array(0 => '1. Fred Flintstone' , 1 => '2. Ann Jones'), 'north' = array(0=> '1. Pebbles Flintstone', 1 => '2. Dino Flintstone'), 'South' = array(0=> '1. Betty Rubble', 1 => '2. Barney...
  19. merlinx

    scrolling label bar

    Take a look at this; thread222-1223975 and the original thread222-531427
  20. merlinx

    Smoothly scrolling text in a Picture Box

    Just a small example for understanding : Create a new form with 3 PictureBox's -Picture1 Inside Picture1 -PictureText(0) Inside Picture1 -PictureText(1) 1 CommandButton -Command1 1 Label - .Caption = Interval 1 TextBox -Text1 1 Timer -Timer1 Put the following code in the form and Click on...

Part and Inventory Search

Back
Top