Jump to content

birbal

Members
  • Posts

    2,543
  • Joined

  • Last visited

Everything posted by birbal

  1. birbal

    Next step?

    It would be same but if you store the sql in variable you will be able to print it out when you will need to debug so that you can study how your query and its values being evaluated. it will be same when you will pass $sql to mysql_query($sql);
  2. here is the referene for id3() http://in2.php.net/m...n/intro.id3.php but it looks like its for mp3. one way is you can unpack() the file contents and decode its bits as per file format specifications. you have to do some research on file specifiation which you want to decode. each of them probably have different rules. http://php.net/unpack
  3. you need to use js. you can bound a onchange event in select and check its value when event trigger if it matches lips either you need to create a node of textarea using js dom or you can have a existed hidden textarea and you need to have visible.
  4. what were you expecting? what is not working? what is happening instead?
  5. i am not sure about this loop and what is it doing here.echo "Uw totaal score is: <span id='total_score' name='span[]'></span>"; move this part inside foreach loop
  6. if query is not working let see why it is not working. print out the error of mysql if mysql_query() rfeturn false which means its failing. $result = mysql_query($sql);if(!$result)echo mysql_error();
  7. what does it exactly prints? can you post that?
  8. birbal

    Where ....?

    export a db out of where? if you mean exporting a db and the importing it to other database, then yes. yes its possible. you need to use ajax. but i dont think you need to get into that now.
  9. we need to see the final code.
  10. you could pass an array in construtor which will initialize its value by looping it. something like public function __construct($param=array('db'=>'dbcredential','customer'=>'some name','event'=>'spme event')){ foreach($param as $key=>$value){ $this->$key=$value;}} if you want that no other property be set rather than the property you initialized at first you ,can use isset() in loop before assigning the value
  11. what do you mean by image of database? there is no such thing image of database. only way to show a working database is developing a working application.
  12. you have to put your username and password there. probably it is username=root and password is blank.
  13. can you post your updated code?
  14. i updated my post above. did you see it?
  15. ok. what happened when you ran it? does it show any errors ? i can see the insert example does not have any debugging code. you can check mysql_query() return value that if it successfull or not. if failed echo the reason using mysql_error() $res=mysql_query("INSERT INTO Persons (FirstName, LastName, Age)VALUES ('Peter', 'Griffin',35)"); if(!$res)echo mysql_error(); http://php.net/mysql_error
  16. which scripts did you test? can you post the link? genraly you need to create database and tables from phpmyadmin and then use php to pull and push data inside it.if you have come up any code ,posting would be helpfull too.
  17. birbal

    what debugger

    no it should not be problem. your local site will be there you need to point out out correctly your web root when you install those manualy to get it worked. but it wont collapse your site
  18. array_search() is case sensitive so that it is not matching. you can use str_ireplace() fo case insensitive replacement. rather than searching through the array you can directly replace the cid using str_ireplace(). if you need to determin the count of replacement occurance you can use the 4th param of that function. http://php.net/str_ireplace. that would be more efficcient. str_replace('cid:', '', $srcArr,$occurance);if($occrance===0)echo 'No cid affix found<br />';
  19. birbal

    backup your DB

    I cant see anything in your provided code which will cause to query the database and save it and compress it to zip. is that your complete code? Set the appropiate content-type header for zip file in email header
  20. AFAIK you have to pay everytime you will participate in exam
  21. mysql_real_escape_strin() returns escaped string which you need to store in some variable and later use that variable to get insert into db $content=mysql_real_escape_string($content, $db);
  22. the query is being broken for quotes you need to escape the inputs before its geting inserted into db using mysql_real_escape_string()
  23. Have reached into top most stress level

  24. what is id refering here? id of directory or file? are you storing the file in filesystem or database?
×
×
  • Create New...