52,566 Archived Topics
Remove Filter ![]() | |
![]() | Which of the following correctly sets up a PHP array?? 1. array() = $array_values[]; 2. $array_values = array(); 3. array() = $array_values[]; 4. $array_values = new array(); Web Development php ![]() |
Hi This is the first time I have really played with calendars in PHP and am a little, no, a lot stuck. The MySQL database holds "job_id", "visit_date" which is a timestamp and also "engineer" which is one or more names seperated with : My planner needs to have the … Web Development php ![]() | |
is it possible?? $a= 5; $b =10; $c= "+" $d= $a.$b.$c; How can I do dynamic calculation like this. I know this code will not work. But Just want to use opereater directly input through form. How can I prevent opreater to converting into string. Web Development php ![]() | |
Hello everyone! i have problem in inserting data in my database from textbox, i m using c#. the code in .aspx.cs file is using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.Sql; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlDataAdapter da … Web Development asp.net open-source visual-studio | |
<?php include 'functions.php'; if(!loggedin()) { header("Location: index.html"); exit(); } $session = $_SESSION['empno']; $dbName = mysql_query("SELECT ename FROM employee WHERE empno = '$session'") or die(mysql_error()); $nameResult = mysql_fetch_array($dbName); $name = $nameResult['ename']; $reqno = $_GET['id']; //echo $reqno; exit; $amtApproved = $_GET['amtApproved']; $query = mysql_query("SELECT * FROM requisition WHERE reqno = '$reqno'") or … Web Development html-css javascript php session | |
Hello I have a problem with customizing my menu, I created a new mvc web application. Visual studio has created a default menu but I wanna add a background image like an image with "Home" or About instead of the default one. here is my code. <body> <div class="page"> <div … Web Development asp asp.net html-css visual-studio | |
I am new to php, i am creating a website which fetch data from mysql, if the data is more then 10 columns then i want to give a link page 1 , 2 , 3 , 4 (Like google) so user cant navigate through them.... How can i do … Web Development php | |
Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects … Web Development javascript php-codeigniter web-browser | |
hey guyz .. i have made my first website comprising of ten websites i've tried saving it as a mht file but only the first page has been saved the other links seem not to loading i designed using adobe dreamweaver help me gain that knowledge. Web Development adobe | |
Hello there, I'm using mysql as a back end of my project and am using PHP for server side scripting. I want to insert a formatted text into my mysql table. How can I create a text field which accept a formatted text and save it to the database. Thank … Web Development | |
Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = … Web Development file-stream image php | |
I understand a select list will display the options in which they are received, however I am compiling my select list and options from a number of PHP/mysql queries and am at a lost as to how I could achive the ordering via the php/mysql route. $all_zones=('a,b'); // foreach($all_zones as … Web Development php | |
Good Morning All, This is a question I touched on previously, but don't think I presented what I really need to do. I need to get this accomplished ASAP, and really have no clue how to go about it. Would even be willing to pay someone else if they have … | |
Hi i am Trying to delete a page from my site cms and something is not working . the code is: <?php $con = mysql_connect("localhost","matanc_cmd","123123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("matanc_cms", $con); $id = (int) $_POST['id']; mysql_query("DELETE FROM content WHERE id='$id'"); mysql_close($con); // if successfully … | |
hi, i have menubar.click menubar content load the particular url in this page. $(document).ready(function(){ $('#menubar li a').click(function(e){ e.preventDefault(); $('#userpersonal').load("http://localhost/user/web/personal/index"); }); }); what is the problem in my code. plz help me Web Development javascript | |
I am new to php and I am trying to write the cross tab query for mysql using PHP. I constantly keep getting errors like PHP Parse error: syntax error, unexpected T_STRING in /home/sushvedula/cross.php on line 5 Kindly help. This is my code. <?php $db->Connect('localhost','root','********','pack_00001'); for($i=0;$i<5;$i++) for($j=0;$j<24;$j++) select timestamp, group_concat(if(module=$i … Web Development php ![]() | |
Hi I have had a client asking me to look at the image upload section of the site i have built for them: Here is the upload form code: <form enctype="multipart/form-data" action="processupload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" /> <center>Choose photo to upload: <input name="uploadedfile" type="file" /><br><br> <input type="submit" value="Go to … Web Development file-system image php ![]() | |
i create some login form and i put remember me check box below username and password field this is my login form code : <?php error_reporting(0); include "../db.php"; ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <title>IN ADMIN PANEL | Powered by Mahdi Yazdani</title> <link rel="shortcut icon" … Web Development html-css iphone javascript-jquery php | |
Data from a XML sheet is converted to php array and I have tried to create a quiz format question with the below code, but it does't work. Not sure how to get it working for multiple questions... <?php function get_answer($input){ if ($input == ($att['ans']) ) {echo "Correct Answer . … Web Development php ![]() | |
Hello I am getting this error - even if object database is initialized in class that is in database.php and then included in session.php that gives an error. I've tested the thing in another script jok.php that is bellow and it works there. I've already lost 1 day on this … | |
I need a BIG HELP, first I want to say Im REALLY BAD with PHP :D so basically I have a php script witch auto generate list of videos from a folder on my host with 1 media player http://img687.imageshack.us/img687/5915/snap20120703at155809.png - As you can see there are too many clips … ![]() | |
Hi! I have written this function in javascript. The problem I'm facing is that even when the text field in html form is empty, this function behaves as `alert("");`. It must display "Enter some text" in alert box. The function, however, works well when I enter "Hello" in the text … Web Development javascript | |
I want to make HTML appear as text to maybe write some snippets on a site. I know that there is a way to make < and > by using < and > but I would like something that were a bit easier to remember and quicker like maybe using … Web Development html-css javascript javascript-jquery | |
I have a problem, how to display the image and the url stored in the destination database. This my format code : This code is stored in the database like this <a href=\"<?php echo get_settings('home'); ?>\" style=\"border:0;\"> <img src=\"<?php echo get_bloginfo('template_directory');?>/banner/728x90.JPG\" width=\"728\" height=\"90\"/> </a> I called using: stripslashes(get_option("bh")); <a href="<?php … | |
how to create edit form .and update user data my table is; id int auto_increment Name Department Problem Ext_no Ip_Add Remark Email Status (set) My view table code is ;- <?php //connects to database $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); //select … Web Development php | |
Hi I am having trouble understanding how the pre_replace function works. I am using a script which has the following line: $ret = preg_replace("#(@|telefone|e-mail|.com|skype|.com.br|fone|www.|hotmail|yahoo|ig|aol|uol|gmail|bol|msn|MSN)#i", "\\1scriptolutionreplacement", $ret); What is happening is that any word with for example the letters ig or uol in it is getting caught. Is there a way … | |
I use yahoo messenger api for sending bulk chat messages to different groups(which is define by us for different package users ) but after some time JYMSG API automatically sign off How can we stay sign in? <?php error_reporting(0); include("includes/dbconn.php"); function sendreq($mid) { $sql = mysql_query("select * from cv_requests where … | |
Hello I try to do a Dynamic TextBoxes - but it doesnt work :( .. here is my code: if (ds.Tables[0].Rows.Count != 0) { foreach (DataRow row in ds.Tables[0].Rows) { %> <div class="LineA"> <input type="text" id="Item_<%= var %>" name="Item_<%= var %>" value="<%= var %>" /> <input type="text" id="Link_<%= var %>" … Web Development asp.net | |
Hello, I have to appologize but I am very new to programing and web developemnt. I have developed a web site that will allow users to register and store their info in an database. I am using webmatrix to put it all together. I have no problem adding the info … | |
hiii all, I am developing a website with a webform in it. i want that when user clicks the submit button ......all the data filled by user should come in my MS Access database table which have the same fields.. I have connected the database. webform i have developed in … Web Development asp | |
Dear experties, I have a problem with read file in format "pptx/docx/xlsx". In other format PHP can read the document properly..what can I do for this case? anybody can help me?? here my script for view the file by hyperlink.. <a href="../folder/upload/<?php echo $row['fileName']; ?>"><?php echo $row['fileName']; ?></a> Web Development php | |
OK, hours later and much searching yields nothing.... We do newsletters on our website, they are created via a form in the backend. Currently they are generic whatever you enter in the textfield is sent and I was looking to add predefined headers and footers to them that could be … Web Development php | |
How can I convert the below array to look like a quiz question format: Array ( [content] => Array ( [@attributes] => Array ( [id] => 20 ) [quest] => <FONT FACE="Arial">If K represents kinetic energy, V velocity and T time and these are chosed as the fundamental units then … Web Development php | |
Hi, anyone can share some date picker code for me? I'm new to PHP and I saw a lot of free source code in google. Unfortunately I don't know about javascript and they mostly provide javascript date picker source code. Currently I want a php date picker to search a … Web Development php ![]() | |
how do you group by value ? I have it where it selects by drop down... select sum (table) where item group by ?????? VALUE ???? The value I use is select Web Development php | |
Hello all! I am using a little piece of code in a report I'm generating (LogiXML). It is a "back" button that takes the user back to the previous page.. It does not however, use any form of a history, back, location javascript code. It just uses a plain old … Web Development javascript | |
Hi, I am trying to display certain content to certain mobile devices, specifically displaying alternative content to iphone's as they cant play flash. I am currently using the detectmobilebrowsers.com JSP code, to redirect my site from the full version to the mobile site, the code is as follows: <% String … | |
Hi, I have this situation - an user clicks a link in my site. That link sets a session variable and then redirect the user to another page. That another page then redirects the user back to the previous page, but the previously set session variable is gone. How to … ![]() | |
Hi, I am using tcpdf library to create pdf files and they are password protected.Now I have a condition where I want to merge different pdf files and create a single pdf file and dipslay the multiple pdf files to the user in a single pdf file.I am having problem … Web Development file-system pdf php ![]() | |
Hi i have a pages on my cms and I made a category system now i dont now how to add the category to the pages i want to have an option on the new add of page by the category that i made someone now how to ? | |
Hi People, Got some issue with radio buttons... I want to pass the form details WITHOUT PAGE REFRESH.... I have a textbox and 2 radio buttons with values Subscribe and Unsubscribe and a submit button. The user has to enter his E-mail id in the given textbox and select either … Web Development html-css javascript | |
Hi, I have a table with a timedate collumn. I want to get the text of the article and its creation date, than to output them on my page. How can I just get only the date value from a query or php script manupulation? | |
Struggling to get the following code to work. The code works if I just put an individual table in SELECT FROM, but I can't get anything when I try and do INSERT INTO table and then substitute it in. I am a complete noob at this and I know in … Web Development php | |
Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\a_upload\upload.php on line 71 Warning: mysql_query() [function.mysql-query]: Error reading result set's header in C:\xampp\htdocs\a_upload\upload.php on line 71 GalleryUploadMessageProfileStatistticsChange PasswordDelete Account if(!$sql=mysql_query("INSERT INTO image VALUES(NULL, '$user_id_db', '$image', '$image_keyword_p' , '$image_full_name', '$image_short_name_p', '$image_des_p','$file_size' ,'$image_resolution', 0)")) Warning: mysql_fetch_assoc() expects parameter 1 to be resource, … | |
I've looked everywhere and haven't found a clear step by step tutorial on how to secure sessions/cookies. Here are snippets of my code, i'd like to know how i can improve on session security to prevent fixation/hijacking and cookie safety. This is snippets of code for the user login system. … Web Development cybersecurity php session web-browser | |
As the title says, I need to stop a user's browser from caching the form they've submitted. Is there any way of doing this? | |
Hi, all this is my file expire_show.php it shows expiry of those agreements which will expire with in 90 days from current date. Users have to login to their accounts for viewing these expiry alerts. but they require these alerts on their email. [B]1. how i can format these for … | |
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\a_upload\index.php on line 114 line 144: while($row = mysql_fetch_assoc($R)) $count = 0; $Q = "SELECT (SELECT image_short_name FROM user) as `image_short_name`" .",`image_id`,`user_id`,`image_short_name`,`image`" ." FROM `image`" ." ORDER BY RAND()" ." LIMIT 5"; $R = mysql_query($Q); echo " <!DOCTYPE html> … |
The End.