39,316 Topics

Member Avatar for
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 …

Member Avatar for pritaeas
0
126
Member Avatar for keval007

Hi, I am new to Unix environment. Any one can explain how I can set CRON job to run PHP script. Thanks.

Member Avatar for rch1231
0
221
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 …

Member Avatar for diafol
0
448
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 …

Member Avatar for diafol
0
244
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
641
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 . …

Member Avatar for diafol
0
176
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 …

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 …

Member Avatar for diafol
0
166
Member Avatar for blaaam

Hi! I have small problem, in my add.php is selection tag used to choose year, so in my edit.php has place for year too where i use selection tag too, but how can i show in edit.php that year in selection tag, that what i have choosed in add.php? With …

Member Avatar for pritaeas
0
71
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 …

Member Avatar for dany12
0
119
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 …

Member Avatar for pritaeas
0
142
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 …

Member Avatar for magicmarkuk
0
148
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 …

Member Avatar for pritaeas
0
249
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 …

Member Avatar for liquidbroadcast
0
187
Member Avatar for skitband

does anyone knows how to connect php to firebird database is there any tools or just a script i can use to connect . . replies for help are very much appreciated TY . . .

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

Member Avatar for broj1
0
274
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 …

Member Avatar for Sabyre
0
121
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 …

Member Avatar for javedshaikm
0
246
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.

Member Avatar for rileyganimator
0
138
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 …

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

Member Avatar for xbat
0
158
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 …

Member Avatar for diafol
0
165
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 …

Member Avatar for diafol
0
813
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 …

Member Avatar for diafol
0
91
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 ?

Member Avatar for pritaeas
0
125
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?

Member Avatar for pritaeas
0
261
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 …

Member Avatar for broj1
0
195
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, …

Member Avatar for pritaeas
0
206
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
299
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?

Member Avatar for Venom Rush
0
225

The End.