cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Also after you recover your inbox I would suggest sending your inbox to your web mail so all of your emails are in your web mail. Then install Mozilla Thunderbird and assign your web mail smtp account to Mozilla Thunderbird. Thunderbird will then download all of your emails into its inbox and you can then download Mozilla Backup where you can backup all of your emails so if Thunderbird crashes or the isp becomes bankrupt then you can refer to the backup file generated by Mozilla Backup. Always good to have backups.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Well in your script you have forgotten to include the mysql_connect() and mysql_select_db() functions. Try adding them in at the appropriate places and also when using the php opening tag, use <?php instead of the short tag <? as some servers will not recognize the short tags.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I would suggest that you go on with python or PHP... Just to think that Linux is more favorable with these languages... and we all know that Linux is much better than windows when it comes to server stuff.

Indeed and you can't get Asp.net or Internet Explorer on Linux unless you get drunk on wine. ;)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

When posting a form using html there are two methods you may use which will alter the way you will use the php code. Inside the <form> tag you may use <form method="POST"... or <form method="GET"... Upon using them they will correspond with the following php code.

$_GET //method="GET"
$_POST //method="POST"

However to uses these variables or arrays as they are called, you will need to know the name of the fields you used in your form. For example, if you used <form method="POST"><input name="myname"... then you would use $_POST to access what was in the myname field. If however you used method="GET" then you would access it with $_GET and you can place inside the quotes whatever is inside name="" within the form posted. As per how to compare them you can simply use the following:

if ($_POST['some_name']=='value') {
//it has compared successfully.
}
/*or to compare from mysql*/
mysql_connect('localhost','root','');
mysql_select_db('my_database');
mysql_query('SELECT * FROM `table` WHERE `column`="'.mysql_real_escape_string($_POST['thename']).'"') or die(mysql_error());

So those are the basics to it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

While expressing frustration in the middle of a google search I found a bug in chrome while performing a google search. I smashed both of my palms on my keyboard at the same time while the cursor was in the search box and it froze the chrome tab and the keyboard wouldn't work for that tab. However as soon as I closed that tab and open another tab with a new google page the keyboard worked again. I guess google doesn't want you typing 720 words per minute as it causes it to freeze :(. Maybe chrome is limited to you typing 255 words per minute and sends that data to google. Have any of you's come across any bugs using this method? Any bugs at all in any of your programming which suddenly got solved by some type of frustration?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I'm currently listing to all of my computers humming with their enormous cpu.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

InterTech Services

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

TBO Simon, I don't know. It just strikes me as the easiest option, perhaps not necessarily the best. Some expert here may have a really nifty query / bit of code that does all this for you, but it strikes me as 'dangerous' when you're trying to delimit your text with \\n. If you delete the first term, then edit the second item (etc), how will the DB know which records to delete and update?

I would have to agree with you and may I ask the original poster, "Why not have a table of two columns with each row on the first column containing each word to filter and each row on the second column containing a number determining weather the word filters soundex or substr_match or both?" That would be the most logical thing to do.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

According to the manual your if statement should be the following:

if (mysqli_query($Conexion,$Query)===TRUE)
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

At a guess, I assume your table `Usuarios` has more than just two columns. If so, on line 10, you need to specify the fields for which you're providing values.

E.g.

INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)

If that still fails, run the query on line 10 in your MySQL console to see whether it results in an error.

R.

I believe what the original poster has done is valid syntax although is bad practise to do so. So you are right that you *should* include the column names but mysql *can* recognize the syntax without column names. Conclusion to that is I would add the column names like blocblue suggested. However the real bug in this code is the following line.

if (mysqli_query($Conexion,$Query))

That is not a valid if statement. You need to assign mysqli_query to a variable and pass one of the variables methods through the if statement to be able to get a true/false statement out of it. I myself don't really use the mysqli module much but I'm sure it would all be in the manual at php.net

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Maybe using the files on your first post you could using the following banner.php

<?php
include_once "db.php"; //probably not needed

$sql=mysql_query("select * from banner where tf='1' ");

$r=mysql_fetch_array($sql);

	$name=$r['name'];

echo"<img src='admin/banner/images/$name' width='1440' height='900'>";
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

you need to remove include "db.php"; from the one you highlighted in red because when it comes to banner.php db.php gets included again which currently causes an error. Perhaps that's your problem and php should have spat an error out about that. You should really go to view->source and check what is happening in that section of the source.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It doesn't work yet !!!!!


please it is necessary for me !!!

I wanna display the image in the main page too, the problem is for using php command in java script ...

Are there any php errors or warnings? View the source if they aren't appearing in the browser to find the warnings php is generating and post them here. Also both files should end in .php . It is essential that they both end in .php otherwise php will not phrase them. But other than that, without much more debugging information there isn't a lot we can do.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Try the following:

