39,326 Topics

Member Avatar for
Member Avatar for issaru07

i actually trying to run 2 select queries and get user id from members3 table and productid, title,price, categoryname and img from product4 tables. i quite noob in php so not too sure whats went wrong. there is no error msg show just that my database data only have userid …

Member Avatar for issaru07
0
155
Member Avatar for JACOBKELL

I have following code which check does targeted word exits in sentence and it's working. [CODE] $text = "blablavalueblabla"; $word = "value"; $pos = strpos($text, $word); if ($pos === false) { echo "You word is found in this sentence"; } else { echo "Your word it's not found in this …

Member Avatar for diafol
0
8K
Member Avatar for zodehala

i cannot send data in box to index.php. why ? outout is just [CODE]button: Submit[/CODE] link is [url]http://kottawadumi.blogspot.com/2011/07/add-or-remove-list-box-items.html[/url] [CODE] <script type="text/javascript"> function removeMultipleOptions(){ var listBox=document.getElementById("selectMultipleCountries"); if(listBox.options.length==0){ alert('You have already removed all list box items'); return false; } var removedOptionCount=0; var valuesToBeRemoved=Array(); for(var x=0;x<listBox.options.length;x++){ if(listBox.options[x].selected==true){ valuesToBeRemoved.push(listBox.options[x].value); } } for(var j=0;j<valuesToBeRemoved.length;j++){ removedOptionCount+=removeListItemOneByOne(listBox,valuesToBeRemoved[j]); …

0
76
Member Avatar for Martin C++

Hello, I need to get two get functions from url, but I cant get the second one, how can I do it ? Something like this: [CODE=PHP] <h4><a href='?p=edit-page.php?page=$id'>$title</a></h4> [/CODE] The p will include the edit-page.php in my container which is just list of page titles and when I click …

Member Avatar for Martin C++
0
104
Member Avatar for hallianonline

hello I have a form which have 5 drop down boxes which contains the initial values now this is my database I want to make a search result page in php which displays a single record with have following validations: [LIST=1] [*]if all options (college, class, rollnumber, student_name, section) vaules …

Member Avatar for mohamedasif18
0
138
Member Avatar for karthik_ppts

Hi Frendz, I need a solution to stop an embed youtube video at a particular timestamp. Any possible way to do this?

Member Avatar for karthik_ppts
0
404
Member Avatar for ceteris

