|
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.
|
|
|
|
|
HY!
i have an issue in php session. the issue is that the session work fine in index page but the username can't show in other pages.
lohin.php code
<?php session_start();
include './header.php';
include 'connection.php';
if(isset($_POST) && count($_POST)>0) {
$user = $_POST['username'];
$pass = $_POST['password'];
$sSQL = "SELECT * FROM ulog WHERE User_Name ='".$user."' AND Password = '".$pass."'";
$result = mysql_query($sSQL) or die(mysql_error());
$row=mysql_num_rows($result);
if($row==1)
{
$_SESSION['username'] = $_POST['username'];
header('Location:index.php');
}
}
else
{
header("location:login.html");
}
?>
index.php code
<?php session_start();
include './header.php';
if (!isset($_SESSION['username']))
{
header('Location:login.html');
}
?>
<div id="welcome">
<h4> Welcome <?php echo $_SESSION['username']; ?> <a href="logout.php">Logout</h4></a></p>
</div>
<div id="content">
<p>Learn to Design and Develop Website.<br />
Learn Programing From Tutorial's teaches you the fundamentals of web development and not just programming. You will learn how to create amazing websites through programming and design tutorials. The web development tutorials on your left are designed for you to move through them in order to have an overall understanding of web design and development.</p>
</div>
<?php include './footer.php'; ?>
the code i use in other pages which is not working is..
<?php session_start();
include 'login.php';
if (!isset($_SESSION['username']))
{
header('Location:login.html');
}
?>
the above code is used in other pages but it is not working..
what type of code i need to access username in all pages..
|
|
|
|
|
I think you should not include "login.php" in the other pages.
<?php session_start();
include 'login.php';
if (!isset($_SESSION['username']))
{
header('Location:login.html');
}
?>
ringunger
|
|
|
|
|
I have developed an online Movies website. I also developed my own media player in separate page so i want to know how can i play different movies using this single media player or how can i link different movies with this single media player.
Waiting for your suggestions.
|
|
|
|
|
I need to create a search for (wordpress site)form having 2 input fields. 1. A dropdown field, consisting all categories. and 2. a basic text input which would search the whole site.
I was using a plugin (advance-wp-query-search-filter.1.0.10) but it is not working. When i select a category, the meta title and the meta description is getting generated but no posts is getting displayed.
I was trying to get all the categories and combine with the single input text search button. code for getting all the categories into a dropdown menu:
<li id="categories">
<h2></h2>
<form action="<?php bloginfo('url'); ?>" method="get">
<div>
=1&hierarchical=1&taxonomy=coupon_category
<input type="submit" name="s" value="view" />
</div>
</form>
</li>
what i want is, there should be 2 inputs (dropdown & text input) and a common search button which would submit both or any one input which is provided by the user.
My single input text search button is working fine. How can i combine multiple input fields ?
<form role="search" method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>">
<div>
<label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
=1&hierarchical=1&taxonomy=coupon_category
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
The above code, displays a search box with 2 inputs, which are dependent on each other. I want it to work independently having a common submit button. if i input a category and search, the search results should be according to the category, and if i search only a normal text input, the result should be according to the input text. and if i input both the fields, i want the search result to get populated with respect to the input text box.
|
|
|
|