<!-- JAVASCRIPT TRIGGERS -->
	<script type="text/javascript">	
		$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
				theme: 'dark_square'
			});
		});	
		
		$.backstretch("<?php include ('banner.php'); ?>", {speed: 'slow'});		
	</script>
<?php
include"db.php";

$sql=mysql_query("select * from banner where tf='1' ");

$r=mysql_fetch_assoc($sql);

echo 'admin/banner/images/'.$r['name'];
?>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The reality is you will need a long text list however, php does have some nice functions to make the list shorter. Say you want to match the word frank in all usernames (eg. "franky" or "dfrankzilla") then php has a function called substr_count(). If however you wish for a word to be matched by how it sounds then php has a function named soundex(). In those two pages you can check the links on the left hand side for more functions that may be suitable. So in simple you would loop through your list of words and check if the word occurs as part of the username or if it sounds similar to the username. That's the easiest way to filter it and shorten the list. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

One thing I noticed in your code is line 8 of server.php which should have an ip address instead of a note saying to insert one. I don't know what the ip address is meant to be but you should read googles documentation.

$master  = WebSocket("[server_IP]",12345);

Also if there are still troubles after that could you please post here the error messages you are receiving and show where in the code they refer to. Thanks.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It is possible that you have invalid parameters in your .htaccess file so try following the tutorial at the following link then copy and paste the code.
http://www.password-protection.com/
If however the tutorial is hard to follow or doesn't work then you may find using cpanel or your web administrative panel an easier alternative as some administrative panels that your web host provide such as cpanel will allow all of this code to be generated and placed automatically by the click of a few buttons.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Looks like you are confusing issues: language used to write compiler and end product of compiler produces. Compiler written in Scheme could produce linkable assembler, which could suffice, or Java byte code or C++.

Could you please explain in more simple context because I could only understand as far as "of compiler produces" then I got confused by the rest.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

The difference is that you were asking about mods providing feedback on reported posts, of which there are hundreds every week, whereas the current thread is about tutorial postings of which there are relatively few.

In this particular case we have had a number of PHP tutorials submitted at the same time, but lack moderators with the relevant level of PHP experience to peer review those tutorials. No disrespect to cwarn23, but DaniWeb has to be sure that every tutorial that gets official status is accurate/correct - which is where we are at right now, discussing the best way forward with these tutorials.

DaniWeb values the time taken in writing and submitting these tutorials, and certainly doesn't want the poster to feel this isn't the case. They have not been forgotten, and we are actively considering what happens next. Sorry it's taking so long... :(

there are hundreds every week

I'm not asking about hundreds every week nor am I asking about mine to some degree. The question is just who has become the new boss. I think Dani forgot to re-apply the feature where you can see which members are which positions (eg which members are which tutorial approvers and how many mods are moderate the php forum) when Dani upgraded the forum interface (eg browsing forum categories). I wish Dani had of kept those features. If you don't want to revile the new boss(es) because of the pm system then that is fine. Also hundreds a week. G' …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Note the $_REQUEST array should never be used due to security problems such as injections. Instead use the $_GET or $_POST arrays/tags.

$news = (isset($_REQUEST['isi_berita']))?$_REQUEST['isi_berita']:'';
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

What you mean Punch Cards, that is media, not computer language.

Punch Cards is where you make a program by manually setting the ones and zeros in a series of cards (punching holes if you will) and feeding those cards into a computer with a compiler. That then compiles the compiler which in this case would be the pascal compiler. I'm not sure how many people still do this today but I'm hoping I can get a pascal compiler written in that form or not far off because many compilers today have many layers of complexity where it follows the following script if you will.

compiler=punch_cards
while (language_insufficiant) {
compiler += compiler(another_language);
}

So as you can see the compiler gets more complex each time a new language is invented there by hogging more memory, slowing down cpu time, delaying speeds. That is why I need a pascal compiler which was written in punch cards or has been programmed from a compiler which was programmed directly in binary and not another compiler.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi, I am starting to learn Pascal as a personal project but need an IDE/compiler. Does anybody know of a good IDE+compiler in one that they use which has the usual features like line numbers and decent debuggers. Also I need a compiler which is not written in C or C++ but rather a compiler that is written in Punch Cards or the language that the original Pascal compilers were written in. Please advice. cwarn23

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

cwarn23, what would Dani be needing a terminator for? ;)

Well the terminator could do all of the website updates and make all of the patches in record time while Dani can enjoy the profits and party down. You'll get what I mean if you read the post in my other thread. ;)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Handily, this will be a combination of work and partying. Yay! :)

Work and party? Maybe you could create your own personal terminator to do the work for you so it's all party down. :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

