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. $handle = opendir(dirname(realpath(__FILE__)).'/uploads/'.$id.'/');$num=0; while($file = readdir($handle)&&$num<6){ ++$num; if($file !== '.' && $file !== '..' && $file !== 'index.html'){ echo '<a href="uploads/'.$id.'/'.$file.'"><img src="uploads/'.$id.'/'.$file.'" border="0" style="padding:10px;" height="100px" width="100px" /></a>'; } }
  12. 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.
  13. you have to put your username and password there. probably it is username=root and password is blank.
  14. can you post your updated code?
  15. i updated my post above. did you see it?
  16. 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
  17. 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.
  18. birbal

    Starting Up

    http://w3schools.com/css Frameworks are good once you know the language and concepts to make things faster. there is different fameworks for different language. avoid those automated software for now untill you grasp the concepts and the language.
  19. birbal

    Starting Up

    Usualy, but nescecarily. If you host in any 3rd party host they will give you a subdomain for free. in further if you need your domain you have to but it. Nowdays 3rd party servers are very cheap so it would be best to start with them if you are just begining. you can change your server plan with your needs in time without in major investment. They also will maintain the server which will reduce your your time and effort. just search in googles there are plenty of hosts. you can also check the webservver subforum of this forum. This is what this board is for. you can ask your queries or problems in related forums and we will try to help you. I dont think anyone will have time to solve the issues personaly through email or message. this forum is quite active and you will probably be answered much faster than that. creting xhtml and html pages is fairly easy. Browser compatibilty comes into play when you use CSS or javascript to them, which is quite browser dependent. Explorer was always a pain. but with IE9 it almost same as other browser with common standards.
  20. 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
  21. 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 />';
  22. 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
  23. AFAIK you have to pay everytime you will participate in exam
  24. 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);
×
×
  • Create New...