[B]i dont know why i am having an error in [B]header[/B] Warning: Cannot modify header information - headers already sent by (output started at delete.php on line 13[/B] [B]delete.php [/B] [CODE]<?php include("db.php"); $id =$_REQUEST['BookID']; // sending query mysql_query("DELETE FROM books WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> [/CODE] …

Member Avatar for anthonyjpv
0
203
Member Avatar for Commando112

Hi, This is my version of a user script. panel.php (Logged in Page) [CODE=PHP]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? session_start(); if(!session_is_registered(myusername)){ header("location:index.php"); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>C&amp;C-Relived Control Panel</title> </head> <body> <span style="color: #FFF">Login Successful</span> <form name="form1" method="post" action="logout.php"> <input type="submit" …

Member Avatar for Zagga
0
90
Member Avatar for rahulroshan

Hi I want to detect a language and display it which language it belongs to , Is there any way.

Member Avatar for diafol
0
72
Member Avatar for stanley87

Hi,guys,morning to all :) I have face 1 situation, i already built an api using the rest method, and all my response data will be return in html data when i call the api, i testing on the same server using the jquery working fine, when i use on another …

Member Avatar for stanley87
0
337
Member Avatar for natchattack

I have been working on a project for about a week now and today i seem to of hit a massive brick wall. whilst working on writing some data to a database, something which is usually second nature, i keep getting syntax errors. Now i have gone over the code …

Member Avatar for diafol
0
91
Member Avatar for abhishek2301

Hi, This is a very known problem with lot of solutions in many forums but none of them works for me. A simple code to load a jpeg image as follows: [code=php] <html> <?php $im = @imagecreatefromjpeg("/home/public_html/MyPic.jpg"); header ("Content-Type: image/jpeg"); imagejpeg($im, NULL, 75); imagedestroy($im); ?> <head> <title> My First PHP …

Member Avatar for diafol
0
432
Member Avatar for haribo83

Thi si probably a really simple thing to solve but I am failry new to PHP and cannot find the answer anywhere. I have a search results page that calls data from a MYSQL database. All of the correct information is displaying but one of the fields contains text on …

Member Avatar for nishchal_619
0
4K
Member Avatar for Farhad.idrees

Hi... i m making script which is checking that username aur password is true or not..... i want to show alert if username or password is incorrect.then i want to redirect my page to original login page.... my code is [CODE]$alert = "<script type=\"text/javascript\">alert('Invalid UserName or Password');</script>"; echo $alert; header("Location:../Admin.php"); …

Member Avatar for diafol
0
188
Member Avatar for accra

I have my hidden id [code]<input type="hidden" name="id" value="<?php echo "$id" ?>" />[/code] in my form I have my [code]$id = $_REQUEST['id'];[/code] to get the id from the url And on the update script i have [code]$navtype = $_GET['nav'];[/code] And i have [code]WHERE id=$id[/code], but it keep updating just one …

Member Avatar for diafol
0
147
Member Avatar for deucalion0

Hey guys, so I have been trying to get images to appear with an SQL query using PHP. My table has a column called picture, it is datatype nvarchar50. I have a folder in my project called images and in there an image called 4.png. So in the field of …

Member Avatar for diafol
0
1K
Member Avatar for Marty1963

Sorry I'm still very new at this and there is probably an easier way to write this code. I want to have a contest page automatically redirect to another after a certain date. I have the code to turn on and off content after a certain date and I have …

Member Avatar for Marty1963
0
267
Member Avatar for Martin C++

start_session() after <html> tags generates error, Can it be used there somehow? If so, then how ? If not then what are the alternatives cause I have a function that generates some part of my <head></head> in my themes. So the session_start() definately has to saty in that function (e.g …

Member Avatar for diafol
0
166
Member Avatar for Advokat

Hey guys and girls, I'm now on this forum, but looking forward to some interesting debates :) I work at an "advokat (advokatkontor)" meaning a lawfirm in danish. I work with different things, but im the only person that knows any IT advokater/lawyers = knows nothing about computers :p My …

Member Avatar for pritaeas
0
152
Member Avatar for hhall56

[url]http://www.healthviewone.com/PHP/Meds/med-update.php[/url] The URL above takes me to the following URL which is coming out blank. Can someone review my code below and tell me why I am getting this blank page? P.S. the patient information is bogus, not real. So no HIPPA concerns at all. [url]http://www.healthviewone.com/PHP/Meds/meds-change-form.php[/url] <html><head><title>Change Record form</title> <style …

Member Avatar for pritaeas
0
207
Member Avatar for jacob21

I am trying to add cc & bcc in below code but its not working. need suggestion [CODE]$email_from = "av@gmail.com"; // Who the email is from $email_subject = $_POST['hiddensubject']; // The Subject of the email $email_message = "Name : "; $email_message .= $_POST['name']."<br>"; $email_message .= "Message : ".$_POST['message']."<br>"; // Message …

Member Avatar for jacob21
0
2K
Member Avatar for rajphp

hi, i'm looking out for a parser script that stores information like name, dob, address, contact no. from the resume. the resume can be of .doc,.txt format thanks in advance

Member Avatar for pritaeas
0
124
Member Avatar for ebanbury

Many apologies if this is the wrong forum. I looked through all the different forums and wasn't sure. Please let me know and I'll transfer this to whichever the appropriate forum is. I use PHP/MySQL for my website and have been using DW CS5 for Site Management/Connections. I've been trying …

Member Avatar for ebanbury
0
261
Member Avatar for Tssouthpark

Hello, when some submits this form its get send to my email. If the picture or attachment has a space in it ( ex: tom file.docx) the hyperlink gets messed up. I attach a picture of it below. Thank you so much! [CODE=php]<?php if(isset($_POST['email'])) { $email_to = "talent@itarep.com"; function died($error) …

Member Avatar for cereal
0
142
Member Avatar for danielbala

Hi.. This is my validation code [CODE]<?php error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); //Process form if(isset($_POST['Emp_Save'])){ ////////////// //Name// //////////// if(isset($_POST['_EmpName'])){ if(!empty($_POST['_EmpName'])){ if (preg_match('/([a-zA-Z ]{5,30})/', $_POST['_EmpName'])){ $createaccnt1="t"; }else{ $createaccnt1="f"; $error1="<span class=\"error\">Five letters or more required</span><br />"; } }else{ $createaccnt1="f"; $error1="<span class=\"error\">Please add your name</span><br />"; } }//if(isset($_POST['_EmpName'])) ////////////// //Father Name// /////////// if(isset($_POST['_EmpFatherName'])){ …

Member Avatar for cereal
0
131
Member Avatar for Martin C++

Hello, I have a function which is registering a navigation menu [CODE=PHP] function register_menu($name, $displayname){ if(!is_menu()){ $menu['name'] = $name; $menu['displayname'] = $displayname; $registered = TRUE; //This should be global, so that is_menu() function can use it. } } [/CODE] And another function which checks if the menu is registered [CODE=PHP] …

Member Avatar for Martin C++
0
124
Member Avatar for seacore

Hi All, I need to know if it is possible to share a servers "root" directory with other domains with either the same or a different IP address (all running Apache 2)and how? Thanks Chris

Member Avatar for cereal
0
60
Member Avatar for Martin C++

Hello, I need a php code that can detect the root foldername that my website is installed to. I need to use this constant in my bootstrap.php so it can't be relative to where the file is called from. Atm I have my root folder and admin folder. I need …

Member Avatar for Martin C++
0
122
Member Avatar for pizzipie

Hi, I am generating a table for use as a revision form. The following line: [CODE] printf("<td><input type='text' name='%s' onfocus='showDisplayName($v[1], $v[2]);' id='%s' value='%s'></input></td></tr>\n", strtolower($key), strtolower($key), $value);[/CODE] has the php function showDisplayName() embedded in it. This function will not work. If I write the identical line in a pure HTML page …

Member Avatar for pizzipie
0
366
Member Avatar for NoMansLand_MFGC

Hello, I'm normally pretty good with PHP but since updating to the latest version I can't seem to get most my script's to work. I am trying to pull two variables, from the database and count how many row's there are. [CODE] $query = mysql_query("SELECT * FROM notifications WHERE to='$username' …

Member Avatar for pritaeas
0
190

The End.