473,498 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is this php code doing?

93 New Member
Hello can somebody explain the code to me thx in advance!!
[PHP]
<?php
$temp="";

$sqlconnect=mysql_connect("localhost","hyperian_tr ack","__munged__");
if(!$sqlconnect)
die(mysql_error());
mysql_select_db("hyperian_track", $sqlconnect);


if($_GET['postal']))

$postalcode=substr($_GET['postal'],0,2); //will return from 0 position 2 characters

$resultpostal=mysql_query("SELECT startlat,endlat,startlng,endlng FROM districts
WHERE districtno = $postalcode"); //get startlat,endlat,startlng,endlng of location

while($row = mysql_fetch_array($resultpostal))
{
$temp[]=$row; // store each record in an array
}



$resultname=mysql_query("SELECT uname FROM location,districts
WHERE location.lat < districts.startlat AND location.lat > districts.endlat AND location.lng < districts.startlng
AND location.lng > districts.endlng");

while($row = mysql_fetch_array($resultname))
{
$temp[]=$row;
}



foreach($temp as $key=>$extract)
$reportname=$reportname.$key."=".$extract."&";

echo '&reportname&';
}//end of if loops



mysql_close($con);



[/PHP]
Jul 26 '07 #1
33 2188
pbmods
5,821 Recognized Expert Expert
Heya, Rocky.

This is some pretty basic code, and I know that parts of it have been explained to you before.

Is there a *specific* part of the code that you don't understand that we can help you with?
Jul 26 '07 #2
Rocky86
93 New Member
Heya, Rocky.

This is some pretty basic code, and I know that parts of it have been explained to you before.

Is there a *specific* part of the code that you don't understand that we can help you with?
I need help especially on the section of code here
[PHP]
$resultpostal=mysql_query("SELECT startlat,endlat,startlng,endlng FROM districts
WHERE districtno = $postalcode"); //get startlat,endlat,startlng,endlng of location

while($row = mysql_fetch_array($resultpostal))
{
$temp[]=$row; // store each record in an array
}



$resultname=mysql_query("SELECT uname FROM location,districts
WHERE location.lat < districts.startlat AND location.lat > districts.endlat AND location.lng < districts.startlng
AND location.lng > districts.endlng");

while($row = mysql_fetch_array($resultname))
{
$temp[]=$row;
}



foreach($temp as $key=>$extract)
$report=$report.$key."=".$extract."&";


echo '&$report&';
[/PHP]
this section of the code I want to know if the $resultpostal value is passing down to the $resultname because I wanted to compare the location.lat against the districts.startlat of the $resultpostal
Jul 26 '07 #3
Rocky86
93 New Member
Anybody pls help me thx alot
Jul 26 '07 #4
pbmods
5,821 Recognized Expert Expert
Heya, Rocky.

Actually, that code probably doesn't do what you want it to do.
(pulled out and organized for simplicity)
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `uname`
  3.     FROM
  4.         `location`,
  5.         `districts`
  6.     WHERE
  7.             `location`.`lat` < `districts`.`startlat`
  8.         AND
  9.             `location`.`lat` > `districts`.`endlat`
  10.         AND
  11.             `location`.`lng` < `districts`.`startlng`
  12.         AND
  13.             `location`.`lng` > `districts`.`endlng`
This will return a (seemingly) random set of locations, since there is no absolute limiter; you are fetching `uname`s for every location that falls inside ANY district, and there are presumably a lot of those!

Instead, you want something like this:
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `locations`.`uname`
  3.     FROM
  4.     (
  5.         `locations`,
  6.         `districts`
  7.     )
  8.     WHERE
  9.     (
  10.             `districts`.`districtno` = '{$postalcode}'
  11.         AND
  12.         (
  13.             `locations`.`lat`
  14.                 BETWEEN
  15.                         `districts`.`startlat`
  16.                     AND
  17.                         `districts`.`endlat`
  18.         )
  19.         AND
  20.         (
  21.             `locations`.`lng`
  22.                 BETWEEN
  23.                         `districts`.`startlng`
  24.                     AND
  25.                         `districts`.`endlng`
  26.         )
  27.     )
  28.  
This will pick out the uname of any location that is in the set of coordinates determined by picking out the district whose `districtno` is $postalcode.
Jul 26 '07 #5
Rocky86
93 New Member
Heya, Rocky.

Actually, that code probably doesn't do what you want it to do.
(pulled out and organized for simplicity)
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `uname`
  3.     FROM
  4.         `location`,
  5.         `districts`
  6.     WHERE
  7.             `location`.`lat` < `districts`.`startlat`
  8.         AND
  9.             `location`.`lat` > `districts`.`endlat`
  10.         AND
  11.             `location`.`lng` < `districts`.`startlng`
  12.         AND
  13.             `location`.`lng` > `districts`.`endlng`
This will return a (seemingly) random set of locations, since there is no absolute limiter; you are fetching `uname`s for every location that falls inside ANY district, and there are presumably a lot of those!

Instead, you want something like this:
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `locations`.`uname`
  3.     FROM
  4.     (
  5.         `locations`,
  6.         `districts`
  7.     )
  8.     WHERE
  9.     (
  10.             `districts`.`districtno` = '{$postalcode}'
  11.         AND
  12.         (
  13.             `locations`.`lat`
  14.                 BETWEEN
  15.                         `districts`.`startlat`
  16.                     AND
  17.                         `districts`.`endlat`
  18.         )
  19.         AND
  20.         (
  21.             `locations`.`lng`
  22.                 BETWEEN
  23.                         `districts`.`startlng`
  24.                     AND
  25.                         `districts`.`endlng`
  26.         )
  27.     )
  28.  
This will pick out the uname of any location that is in the set of coordinates determined by picking out the district whose `districtno` is $postalcode.
Hiya how do I implentment all this sql into my php coding? will be glad if you can modify my exisiting code for me thx alot!!
Jul 27 '07 #6
pbmods
5,821 Recognized Expert Expert
I will post back in a little bit.
Jul 27 '07 #7
pbmods
5,821 Recognized Expert Expert
Heya, Rocky.

Hiya how do I implentment all this sql into my php coding? will be glad if you can modify my exisiting code for me thx alot!!
Ok. So we have this SQL code:
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `locations`.`uname`
  3.     FROM
  4.     (
  5.         `locations`,
  6.         `districts`
  7.     )
  8.     WHERE
  9.     (
  10.             `districts`.`districtno` = '{$postalcode}'
  11.         AND
  12.         (
  13.             `locations`.`lat`
  14.                 BETWEEN
  15.                         `districts`.`startlat`
  16.                     AND
  17.                         `districts`.`endlat`
  18.         )
  19.         AND
  20.         (
  21.             `locations`.`lng`
  22.                 BETWEEN
  23.                         `districts`.`startlng`
  24.                     AND
  25.                         `districts`.`endlng`
  26.         )
  27.     )
  28.  
To convert it to PHP, we simply replace line 24 of the code in your OP:
Expand|Select|Wrap|Line Numbers
  1. $resultname = mysql_query("
  2. SELECT
  3.         `locations`.`uname`
  4.     FROM
  5.     (
  6.         `locations`,
  7.         `districts`
  8.     )
  9.     WHERE
  10.     (
  11.             `districts`.`districtno` = '{$postalcode}'
  12.         AND
  13.         (
  14.             `locations`.`lat`
  15.                 BETWEEN
  16.                         `districts`.`startlat`
  17.                     AND
  18.                         `districts`.`endlat`
  19.         )
  20.         AND
  21.         (
  22.             `locations`.`lng`
  23.                 BETWEEN
  24.                         `districts`.`startlng`
  25.                     AND
  26.                         `districts`.`endlng`
  27.         )
  28.     )");
  29.  
Note that you can get rid of lines 14-23 of the code in your original post, as they do absolutely nothing.
Jul 27 '07 #8
Rocky86
93 New Member
Heya, Rocky.



Ok. So we have this SQL code:
Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         `locations`.`uname`
  3.     FROM
  4.     (
  5.         `locations`,
  6.         `districts`
  7.     )
  8.     WHERE
  9.     (
  10.             `districts`.`districtno` = '{$postalcode}'
  11.         AND
  12.         (
  13.             `locations`.`lat`
  14.                 BETWEEN
  15.                         `districts`.`startlat`
  16.                     AND
  17.                         `districts`.`endlat`
  18.         )
  19.         AND
  20.         (
  21.             `locations`.`lng`
  22.                 BETWEEN
  23.                         `districts`.`startlng`
  24.                     AND
  25.                         `districts`.`endlng`
  26.         )
  27.     )
  28.  
To convert it to PHP, we simply replace line 24 of the code in your OP:
Expand|Select|Wrap|Line Numbers
  1. $resultname = mysql_query("
  2. SELECT
  3.         `locations`.`uname`
  4.     FROM
  5.     (
  6.         `locations`,
  7.         `districts`
  8.     )
  9.     WHERE
  10.     (
  11.             `districts`.`districtno` = '{$postalcode}'
  12.         AND
  13.         (
  14.             `locations`.`lat`
  15.                 BETWEEN
  16.                         `districts`.`startlat`
  17.                     AND
  18.                         `districts`.`endlat`
  19.         )
  20.         AND
  21.         (
  22.             `locations`.`lng`
  23.                 BETWEEN
  24.                         `districts`.`startlng`
  25.                     AND
  26.                         `districts`.`endlng`
  27.         )
  28.     )");
  29.  
Note that you can get rid of lines 14-23 of the code in your original post, as they do absolutely nothing.
Hiya I basically try the run query on SQL to see if the BETWEEN statement would work before implentment the code in php but I don't since to get any return result from the SQL statement so does it matter? or SQL cannot perform the BETWEEN function ?
Jul 29 '07 #9
kovik
1,044 Recognized Expert Top Contributor
Well the use of the values you are getting results between would be unclear to SQL because you create no relationship between the two tables, thus rendering the join invalid.

I understand that the SQL wasn't written by you, but take the responsibility to establish the relationship in the query yourself, as pbmods may have been unaware of what the relationship between the two actually was, and was leaving it up to you to specify.
Jul 29 '07 #10
Rocky86
93 New Member
Well the use of the values you are getting results between would be unclear to SQL because you create no relationship between the two tables, thus rendering the join invalid.

I understand that the SQL wasn't written by you, but take the responsibility to establish the relationship in the query yourself, as pbmods may have been unaware of what the relationship between the two actually was, and was leaving it up to you to specify.
So how do I create relationship between the two table? through forign key? if have relation does it mean the BETWEEN would now be valid?
Jul 30 '07 #11
Rocky86
93 New Member
ok I need to noe about something import about PHP currently this is my code right now
[PHP]
<?php
$temp="";




$sqlconnect=mysql_connect("localhost","hyperian_tr ack","gsmtrack");
if(!$sqlconnect)
die(mysql_error());
mysql_select_db("hyperian_track", $sqlconnect);


if($_GET['postal']))

$postalcode=substr($_GET['postal'],0,2); //will return from 0 position 2 characters

$resultpostal=mysql_query("SELECT startlat,endlat,startlng,endlng FROM districts
WHERE districtno = $postalcode"); //get startlat,endlat,startlng,endlng of location

if($row = mysql_fetch_array($resultpostal))
{
$postalno=$row; // store each record in an array
}





$resultname=mysql_query("SELECT uname FROM location,$postalno
WHERE location.lat < $postalno.startlat AND location.lat > $postalno.endlat AND location.lng < $postalno.startlng
AND location.lng > $postalno.endlng");

if($row = mysql_fetch_array($resultname))
{
$temp[]=$row;
}



foreach($temp as $key=>$extract)
$reportname=$reportname.$key."=".$extract."&";


echo '&reportname&';
}//end of if loops



mysql_close($con);


[/PHP]

right now I need to compare the value of the top SQL statement against the second SQL statement which mean that the location.lat and location.lng is to be compare against the value inside the variable $postalno but the question is can php allow me to just compare it by using this sql statement? $resultname=mysql_query("SELECT uname FROM location,$postalno
WHERE location.lat < $postalno.startlat AND location.lat > $postalno.endlat AND location.lng < $postalno..startlng
AND location.lng > $postalno.endlng");
I just create a variable to store in all the value inside $postalno and I do a comparing by in the next statement so is this possible?
Jul 30 '07 #12
kovik
1,044 Recognized Expert Top Contributor
So how do I create relationship between the two table? through forign key? if have relation does it mean the BETWEEN would now be valid?
A relationship is a key that determines which values correspond to the rows of each table. The relationship must be specified in the WHERE clause.
Jul 30 '07 #13
Rocky86
93 New Member
A relationship is a key that determines which values correspond to the rows of each table. The relationship must be specified in the WHERE clause.
mind to show me an example thx
Jul 30 '07 #14
kovik
1,044 Recognized Expert Top Contributor
mind to show me an example thx
First, describe the relationship between your tables.
Jul 30 '07 #15
Rocky86
93 New Member
First, describe the relationship between your tables.
right now my table does not use any forigen key they have no common colume name but I want to compare the value from the 2 different table
Jul 30 '07 #16
kovik
1,044 Recognized Expert Top Contributor
right now my table does not use any forigen key they have no common colume name but I want to compare the value from the 2 different table
There is no need for a foreign key. You need to think about WHAT you are trying to do and EXACTLY what values you want to look between, and tell me. If you don't know what you want to do, I can't help you.
Jul 30 '07 #17
Rocky86
93 New Member
There is no need for a foreign key. You need to think about WHAT you are trying to do and EXACTLY what values you want to look between, and tell me. If you don't know what you want to do, I can't help you.
Ok currently I have 2 table
District Table



Location Table



As you can see from here I want to do a PHP coding that would allow me to get the startlat,endlat,startlng,endlng FROM districts table
WHERE districtno is = to the postalcode enter by the user store inside a variable

After that I want to get the username of the person from location table where the location latitude and location longtitude is BETWEEN the value of the startlat and endlat and startlng and endlng if it is between then get the username

Basically the top part must be able to pass the value to the second part to do the comparing that what I wants.
Jul 30 '07 #18
kovik
1,044 Recognized Expert Top Contributor
So, the relationship between the two tables is that location.lat must be between district.startlat and disctrict.endlat and location.lng must be between district.startlng and district.endlng.

Looking back over this thread neither you nor pbmods really understand how this would be done (no offense, pbmods). Your original code was on the right track and if you did it correctly, it'd be the easy way. Too bad for you, I'm not a fan of the "easy way." ;)

What you need to do is JOIN the tables where they are related. You JOIN tables by specifying the way that they will be JOINed, and then specify how they will be joined. When tables are joined, it means that all of their rows are linked together according to a condition.

The way you join tables is like this:

Expand|Select|Wrap|Line Numbers
  1. SELECT [data] FROM [table1] LEFT JOIN ([table2]) ON ([a relationship between table1 and table2]);
So, in order to this, we need to get the data (the username) from the first table (location) and join the second table (district) on the relationship condition we have specified.

Expand|Select|Wrap|Line Numbers
  1. SELECT `location`.`uname` FROM `location` LEFT JOIN (`district`) ON (`location`.`lat` BETWEEN `district`.`startlat` AND `district`.`endlat` AND `location`.`lng` BETWEEN `district`.`startlng` AND `district`.`endlng`) WHERE `district`.`districtno` = foo;
Take a look at it and make sure you UNDERSTAND it before you use it. Table joining essentially creates an entirely new table. This join would take each row from the location table and join a row from the district table onto it whereever the ON() condition is met. Then, it takes every row from that new table where districtno is equal to a value.

And FYI, you don't need to specify any table names in this query because none of your tables have the same column names. If they did though, you'd have to specify. I've done it so that it's easy for you to comprehend.
Jul 30 '07 #19
pbmods
5,821 Recognized Expert Expert
Heya, Volectricity.

My query does the same thing as yours, but mine uses a cross join instead of a left join.

Tomato, Tomahto.
Jul 30 '07 #20
kovik
1,044 Recognized Expert Top Contributor
Heya, Volectricity.

My query does the same thing as yours, but mine uses a cross join instead of a left join.

Tomato, Tomahto.
Yeah, at second look, I see the join. My apologies. I had only skimmed the thread.
Also at second look, I see Rocky was just... Halfway clueless as to how to implement the code. No idea how he came up with that query. :-p

Maybe he thought that '.' and '->' were one in the same.
Jul 30 '07 #21
Rocky86
93 New Member
Yeah, at second look, I see the join. My apologies. I had only skimmed the thread.
Also at second look, I see Rocky was just... Halfway clueless as to how to implement the code. No idea how he came up with that query. :-p

Maybe he thought that '.' and '->' were one in the same.
Hi so my final coding is it correct plss help me check, point out to me if any mistake thx
[PHP]
<?php
$temp="";




$sqlconnect=mysql_connect("localhost","hyperian_tr ack","gsmtrack");
if(!$sqlconnect)
die(mysql_error());
mysql_select_db("hyperian_track", $sqlconnect);


if($_GET['postal']))

$postalcode=substr($_GET['postal'],0,2); //will return from 0 position 2 characters

$resultpostal=mysql_query("SELECT `location`.`uname` FROM `location` LEFT JOIN (`districts`) ON (`location`.`lat` BETWEEN `districts`.`startlat` AND `districts`.`endlat` AND `location`.`lng` BETWEEN `districts`.`startlng` AND `districts`.`endlng`)
WHERE `districts`.`districtno` = '$postalcode'");

if($row = mysql_fetch_array($resultpostal))
{
$temp[]=$row; // store each record in an array
}



foreach($temp as $key=>$extract)
$reportname=$reportname.$key."=".$extract."&";
echo '&reportname&';
}//end of if loops



mysql_close($con);

[/PHP]
Jul 31 '07 #22
Rocky86
93 New Member
Basciallay I try to test if the Between statement can be use on the SQL but I don't think it works so does it mean I cannot see Between anymore to compare the value this is what I get:


Table






This statement should return me all the value between the department and contact which is the data in designation but instead is show me an error

Error



So does it mean I cannot make use of the Between or there is something wrong with my SQL statement?
Jul 31 '07 #23
Rocky86
93 New Member
anyone? plsss help thx alot!
Jul 31 '07 #24
gregerly
192 Recognized Expert New Member
Im only skimming here also, but it seems your using BETWEEN improperly. Here is a link you should check out which may clear things up (maybe). You could probably find the answers your looking for with a quick google search.

Here is a little tutorial on the BETWEEN operator:

MySQL Between

Hope that helps.

Greg
Jul 31 '07 #25
Rocky86
93 New Member
ok I get it that mean the BETWEEN cannot be use when selecting 2 table right?
Jul 31 '07 #26
kovik
1,044 Recognized Expert Top Contributor
ok I get it that mean the BETWEEN cannot be use when selecting 2 table right?
No. The syntax for BETWEEN is "someValue BETWEEN minValue AND maxValue."

What the hell do you think your code is doing? You cannot simply echo an object or an array. Ever stop to think that maybe YOU are the one doing everything wrong?

What does mysql_fetch_array() return? Oh! That's right! An array.
What is $temp? An array of arrays? Okay.
And in your foreach loop, what does that make each $extract? Each $extract is an array? Really?

Stop being so helpless and start learning the language and using some logic, or I will abandon this thread quickly.
Jul 31 '07 #27
Rocky86
93 New Member
So sorry I noe I being stupid and dumbass I will think about it seriously and come out with the code hope you can still help me with it thx!
Jul 31 '07 #28
kovik
1,044 Recognized Expert Top Contributor
I don't really enjoy being helpless if I undertstand I would not ask so much in the forum alreadx is just that I am such a hurry cause my deadline for this project is in 2 week time all I want to know is which part I did wrongly that all if you think I am being stupid and helpless is fine thx for yr help
If you still have the problem, then you are still being helpless. I just gave you the answer to your problem in my last post.
Jul 31 '07 #29
Rocky86
93 New Member
If you still have the problem, then you are still being helpless. I just gave you the answer to your problem in my last post.
Hey volectricity I been thinking of what you mention but I come out the this set of coding I just hope you can give me some guide. I know they sure is gona be mistake again but would you mind correct it for me so I can have betetr understanding of it thx alot!!

[PHP]
<?php
$temp="";




$sqlconnect=mysql_connect("localhost","hyperian_tr ack","gsmtrack");
if(!$sqlconnect)
die(mysql_error());
mysql_select_db("hyperian_track", $sqlconnect);


if($_GET['postal']))

$postalcode=substr($_GET['postal'],0,2); //will return from 0 position 2 characters

$resultpostal=mysql_query("SELECT location.uname FROM location,districts WHERE districts.districtno = '".$postalcode."' AND
location.lat BETWEEN districts.startlat AND districts.endlat AND location.lng BETWEEN districts.startlng AND districts.endlng");

if($row = mysql_fetch_array($resultpostal))
{
$temp[]=$row; // store each record in an array
}



foreach($temp as $result)
$result=$reportname; //store the array into a new variable
echo '&$reportname&'; //pass the value to actionscripts
}//end of if loops



mysql_close($con);


[/PHP]
Jul 31 '07 #30
pbmods
5,821 Recognized Expert Expert
Heya, Rocky.

Your MySQL query is looking a lot better. Now let's work on the next step.

Expand|Select|Wrap|Line Numbers
  1.  foreach($temp as $result)
  2.         $result=$reportname;    //store the array into a new variable
  3.         echo '&$reportname&'; //pass the value to actionscripts
  4.  
Not only does this section not do what you want it to do, but it in fact doesn't even do anything! The PHP '=' operator assigns the value on the *right* to the variable on the 'left'. So in the code above, you are setting *$result* to the value of *$reportname*, which is opposite of what it looks like you intended.

And at any rate, you don't even need the additional variable, since all you're doing is echoing the value.

And fortunately, there's already a PHP function that does exactly what you need.

I'll give you a second. Ok. Now, where do we go from here?

You'll need to change your code a little bit (use 'while' instead of 'if'):
Expand|Select|Wrap|Line Numbers
  1. $temp = array();
  2. $i = 0;
  3. while($row = mysql_fetch_array($resultpostal))
  4.         {
  5.             echo http_build_query($row, ++$i) . '&';
  6.         }
  7.  
What does this do? Well, the first thing is we set up a temporary array and a counter.

Next, while there is a row left to fetch in the MySQL result set, we fetch it, and then we output a query string, using the incremented value of $i as a suffix (e.g., 'uname_1', 'uname_2', etc.).
Jul 31 '07 #31
Rocky86
93 New Member
Heya, Rocky.

Your MySQL query is looking a lot better. Now let's work on the next step.



Not only does this section not do what you want it to do, but it in fact doesn't even do anything! The PHP '=' operator assigns the value on the *right* to the variable on the 'left'. So in the code above, you are setting *$result* to the value of *$reportname*, which is opposite of what it looks like you intended.

And at any rate, you don't even need the additional variable, since all you're doing is echoing the value.

And fortunately, there's already a PHP function that does exactly what you need.

I'll give you a second. Ok. Now, where do we go from here?

You'll need to change your code a little bit (use 'while' instead of 'if'):
Expand|Select|Wrap|Line Numbers
  1. $temp = array();
  2. $i = 0;
  3. while($row = mysql_fetch_array($resultpostal))
  4.         {
  5.             echo http_build_query($row, ++$i) . '&';
  6.         }
  7.  
What does this do? Well, the first thing is we set up a temporary array and a counter.

Next, while there is a row left to fetch in the MySQL result set, we fetch it, and then we output a query string, using the incremented value of $i as a suffix (e.g., 'uname_1', 'uname_2', etc.).
hi thx for replying I understand what u mention except this part here I still don't get it "we output a query string, using the incremented value of $i as a suffix (e.g., 'uname_1', 'uname_2', etc.)" and echo http_build_query($row, ++$i) . '&';basically the end result should be pass to actionscript to do the output
Jul 31 '07 #32
Rocky86
93 New Member
heya I manage to solve the SQL issue thx alot for helping me up!
Aug 1 '07 #33
pbmods
5,821 Recognized Expert Expert
Heya, Rocky.

Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Aug 1 '07 #34

Sign in to post your reply or Sign up for a free account.

Similar topics

220
18799
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
92
6327
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
125
14535
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
4
330
by: Charlie | last post by:
Hello, As only doing research in academic (working on IR), I have no idea of what is going on in industry, and what is in demand. Answering any of the following questions would be very helpful!!...
121
9898
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
46
4152
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
13
4996
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
12
17351
by: Nathan Sokalski | last post by:
What is the difference between the Page_Init and Page_Load events? When I was debugging my code, they both seemed to get triggered on every postback. I am assuming that there is some difference,...
8
2053
by: watkinsdev | last post by:
Hi, I have created a mesh class in visual studio 6.0 c++. I can create a device, render objects and can edit the objects by for instancnce selecting a cluster of vertices and processing the...
10
1695
by: timor.super | last post by:
Hi all, Imagine I've an array of int : int anArray = new int; I want to extract all the integer that are superior to 500 I can do :
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.