>>The clue is in my username
I would say because of the word "happy" there for has prospered and probably lived long too judging by his photo.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

cwarn23, i think the moderators need more time to decide. Am sure its quite a task considering the number of editorials and stories they have to debate on before publishing.

Well it's been 10 days and perhaps the moderators could enlighten us on what their talking about in the moderators lounge in regards to this topic.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Hi,
When sending sms's with php, you need to sign up to an online provider and they will provide you with a php api if available for that provider. Also there is no such thing as a free sms provider as they must change you for the use of the bandwidth and broadcasting on mobile towers. But generally I have found that the cheaper options are in India and geographically other rich countries near that area can also provide cheap plans. However when I did some research I found that some common countries such as America and Australia can get quite expensive especially when converting currency. Also note when signing up to a provider their are usually two methods to pay. You can get a cap on so many sms's you can make and you pay a static monthly fee or you can pay per sms. There is however controversy of how you can setup your own sms server but this is not true because you still need to pay a provider to allow you to use the network just like you pay your isp for using the internet. So if you have the money you can setup your own sms server and sign up to a provider to provide access to the sms network but still it is not free.

Hope that helps
cwarn23

Mods:
This pops up alot.
Could a mod make this thread a sticky.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I know, it doesn't sound very logical, captain.

Indeed number one.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

because to separate the code/syntax from the string you are inputing you need to surround your text with a quote on each side. However with numbers, this is not the case since mysql knows how to detect numbers from the syntax. So whenever inputting strings, you must surround with quotes to ensure that mysql or even in any language like in php for assigning variables because when it comes to computers, computers aren't smart at recognizing code.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

There is the php library for sockets which is used to give the user the ability to communicate over the socket protocol just like how the curl library gives users the ability to communicate over the curl protocol. It is widely used as an alternative to curl because it works more efficiently due to not being so dependent of apache there by lowering cpu and memory consumption. But when using sockets they can be hard to handle and the protocol can be hard to setup so that's why I prefer curl.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

>> Time to start changing things!

Some approaches of doing that...
1. Adjust your actual standard of life upwards to actualize your desired standard of life. (this may involve actual hard work or may not be possible depending on the dream).
2. Adjust your standard downward (i.e. stoicism, sort of. Think of the most wretched existence imaginable and make yourself "OK" with that. Anything above that is gravy).
3. Optimisim. Requires no work and no adjustment. Just an unshakable belief that things WILL get better.
4. Self-delusion. Want to be LeBron James? But you're not and never will be? Just convince yourself that you are him.
5. Drugs / Alcohol. Depending on the drug, makes #4 easier. Dulls the pain if 1 through 4 won't work.
6. The Afterlife. Your life here is irretrievably screwed up, but a few more years and you'll be dead and live forever in ecstasy. I'll leave it to others to decide whether #6 is simply numbers 2, 3, and 4 rolled into one.


>> ...or if you're still in puberty: don't worry, you'll get over it and in a few years all your current problems will look silly and immature :icon_smile:

With much bigger, REAL problems to replace them.

I guess I bottle of bear after every line of code I program might make me happier because I think being drunk makes you happy and believe in almost anything. Better buy 500 bottles of bear for …

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I just worked out long is defined as 2147483647 which in a timestamp is 68 years since 1970. So does this mean I have to live for 68 years and succeed in doing so?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Prospered: You are happy and satisfied with your life.

With that definition I will never prosper. I'm never happy with my life. :(

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

My first wish would be for infinite wishes.
My second wish would be for all the knowledge has, does and will exist in the universe to be capable of being stored in my memory.
My third wish would be to store all of that knowledge into my brain.
My fourth wish (have infinite wishes now) would be to have an eidetic memory.
My fifth wish would be to be unable to die.
My sixth wish would be to be able to break the laws of physics.
My seventh wish would be to have world domination.
My eighth wish would be to have pow(10,1000000) dollars in cash handed to me and preferable put in a big shed with a cement bomb proof seal around it just next to my house.
My ninth wish would be to complete this list.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

This is the question that I'm curious about. How to determine if you have lived long and prospered. Does anybody have any ideas?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Replace line 117 with the following:

$sqlstr = "INSERT INTO static_page(judul, isi_berita)VALUES('".$judul."','".$news."')";
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Something along the lines of the following demonstrates what I was talking about.

