52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for napninjanx

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
Member Avatar for napninjanx
0
174
Member Avatar for wooshman

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
Member Avatar for diafol
0
201
Member Avatar for vasvigupt

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
Member Avatar for diafol
0
1K
Member Avatar for ravidaniweb

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 …

Member Avatar for poojavb
0
145
Member Avatar for aki2all

<?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
0
129
Member Avatar for syd919

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
Member Avatar for IbrahemShehata
0
125
Member Avatar for Majestics

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
Member Avatar for pritaeas
0
92
Member Avatar for cgull

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 …

Member Avatar for cgull
0
911
Member Avatar for Shadowalk3r

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
Member Avatar for madelinekim
0
88
Member Avatar for dagtad

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
Member Avatar for pritaeas
0
123
Member Avatar for Khav

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
Member Avatar for Khav
0
313
Member Avatar for 68thorby68

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
Member Avatar for 68thorby68
0
172
Member Avatar for showman13

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 …

Web Development pdf php
Member Avatar for coolest_987
0
1K
Member Avatar for matanc244

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 …

Web Development cms mysql php sql
Member Avatar for pritaeas
0
130
Member Avatar for vijayram

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
Member Avatar for jadein2
0
381
Member Avatar for sushy27

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
Member Avatar for diafol
0
453
Member Avatar for chris_j_haines

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
Member Avatar for diafol
0
246
Member Avatar for mahdiyazdani

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" …

Member Avatar for mahdiyazdani
0
647
Member Avatar for javedshaikm

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
Member Avatar for diafol
0
178
Member Avatar for wiliclip

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 …

Web Development php session
Member Avatar for mmnnbbv
0
2K
Member Avatar for bulqr4eto

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 …

Web Development php video
Member Avatar for diafol
0
172
Member Avatar for user543820

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
Member Avatar for Troy III
0
203
Member Avatar for yehoshua2123

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 &lt; and &gt; but I would like something that were a bit easier to remember and quicker like maybe using …

Member Avatar for Troy III
0
416
Member Avatar for maksudnya

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 …

Web Development display image php
Member Avatar for dany12
0
120
Member Avatar for naru vaishnaw

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
Member Avatar for pritaeas
0
144
Member Avatar for magicmarkuk

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 …

Web Development php regex
Member Avatar for magicmarkuk
0
151
Member Avatar for vishal.du123

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 …

Web Development api bsd php
Member Avatar for pritaeas
0
253
Member Avatar for moshe12007

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
Member Avatar for IbrahemShehata
0
128
Member Avatar for tjamesp

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 …

Web Development php sql
Member Avatar for liquidbroadcast
0
189
Member Avatar for jagrati

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
Member Avatar for FloridaSabic
0
271
Member Avatar for HasNor

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
Member Avatar for broj1
0
280
Member Avatar for Sabyre

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
Member Avatar for Sabyre
0
123
Member Avatar for javedshaikm

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
Member Avatar for javedshaikm
0
248
Member Avatar for mathewmoozh

Hi friends, i have developed a new website.My client needs a online supporting chat feature in the website.I havent tried with it yet.I have downloaded the code and implimented many code in the site.But all are showing errors.Please help me.thanks in advance.

Web Development php
Member Avatar for rileyganimator
0
140
Member Avatar for devianleong

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
Member Avatar for diafol
0
223
Member Avatar for xbat

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
Member Avatar for xbat
0
162
Member Avatar for PhilEaton

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
Member Avatar for PhilEaton
0
2K
Member Avatar for treasureireland

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 …

0
105
Member Avatar for Buppy

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 …

Web Development php session
Member Avatar for diafol
0
178
Member Avatar for saadi06

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
Member Avatar for diafol
0
823
Member Avatar for BadManSam

I want like a ranking system that works something like this. User clicks on something there is a percentage chance that they will suceed. And if they do they get xp. but if they fail they only get like 1 xp. Anyone a mmporg Coder. Because I will Pay up …

Web Development php
Member Avatar for diafol
0
92
Member Avatar for matanc244

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 ?

Web Development cms php
Member Avatar for pritaeas
0
129
Member Avatar for Albert Pinto

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
Member Avatar for kalpanakovuru
0
2K
Member Avatar for devilhacker

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?

Web Development mysql php
Member Avatar for pritaeas
0
264
Member Avatar for jckb188

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
Member Avatar for broj1
0
200
Member Avatar for hwoarang69

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, …

Web Development mysql php
Member Avatar for pritaeas
0
207
Member Avatar for MDanz

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. …

Member Avatar for pritaeas
0
302
Member Avatar for Venom Rush

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?

Web Development caching php
Member Avatar for Venom Rush
0
230
Member Avatar for ayesha789

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 …

Web Development email php
Member Avatar for urtrivedi
0
1K
Member Avatar for hwoarang69

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> …

Web Development html-css mysql php
Member Avatar for hwoarang69
0
432

The End.