39,320 Topics

Member Avatar for
Member Avatar for mmcdonald

Hey all, This website is a directory and the problem is authenticating users to edit a server, even after they've logged in. The idea is to stop any SQL mix-ups due to my weak code (I'm learning PHP). When they click 'Edit' next to the server after logging in they …

Member Avatar for mmcdonald
0
198
Member Avatar for mark.claxton.7

Hi everyone, I am hoping someone here can help me with a problem I am currently facing. I have a website which I have developed with a web host. I also have a domain name which I have set up to mask the URL of my website. However I need …

Member Avatar for ainosilva
0
222
Member Avatar for Dan_iweb

Hi, I have this script, it attempts to place JSON data into a MySQL database. The problem is it duplicates records, this does not happen when the “news_added” field is not NULL. That’s the only thing I can see different. I would like the script to update a record, replacing …

Member Avatar for Dan_iweb
0
132
Member Avatar for mindfrost82

I have the following part of code in a PHP file and I want to know if there's a way to make the URL open in a new window instead of the same window. It might be a dumb or easy question, but I'm not too familiar with PHP [code=php] …

Member Avatar for 2lessons
0
2K
Member Avatar for Naimathullah

I need to display picture name when i move mouseover the picture using onmouseover. Please let me know what I need to add either to javascript or to PHP. <style> #contactdiv { position: absolute; left: 100px; top: 100px; width: 100px: height: 20px; padding: 5px; background-color: red; visibility: hidden; } </style> …

Member Avatar for Airshow
0
703
Member Avatar for eulo

hi all. I have some problem. I want to make Delete multiple rows in mysql with check box. so I did it below. but delete doesn't work. could you tell me where is wrong ? <?php include'conn.php'; mysql_select_db("auction")or die("cannot select DB"); $sql="SELECT * FROM family"; $result=mysql_query($sql); $count=mysql_num_rows($result); ?> <table width="400" …

Member Avatar for simplypixie
0
228
Member Avatar for lizetta

Hey guys I have a mysql database that has an events table. The events table consists of the fields Title, Date, Place and description. I am trying to display the table on the browser using php coding. it should list important events first according to the date. so as follows …

Member Avatar for simplypixie
0
255
Member Avatar for ayub05

I didn't use wordpress or joomla or drupal for my blogsite.Here i see all plugin codes built for wordpress. but these codes does not work at my site. But how can i add Social bookmarking button code to my own created blogsite? my website is built by html, php, css …

Member Avatar for LastMitch
0
244
Member Avatar for ajay.motah

