Jump to content

ramli

Members
  • Posts

    53
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ramli's Achievements

Member

Member (2/5)

0

Reputation

  1. I want to send a refresh command from my pop-up screen to a i frame in the parent document. I have written the following script: top.val.location.href= 'test.html';Where val is the name of the iframe. Can anyone help me pleace ? Thx in advance...
  2. I have a problem with my database structuere, and i am not sure how to resolve it. I have two tables. Users Username Password Role | | | | | Client_data Client_ID Username Location Zipcode Execute the following qurey SELECT * FROM Users INNER JOIN Client_data ON Users.Username=Client_data.Username Workes fine but when i like to search on username i get a error SELECT * FROM Users INNER JOIN Client_data ON Users.Username=Client_data.Username WHERE Username LIKE '%$search%' Error: #1052 - Column 'username' in field list is ambiguous I know it is a problem coused by the colomn username only i don't know wat to do to resolve it, can anyone help me pleace ? Thx in advance
  3. Looked it up in the dictionary and tryed.. SELECT * FROM gebruikers INNER JOIN klas ON gebruikers.Klas_ID = klas.Klas_ID WHERE (Gebruikersnaam LIKE '%test%' OR Voornaam LIKE '%test%' OR Achternaam LIKE '%test%' OR Tussenvoegsel LIKE '%test%' OR Klasnaam LIKE '%test%') AND Actief = '1' AND Gebruikersrol = '2' AND Jaar = '2009' and it works perfectly. Thx for the help.
  4. Could you pleace give me a example... my english ist that great... i dont know what a parenthesis is.. Thx in advance...
  5. I have the following querys: query1: SELECT * FROM gebruikers INNER JOIN klas ON gebruikers.Klas_ID = klas.Klas_ID WHERE Actief = '1' AND Gebruikersrol = '2' AND Jaar = '2009' query2: SELECT * FROM gebruikers INNER JOIN klas ON gebruikers.Klas_ID = klas.Klas_ID WHERE Gebruikersnaam LIKE '%raman%' OR Voornaam LIKE '%raman%' OR Achternaam LIKE '%raman%' OR Tussenvoegsel LIKE '%raman%' OR Klasnaam LIKE '%raman%' AND Actief = '1' AND Gebruikersrol = '2' AND Jaar = '2009' When i add the FIND to the query it ignores the Gebruikersrol, Actief and Gebruikersrol restriction and display's all records. I want to search the database with the restrictions in place. What am i doing wrong? any help will be much apreciated.
  6. Thx this is exacly what i was looking fore
  7. Hi all, I am trying to read a webpage source to get specific information. for exaple a webpage with the source: html>... head>.... body>.... Hellow my name is: #Value my lastname is : jordan And the name of my dog is <body..... and i want to read the #Value that is a variable value. so i need to create a sort of anker to select the value. i think i need to read every line, one line at a time. Then i need to recognise the sentence "Hellow my name is:". Next i need to select the value that recides inbetween ":" and "my". I have constructed the following script. But it can only tell me that the sentence is present. $url = 'http://www.test.test'; $needle1 = Hellow my name is:"; $contents = file_get_contents($url); if(strpos($contents, $needle1)!== false) { $var= 'yes'; } Can someone help me with the rest. Thx in advance....
  8. Hellow, I have a question concerning the script below: <script> function getval(inputname,iframename,formname,fmprvar) { getoption = document.+formname+.+inputname+.value top.frames[iframename].location = './formprocessor/FORMPROCESSOR.php?pageid='+ fmprvar +'&val=' + getoption; } </script> as you can see im trying to combine variables inside a document function. However this does not work. do any of u have a solution for this ? Thanx in advance
  9. Yes i have printed it to the screen and literary used that data to test the fixed string
  10. I have a problem and i hope that any of u can help me. while($r = mysql_fetch_array($Query)) { $data[0] = $r['name']; $data[2] = $r['type']; $data[3] = $r['link']; etc... if($_GET['check'] == "YES")// Validation { $myFile = $data[3]; $DBvar = $data[6]; unlink("$myFile") or die ("<BR> Could not delete file $myFile"); etc... The strangest thing happens. when i use unlink on for exaple "./files/upload/test.doc" it returns " Could not delete file ./files/upload/test.doc" but if i code it hard into my code for exapmle: $myFile ="./files/upload/test.doc"; $DBvar = $data[6]; unlink("$myFile") or die ("<BR> Could not delete file $myFile"); or unlink("./files/upload/test.doc") or die ("<BR> Could not delete file $myFile"); it works fine. I dont understand wy it works if it is a static var but not if it is a dynamic one. Can someone pleace help me with this problem ?
  11. I have a problem and i hope that any of u can help me. while($r = mysql_fetch_array($Query)) { $data[0] = $r['name']; $data[2] = $r['type']; $data[3] = $r['link']; enz... if($_GET['check'] == "YES")// Validation { $myFile = $data[3]; $DBvar = $data[6]; unlink("$myFile") or die ("<BR> Could not delete file $myFile"); enz The strangest thing happens. when i use unlink on for exaple "./files/upload/test.doc" it returns " Could not delete file ./files/upload/test.doc" but if i code it hard into my code for exapmle: $myFile = $data[3]; $DBvar = $data[6]; unlink("$myFile") or die ("<BR> Could not delete file $myFile");
  12. Try: Header: <script type="text/javascript"> function ex() { var x=confirm("Do you want to save your work ?") if (x) window.location="save.php"; else window.location="exit.php"; } </script> Body: <body onunload="ex();"> This will display a queystion if you want to save your work or not. i hope it will help u. ps: its not tested.
×
×
  • 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.