<?php
if (isset($_POST) && !empty($_POST)) {
mysql_connect('localhost','root','');
mysql_select_db('mydb');

mysql_query('INSERT INTO `table` SET `allagram`="'.mysql_real_escape_string($_POST['a']).'", `word`="'.mysql_real_escape_string($_POST['word']).'"') or die(mysql_error());
}
?><form method="POST">
Word:  <input type="text" value="abcd" name="word" placeholder="abcd" /><br />
Allagram: <input type="text" name="a" value="acbd" placeholder="acbd" />
<input type="submit" value="Submit" />
</form>
if (isset($_POST) && !empty($_POST)) {
mysql_connect('localhost','root','');
mysql_select_db('mydb');
$r=mysql_query('SELECT * FROM `table` WHERE `allagram`="'.mysql_real_escape_string($_POST['a']).'"') or die(mysql_error());
$row=mysql_fetch_assoc($r);
echo $row['word'].'<br />';
}
?>
<form method="POST">
Allagram: <input type="text" name="a" value="" placeholder="acbd" />
<input type="submit" value="Submit"
</form>
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

It's obvious isn't it. Call it "My Company" just like how your documents are in the "My Documents" directory and pictures are in the "My Pictures" directory so it makes sense to name a company "My Company".

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

So you want an allagram/conjectural where php can get a word and mix up the letters and upon request get those mixed up letters and put them back into a meaningful word. Is that correct? If so why don't you just store each word to jumbled text as being generated by the user in a database so when the user checks the inserts the text all you need to do is look up on the database.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

During the years >1998, there was no popular version of Windows until after Windows 98. Windows 98 was the deal breaker when Windows ME came out.

[[[[
i don't get it ,that makes almost no sense to me

Well in other words society has changed since >1998 since before 1998 everybody had thing thing where they must have the latest otherwise it was useless junk. But Windows ME changed all of that.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Use the following:

<?php
$timestamp='1318245850';
if (mktime(0,0,0)<$timestamp) {
echo $timestamp.' is today.';
} else {
echo $timestamp.' is not today.';
}
cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Here is a more efficient version of your second script:

//the table....
<table border="1" align="center">
    <td>Helm</td>
    <td>Crew</td>
    <td>Boat</td>
    <td>Sail Number</td>
    <?php for ($b=0;$b<$i;$b++) { echo '<td>'.($b+1).'</td>'; } 
	//foreach($potentially as $k => $val) { echo "<td>".$k ."</td>"; }  ?>
    <td>rsn</td>
    <td>points</td>
  </tr>
  <?php while ($row_seriesresults1 = mysql_fetch_assoc($seriesresults1)) { ?>
    <tr>
            
      <td><?php echo $row_seriesresults1['helm']; ?>&nbsp; </td>
      <td><?php echo $row_seriesresults1['crew']; ?>&nbsp; </td>
      <td><?php echo $row_seriesresults1['boat']; ?>&nbsp; </td>
      <td><?php echo $row_seriesresults1['snumb']; ?>&nbsp; </td>
      <?php  for ($a=0;$a<$i;$a++) {echo '<td>'.($a+1).'</td>'; } ?>&nbsp;
      <td><?php echo $row_seriesresults1['rsn']; ?>&nbsp; </td>
      <td><?php echo $row_seriesresults1['points']; ?>&nbsp; </td>
    </tr>
    <?php  }  ?>
</table>

I also fixed a bug :)

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Sounds like in Realtek hd audio manager you need to adjust the volume control to turn off mute and increase the volume. Also a hidden volume button on the keyboard can also do it.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

You could always make a game where a user starts at door and the user has for options.
* Move up
* Move down
* Move left
* Move right
Upon selecting each option the user will move one tile across and will receive a message saying something like "You are now in a forest". Or "There is a gate that requires a key". And the user would have to go across the map to find a hidden object until the player gets to the finish line/tile. The memories.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

replace $_FILES with $_FILES in your code.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I have made a youtube clip just for this thread for what happens when you perform del *.* on drive C: and many other directories too in Windows 7. The link is below :)
http://www.youtube.com/watch?v=LW2z5YKhL2Q

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

IF you want to save a link to the file then you must first use this function.

Indeed and the usage of that function is explained at the below tutorial.
http://www.tizag.com/phpT/fileupload.php

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

Can somebody help me use the JPCT library to make an applet that loads a obj file to preview in the browser?

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

which version was popular before window 98?

During the years >1998, there was no popular version of Windows until after Windows 98. Windows 98 was the deal breaker when Windows ME came out. The deal being why there was no popular version is that the concept of having a desktop computer was new and due to the concept being new, everybody upgraded as the newer versions came out. It was only when people became smarter that less people updated less often but that only happened around about the time of Windows 2000 release.

cwarn23 387 Occupation: Genius Team Colleague Featured Poster

I believe this thread belongs in the javascript/dhtml section but if you were to ask me how to solve it one thing I would mention is not to use jquery because it is not designed of the best of quality since the best of quality can only be produced from a custom script to suit your needs than one script to suit everybody's needs.