hi, im having a problem using this jquery I mamanged it to g and fetch data from mysql n now i want it to disply only one class at a time on available or not available here is the js $(document).ready(function(e) { $('#txtAuction').keyup(function(){ check_availability(); }); }); function check_availability() { var …

Member Avatar for Airshow
0
123
Member Avatar for baig772

I have a search form, in which a user enters a keyword and it displays the results with the keyword in description as highlighted text, for highlighting, i have used another class on that keyword. problem is that, if there is a keyword in some hyperlink or in some <img> …

Member Avatar for baig772
0
226
Member Avatar for squeak24

I am working on a open source script at the moment, but I am struggling on one final aspect of the script. I am a bit of a newb to PHP at this level, I have a working knowledge of PHP and MySQL, but this seems to be a little …

Member Avatar for squeak24
0
229
Member Avatar for abhi287

Hi all I m using following code.. [code] <?php session_start(); if(!isset($_SESSION['captcha'])){session_register('captcha');} $PHP_SELF = $_SERVER['PHP_SELF']; $stringa = ''; $cifre = 5; for($i=1;$i<=$cifre;$i++){ $letteraOnumero = rand(1,2); if($letteraOnumero == 1){ // lettera $lettere = 'ABEFHKMNRVWX'; $x = rand(1,11); $lettera = substr($lettere,$x,1); $stringa .= $lettera; } else { $numero = rand(3,7); $stringa .= $numero; …

Member Avatar for aj4mq
0
560
Member Avatar for srvstv.prnc

i want to make a web application for scheduled calling. so how can i do that. Please help me.

Member Avatar for diafol
0
60
Member Avatar for vizz

How to create [Calendar](http://www.cafeshistoriques.com) like this example? Dates are marked for posts available. [Example2](http://www.easyphpcalendar.com/demoBlog7.php?ev=2456175&mo=9&yr=2012) I want to redirect on post.php and show only post available for date clicked from Calendar

Member Avatar for vizz
0
94
Member Avatar for ajay.motah

hi, im using jquery for dynamic diaply of login, but now i wish to start the $session once the login is sucsseful. but my code is found in a function in a php class. So can i call that function? Thank you!

Member Avatar for theHop
0
71
Member Avatar for venkyb47

I am unable to send a string from php page to java script page. I am storing a string in a php variable and I want to send this value to java script page on image icon click. Here is the source code: timetrack.php $activityid = $getResult->fields('ACTIVITY_ID'); // Now consider …

Member Avatar for venkyb47
0
340
Member Avatar for Tko_1

I am trying to redirect if working.php is present in folder other wise echo no file. this script only echo's no file. thanks. <?php $filename = 'working.php'; if(file_exists('$filename')) { header( 'Location: welcome.php' ) ; } else { echo "NO FILE"; } ?>

Member Avatar for Tko_1
0
114
Member Avatar for kartikkp

$getTime = time(); $newTimeFormat = date('h',$getTime); if($newTimeFormat > 3 && $newTimeFormat <=12){ echo "<section id=\"main\" class=\"column\"> <iframe height=\"890\" width=\"100%\" frameborder=\"0\" id=\"display\" scrolling=\"auto\" src=\"displayDayShift.php\"></iframe> </section>"; } if($newTimeFormat > 12 && $newTimeFormat <=21){ echo "<section id=\"main\" class=\"column\"> <iframe height=\"890\" width=\"100%\" frameborder=\"0\" id=\"display\" scrolling=\"auto\" src=\"displaySwingShift.php\"></iframe> </section>"; } if($newTimeFormat > 21 && $newTimeFormat <=3){ …

Member Avatar for Zagga
0
186
Member Avatar for Jiggles.X

Hi every one. I have a bit of a problem/ headache. I am trying to make a dropdown style menu for a website that runs off a CMS I made everything works fine but I can for the life of me get the menu system to work! This is the …

Member Avatar for Jiggles.X
0
109
Member Avatar for garyjohnson

Okay I have a database where it stores the users information, like their login name, email, and password. They can upload videos to my site, when they upload the videos, it saves to a database, the database is set up like this, VIDEONAME EMAIL NAME funny sample@email.com abcd.mp4 It stores …

Member Avatar for LastMitch
0
240
Member Avatar for andyy121

this is the index page <?php if (isset ($_POST['keywords'])){ $keywords =mysql_real_escape_string(htmlspecialchars(trim($_POST['keywords']))); $keywords =$_POST['keywords']; $errors = array (); if (empty ($keywords)){ $errors[] = ('Please enter a serch terms'); }else if (strlen($keywords)<3){ $errors[] = ('Your search terms must be three or more characters'); }else if (search_results ($keywords) == false){ $errors []= ('Your …

Member Avatar for LastMitch
0
264
Member Avatar for andyy121

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <?php include 'func.inc.php'; ?> <title>SEARCH</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h2>SEARCH</h2> <form action="" method="post"> <p> <input type="text" name="keywords"/> <input type="submit" value="Search"/> </p> </form> <?php if (isset ($_POST['keywords'])){ $suffix =""; $keywords =mysql_real_escape_string(htmlspecialchars(trim($_POST['keywords']))); $keywords =$_POST['keywords']; $errors = array (); if (empty …

Member Avatar for LastMitch
-1
388
Member Avatar for harsha.netpem

hello, I need to freeze the two columns from the large amount of data which is fetched from database using php. For e.g using the table students column name:- id, name, class, section, roll number,remarks,address,etc... I want to freeze two colums i.e id and name, so how can i create …

Member Avatar for diafol
0
288
Member Avatar for Ghost

Hi guys! I've been using PHP for fun for a while, and now I'm interested in playing with some scraping. I know regex is the way to go. So I'm trying to scrape a page of 4chan. I want to grab the images and the title of the thread of …

Member Avatar for diafol
0
238
Member Avatar for GazzaCurran

Hello, im very new to php. Ive created a form in dreamweaver using Tick boxes and normal text boxes. I need the form to send to a email, the tutorials ive read dont usually encorperate tick boxes. here is the form <form name="contactform" method="post" action="send_form_email.php"> <table width="450px"> <tr> <td valign="top">Personal …

Member Avatar for broj1
0
136
Member Avatar for sharathg.satya

can anyone provide any site with plenty of examples to learn PHP. i got [url]www.w3schools.com[/url] but i didnt find good examples in them. please help me.

Member Avatar for emoviefreak
-1
121
Member Avatar for PHPuss

<?php $db_conn = ocilogon("root", "admin", "//localhost/xe"); $cmdstr1 = "SELECT *FROM TESTS WHERE TEST_TIME BETWEEN TO_DATE('2012-01-01','YYYY-MM-DD') AND TO_DATE('2012-02-02','YYYY-MM-DD')+1 and SYSTEM_NAME like '%SYSTEM_1%' "; $cmdstr2 = "SELECT *FROM TESTS WHERE TEST_TIME BETWEEN TO_DATE('2012-01-01','YYYY-MM-DD') AND TO_DATE('2012-02-02','YYYY-MM-DD')+1 and SYSTEM_NAME like '%SYSTEM_1%' and RESULT='0'"; $parsed1 = ociparse($db_conn, $cmdstr1); $parsed2 = ociparse($db_conn, $cmdstr2); ociexecute($parsed1); ociexecute($parsed2); $nrows1 …

Member Avatar for pritaeas
0
87
Member Avatar for raj-uk

Hi All, i found this code which is ok but i need this to highlight whole line in colour, for example like: *1. Mr Johan call in office on sunday* *2. No More call to johan* *3. Johan has Paid All* I am telling the script to start from star …

Member Avatar for diafol
0
165
Member Avatar for flynismo

## A quick overview: ## After the login form is submitted, it is handled by a seperate file, which checks the form and sets session variables if the login was successful. The script works fine...it will log me in, and redirect me to the proper page as well as set …

Member Avatar for flynismo
0
291
Member Avatar for jacksantho

Hi, Any body please help me out, am facing the following error Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1704 bytes) in C:\xampp\htdocs\phpexcel\Classes\PHPExcel\Style\Borders.php on line 517

Member Avatar for riverspart
0
213

The End.