|
Thanks I will check the bracket, meantime.. I appreciate if you tell me what do you mean by (programming style) so that I can have it done in a better way.
Thanks
Technology News @ www.JassimRahma.com
|
|
|
|
|
Thank you Chris.
My problems is solved after adding the brackets.
Thank you once again..
Technology News @ www.JassimRahma.com
|
|
|
|
|
who is crish?
I do not fear of failure. I fear of giving up out of frustration.
|
|
|
|
|
i want script that manage my time work assign tasks etc....
|
|
|
|
|
What do you mean by 'script' in this context? There are plenty of products around for time and calendar management, that Google will find for you.
Veni, vidi, abiit domum
|
|
|
|
|
|
TheSniper105 wrote: script == web app While a web app may well contain some script (Javascript, PHP), there is more to it than that. And asking what is the best, is the same as asking what is the best anything. It depends on what you are looking for, what your experience is, etc.
Veni, vidi, abiit domum
|
|
|
|
|
I am New in PHP, and getting following error message in my app, please help me to solve this.
fatal error call to undefined function mysql_connect()
|
|
|
|
|
You have to define athe function called mysql_connect before you can use it. Either add the code yourself, or find a library that already includes it.
Veni, vidi, abiit domum
|
|
|
|
|
Hi,
I have the following code:
$mysql_query = $mysql_connection->prepare("CALL sp_get_company_details(:param_company_guid)");
$mysql_query->bindParam(':param_company_guid', $_GET["id"], PDO::PARAM_STR);
$mysql_query->execute();
$mysql_row_count = $mysql_query->rowCount();
if ($mysql_row_count <= 0) { exit(header("Location: " . $_SESSION["domain_name"] . "home")); }
while ($mysql_row = $mysql_query->fetch())
{
$company_guid = $mysql_row["company_guid"];
$company_name = $mysql_row["company_name"];
$company_industry = $mysql_row["industry_name"];
$company_country = $mysql_row["country_name"];
$company_telephone = $mysql_row["company_telephone"];
$company_fax = $mysql_row["company_fax"];
$company_website = $mysql_row["company_website"];
$company_email = $mysql_row["company_email"];
$about_company = $mysql_row["about_company"];
$hide_email = $mysql_row["hide_email"];
}
$mysql_query->closeCursor();
if (isset($_SESSION["member_guid"]))
{
$mysql_query = $mysql_connection->prepare("CALL sp_check_if_company_admin(:param_company_guid, :param_member_guid)");
$mysql_query->bindParam(':param_company_guid', $company_guid, PDO::PARAM_STR);
$mysql_query->bindParam(':param_member_guid', $_SESSION["mmeber_guid"], PDO::PARAM_STR);
$mysql_query->execute();
while ($mysql_row = $mysql_query->fetch())
{
$is_company_admin = $mysql_row["company_admin_id"];
}
}
var_dump($company_guid);
var_dump($_SESSION["member_guid"]);
var_dump($is_company_admin);
the result for the three var_dump is:
string(36) "30383394-53bf-11e3-aef0-74de2b9a31a4" string(36) "22e52867-495d-11e3-95af-74de2b9a31a4" NULL
my question, why I am getting NULL? when I run the sp_check_if_company_admin on the database server using the same param's value I get a single record with company_admin_id = 13 so it's not NULL.!
Please Help...
Technology News @ www.JassimRahma.com
|
|
|
|
|
There's a typo in the last bind:
$mysql_query->bindParam(':param_member_guid', $_SESSION["mmeber_guid"], PDO::PARAM_STR);
"mmeber_guid" should be "member_guid"
|
|
|
|
|
oh my god! I spent whole night trying to find out where is the issue!
Thank you so mucn
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Hi friends i hope all is well
i need some help from all of you
i have an project sale managment system in php that works with wamp server 2.0 and run on local computer
security is that it just works on single pc when ever i try to run it on any other pc
when i login on other pc with same user name and password
it open a fake page instead of original Main manu page which contains all manues and header footers
i just want to run it on all computers but it work with single pc
index page raffer to D:\soft2\www\admin\config\connection.php
which have these codes
<?php
eval(base64_decode(
?>
please please reply me
|
|
|
|
|
This code block decodes to:
$codelock_code = "JGNvbm4gPSBteXNxbF9jb25uZWN0KCJsb2NhbGhvc3QiLCAicm9vdCIsICJ0YWhpcmEiKTsNCm15c3FsX3NlbGVjdF9kYigiamFsY!kZXIiLCRjb25uKTsNCg==";
$codelock_code = str_replace("@","CAg", $codelock_code);
$codelock_code = str_replace("!", "W5", $codelock_code);
$codelock_code = str_replace("*", "CAgI", $codelock_code);
$codelock_code = base64_decode($codelock_code);
eval($codelock_code);
This second block decodes to:
$conn = mysql_connect("localhost", "root", "tahira");
mysql_select_db("jalander", $conn);
So it looks like the other PC you're trying to run it on either doesn't have a local MySQL instance, has a different root password, or doesn't have a database called "jalander".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am trying to update the PHP on my web server. On my backup server I updated from 5.2 to 5.4 and the result is kind of bizarre.
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
<!--#include virtual="_assets/header.shtml" -->
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
<!--#include virtual="_assets/marquis.shtml" -->
The includes above worked correctly prior to the update. This is what I see when viewing the page source in my browser:
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
<div class="header">
<!-- More HTML code -->
</div><!-- end .header -->
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
<div id="marquis">
<!-- coming soon -->
</div>
After the update I see this:
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
<!-- Include command uses command "virtual" to specify file relatively. Do not use "file" command -->
The bizarre part is that the includes get injected seemingly at random further down the page and in the middle of source that is generated by PHP code. Is there a DOCTYPE or PHP configuration setting that needs to be changed?
Thanx,
>>>-----> Mike
|
|
|
|
|
I had not really given much thought to the server-side includes. They have always worked.
I did some research though and found that SSI is essentially a separate interpreter. The order of whether SSI is included inside PHP or vise-versa matters (apparently depending on your version of PHP).
I also found that comment begin and end tags are more strict after I made my updates.
<!--div>
some stuff
</div><!--end div-->
While I know it is bad form, commenting out a "div" as shown above worked prior to the PHP update. After the update, the text "
|
|
|
|
|
I have a class like this :
class Packet {
private $headerSize;
private $signature;
private $version;
private $highSessionID;
private $lowSessionID;
private $commandID;
private $dataSize;
}
i want to write reliable udp protocol ,
i want to know how can i split an instance of my packet class into chunks and send them with socket_sendto function
|
|
|
|
|
kleymanx90 wrote: i want to write reliable udp protocol , Then you will need to include a lot of error checking. Why not use TCP which is reliable? When sending the data, you can send it in one chunk with field separators between each section, or as individual chunks. In either case you should add a header which identifies the field type and gives its length, and possibly a trailer containing a CRC check digit. In that way the receiving code should be able to unpack it correctly.
Veni, vidi, abiit domum
|
|
|
|
|
Because UDP is faster than TCP . I have an UDPPacket class too.My UDPPacket includes my packet class and UDP header .
I want to send chunks of video for streaming and maybe some XML files .
I found pack function and I packed all fields but I want to know is there anyway to pack an object and then split into chunks ?
|
|
|
|
|
Packing and splitting is exactly the same whatever the data, you just need some metadata with each chunk so the receiver can recreate the original object. I take it you also understand that UDP does not guarantee delivery of any message, nor does it guarantee the order in which messages may be transferred.
Veni, vidi, abiit domum
|
|
|
|
|
kleymanx90 wrote: Because UDP is faster than TCP
It's faster because it doesn't include the overhead of making sure transfers get to where they're going. If you try to make UDP reliable, you're trying to make UDP act like TCP, which will inevitably make it slower.
|
|
|
|
|
kleymanx90 wrote: reliable udp protocol ,
Those two don't go hand in hand. UDP was designed to be fast, not reliable. Reliability requires error checking and handling, in another words, you'll end up making UDP something it's not. If you need reliability, use TCP, that already has all of the error checking and re-transmissions built into the protocol.
|
|
|
|
|
Hello!
I am developping a website.i want to display images that are sliding unfortunately i failed to achieve that.
need a your help so that i can get php codes to display those images.
question 2: how to create admin page in MYSQL??
|
|
|
|
|
To display sliding images on your browser, you have to code it using client-side script like JavaScript or JQuery. PHP is server-side script that performs application logics, not for this purpose. You can learn from this site: http://www.w3schools.com/jquery/jquery_slide.asp
I do not understand your second question.
|
|
|
|