17,029 Solved Topics
Remove Filter ![]() | |
hello, I am stuck with the simple task. I want to run php script every 5 minutes (now trying to run every mionute for testing) I read that I have to run crontab -e and put commands. Somehow the file is having no commnds added, but as far as I … Web Development php php-codeigniter | |
I want to store these submitted values. Can it be possible without database? using just array. I don't want to store values for a session. Just for long time unless deleted. <form id="form1" name="form1" method="post" action=""> <form id="form1" name="form1" method="post" action=""> <p> <label for="num1">Some text</label> <input type="text" name="num1" id="num1" /> … | |
Hello. I have two tables, the itinerary table and location table. The itinerary table consists of all the itinerary: * A - B * B - A * B - C * C - B * C - A * A - C The user will select from the itinerary … | |
I have two forms on a page. Each calls some javascript code. One goes to paypal and one that goes to a send mail routine. How can I distinguish between the two so they don’t obstruct with each other? Contact form descriptor: <form action='sendMail.php' method='post' id="contact-form" class="form-horizontal" > <fieldset> … … Web Development javascript | |
Dear Friends, I've created a lit bit advanced web site(Online Library System). Before publishing it, now i wants to check its security level. I meant, can hackers attack my site? blah blah blah... Is there any tools to check ??? Web Development php publishing | |
As many forms as I've used over the years and sending data from one script to another, I'm totally baffled with what is going wrong with this situation... I have a form in a script that basically just displays a book face as a link to go read the book. … Web Development php | |
I am trying to update multiple rows in my database using php and mysql. Here is my php mysql statment: $sql = "UPDATE book_store SET". "title = '$_POST[title]', isbn = '$_POST[isbn]', price = '$_POST[price]', quantity = '$_POST[quantity]' ". "WHERE ID = '$_POST[id]' "; Here is my Error: Error: You have … ![]() | |
I've inherited the task of creating a web page for my dept. application on the intranet. My experience with javascript is limited and would rather do this via PHP (v 4.3 at work), but javascript is what I've to work with. Once a week we run migration (Oracle) at a … Web Development javascript oracle | |
I am some reports I am using google charts for, but when I create a pdf the charts are not being created in the pdf. Is there away around this, or has anyone ran into this issue. I am using google charts because CF charts gives me a image expired … Web Development coldfusion google pdf | |
Hi, I have a web app which is in the Google marketplace. When user adds the app, it creates account for that user. I also want to import all the other accounts from that domain and as I understand it can be done by accessing the Provisioning API. How do … Web Development api google google-api php | |
Hi all, I've created an excel attachment containing an html table that sends using mail(). I'd like to extend that by including multiple tables in different worksheets in the same workbook. Currently my $message = // The first table. my $headers are: $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= … Web Development php | |
Hello, I have been writing code for someone, specifically making modifications to a user control panel. The client sent me the decrypted version of the code to make changes to. I assume he bought the software as he asked me to make the changes and he didn't himself, but what … Web Development php | |
hi guys, i saw same article with my problem, but i seem dont get the solution. the code works but some notice error. i have problem: "Notice: Undefined index:" Line: 40 // basename($_FILES['uploadedfile']['name']) the Code: <?php //This is the directory where images will be saved $target = "images/"; $target = … Web Development php | |
Hello. I'm getting an undefined index error with the following code and I can't for the life of me figure out why. Any insight would be greatly appreciated. I'm using an html form and a PHP file to upload images to a directory and write the rest of the form … Web Development php | |
Hi all , I have a set-interval function inside a for loop and when inside the set-interval function if it meets a criteria give an alert and clear the interval. Below is my code but its not working can anyone tell what the mistake here. var timeCheck = 0; function … Web Development javascript programming-construct ![]() | |
Is there any way to have more then one interval timer running on the same page without them interfearing with each other? Web Development javascript | |
Hi, I am working on a tooltip which shows the content in tooltip if present. But the code I am using shows the empty tooltip even the content returned is empty. I don't want to show tooltip or qtip when the content is empty.. :( Here's my code HTML echo … Web Development javascript javascript-jquery | |
Hey guys, I would like that when the HTML page loads to my website, if the user enters a word and presses a specific key (e.g. enter). The event should occur on the page and manipulate an object already existing on the page. Here is an example: 1.) The webpage … Web Development javascript | |
If I make a website using Django, is there any need to use Javascript? Can Django work in place of Javascript itself? Web Development javascript python-django | |
I am working on a live chat function, I have everything working except the message retrieval and displaying function, I am storeing all the messages on my server in a table, I am trying to make a function now to retrieve the most recent message entered and display it in … Web Development display javascript | |
Hi, I am struggling with this..I have multiple images and data with same class. As I click on a link with class single_image it should pop up the corresponding div. but its not working every time i click it shows me the same image. I have tried using $("a.single_image").each( function … Web Development javascript javascript-jquery wordpress | |
Hello, I have a php script with 3 textboxes that is supposed to search for and retrieve records using the following criteria: Policy Number, First Name and Last Name. The code is as follows: search_page.php <table width="1076" align="center" bgcolor="#eee"> <tr> <td height="10" valign="top"> <p> <div align="center"> <form id="form1" name="form1" method="post" … Web Development php | |
<?php require_once('Connections/site.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; … | |
Hello everyone, As a freelance i am working on my own project name myOnlineDesk. I want to make a module in admin section where i can create a database backup file and save to the system. The thing that i want is ".SQL" file. When i click on a Backup … | |
Good day, I am having trouble on how should i clear the value of my controls in the modalpopupextender. Assume the i have 1 textbox in it. oce i clicked the button with any name. all i want is to clear the value of the control.. thanks | |
public string generateEmployeeid()*//here i am getting this error 'objdataclassname.generateEmployeeid()'.' not all code paths return a value'* { objDataBaseClass = new DataBaseClass(); if (Designation == "Student") { int id; int count = 01; string typ = "SID-"; objDataBaseClass = new DataBaseClass(); Table = objDataBaseClass.GetDataTable("spGetEmployeeID");// passing storerprocedure name if (Table.Rows.Count > 0) … Web Development asp.net | |
Hey guys. I'm having a problem with changing the CSS of a div tag. I've done a bit of syntax/semantic research on this, but this situation seems a bit too specific to nail down. Goal: I have 4 checkboxes 1st: center text (turn off 4th checkbox if it is checked) … Web Development html-css javascript | |
Been trying this for a while and even searched the net but didn't get what I am doing wrong, I got the function but it's just that it won't print the two first digits that is supposed to be 0 and 1 followed by what's get printed by my code. … Web Development php | |
I have an API that supports both JSON and JSONP. Obviously, being a data provider, I want the people who request my data to cache it. However, jQuery's $.ajax() function says the following about their caching feature: >cache (default: true, false for dataType 'script' and 'jsonp') Type: Boolean If set … Web Development javascript javascript-jquery json | |
In the following html/php page why is my "select" tag not showing all the options? <html> <head> <title>Learning PHP & HTML</title> </head> <body> <form action="somefile.php" method="post"> <form> <table width="25%"> <tr> <td>First Name:</td> <td align="right"> <input type="text" name="fName"></td></tr> <tr> <td>Last Name:</td> <td align="right"> <input type="text" name="lName"></td></tr> <tr> <td>Phone Number:</td> <td align="right"> … Web Development html-css | |
hi i have an drop down list in the web paage and it has Item A, Item B, Item C as items in the drop downlist. when i run the page how can i make it to display the Item B which is the 2nd item to be displayed in … | |
I am trying to make a movie list for myself, I got everything working like add and delete but the edit gives me some headace. I get all the values fine, id, movie title, director and year are all filled in, well not what category I added using radio buttons … | |
i want to make a photo uploader page...that uploads photo and display it in the same page...but i also have one more problem...i don't want page to be refreshed...because i have other controls in that page....can u give an idea how to do so??? | |
I have single input to be enterded into database I want to use ajax to do this The problem that I already have form to do something else so I can't put from inside form how can I achive somthing like this without touching the original form  when … Web Development javascript php | |
My while keeps looping and i dont know why: code <?php $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); while($row = mysql_fetch_array($result)) { $result = mysql_query("SELECT * FROM tag WHERE point='$pagename'"); //username echo $row["user"] . " ||"; //alias check $result = mysql_query("SELECT * FROM tag WHERE (user='$my_name' && point='$pagename')"); if … Web Development mysql php programming-construct | |
Good day, I am stuck at his moment figuring how could i solve this porblem.. I created a method that will retreive a value from the dbase and place it in the dropdownlist.. so here is my code protected void ddlSalesOrg_SelectedIndexChanged(object sender, EventArgs e) { _lkpPlantEntities.plant = ddlPlant.SelectedValue; _lkpCustomerEntities.txtSalesOrg = … Web Development asp.net | |
Hi guys, I am a little new to this stuff but have done a few research regarding PHP. Currently, I am trying to learn PHP to allow a web portal to interact with data stored on MySQL database. In other words, lets say I have a website that displays information … | |
I need to convert the `UNIX_TIMESTAMP()` output into a readable date and time for output in a table. Anyone know how to do this? or am I in the wrong area again? | |
Dear Friends, Help me to fix this.. Error Message : **mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in** Code is, <?php $database=$diocese; $table=$category; //capture search term and remove spaces at its both ends if the is any $searchTerm = trim($_GET['query']); //check whether the name parsed is empty if($searchTerm … | |
i have a table with the following structure CREATE TABLE IF NOT EXISTS `test_check` ( `id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(65) NOT NULL DEFAULT '', `lastname` varchar(65) NOT NULL DEFAULT '', `email` varchar(65) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; i have a … | |
i want to compare dates stored in database in the format yyyy-mm-dd by changing it in unixtimestamp in the mysql query.for this my query is $bquery="SELECT * FROM rt_booking WHERE rt_unit_id='".$_POST['unit_id']."' AND (SELECT UNIX_TIMESTAMP(str_to_date(rt_start_date,'%Y-%m-%d'))>=".$my11." OR SELECT UNIX_TIMESTAMP(str_to_date(rt_end_date,'%Y-%m-%d'))<=".$my22.")"; but it is giving syntax error. | |
Hi there, Hope someone can help me on this. I really need help. I have a javascript for a rotating image, whereby a total of 10 images will change automatically in every 3 seconds. It works well in a .html page, however it doesn't work in a .php page. In … Web Development html-css javascript php | |
Hi what i want to do is to code a checkbox list. herewith i have attached an imaage. as in the image, if i check business all the checkboxes below it should get checked and if i uncheck all the check box should get unchecked, how do i code this … | |
Hello Everyone, I am trying to display a graph, but it is not working. I see that the variables is getting the correct value, so maybe the addSeries is not recognizing the variables. Can anyone help me? See the code below: <!DOCTYPE html> <html > <head> <?php //connect to database … | |
i have a php associate array and i want to convert it to a javascript array. how best do i do this Web Development javascript php | |
Hi All, new to Javascript and stuck on a small issue, its a little late and my head is not thinking straight. The scenerio is I have two textboxes and a submit button. All i want is the values to transfer to a function so i can change 2 global … Web Development javascript | |
trying to search by the file name keep getting a "expects parameter 1 to be resource, boolean" error what am i missing? $pagename = basename($_SERVER['PHP_SELF'], ".php"); mysql_select_db("tagpoint", $con); $sql="SELECT * FROM tagpoint WHERE title = '".$pagename."'"; $result=@mysql_query($sql); $row = mysql_fetch_array($result); ![]() | |
is it possible to use a string array in mysql using the set data type and add a valuse to it, like a list of names? ![]() | |
Hello, how do i add an hour to time with DATE_ADD in DATE_FORMAT? Here is my code : <?php session_start(); include('includes/main_funcs.php'); $db = db(); $reponse = $db->query('SELECT name, message, DATE_FORMAT(time, '%H:%i') AS forTime FROM chat ORDER BY ID DESC LIMIT 0, 10'); while ($donnees = $reponse->fetch()) { echo'['.$donnees['forTime'].'] <strong>'.htmlspecialchars($donnees['name']).'</strong> : … | |
I have been having problems with this code and i cant find out why I am trying to add a new element to an array. it says it goes throu butwhen i check its empty: $sql="UPDATE $title SET arole = CONCAT_WS(',', arole, '$name') WHERE op = '$name'"; if (!mysql_query($sql,$con)) { … |
The End.