39,320 Topics

Member Avatar for
Member Avatar for bappi1987

I have three combo boxes in my program... look like this --> box1 number letter box2 1 - 2 - 3 - 4 - 5 - box3 1 - 2 - 3 - 4 - 5 - How can i do it work in this solution ? such as... in …

Member Avatar for Bachu
0
196
Member Avatar for andyy121

foreach($search_exploded as $search_each) { @$x++; if($x==1) @$construct .="keywords LIKE '%$search_each%'"; else $construct .="AND keywords LIKE '%$search_each%'"; } i just wont to understand this foreach ($search_exploded as $search_each) what is the meaning

Member Avatar for Bachu
-1
99
Member Avatar for groma1

hi, am recieving an undefined offset error for $month and $year line after the explode function. This happens only when the form is blank and submitted. $dob="dd/mm/yyyy"; $dob= $_POST['dob']; function icPrintINPUTbirth($label,$name,$maxlth,$size,$value) { print '<label>'.$label.':<input type="text" name="'.$name.'" maxlength="'.$maxlth.'" size="'.$size.'" value="'.$value.'"/></label>'.''; } icPrintINPUTbirth("Date of Birth (dd/mm/yyyy) ","dob",10,10,$dob); $arr=explode("/","$dob"); $day=$arr[0]; $month=$arr[1]; $year=$arr[2]; if(@checkdate($month, …

Member Avatar for pritaeas
0
1K
Member Avatar for persianprez

So I have a text file with sets of 4 items I want to go in different arrays. I've tried the following but without success. <?php $urls="list.txt"; $page = join("",file("$urls")); $kw = explode("|", $page); $count = 0; $links = array(); $images = array(); $widths = array(); $heights = array(); for($i=0;$i<count($kw);$i++){ …

Member Avatar for Bachu
0
182
Member Avatar for TonyG_cyprus

For my project, these two queries don't work. The sqlite manual says to use 'qualified-table-name' but if I do (flist.fdata) an error is returned 'no such table'. As they are below no errors are returned, but the database table is not affected. if (isset ($_POST['del'])) { $id = $_POST['id']; $titl=$_POST['titl']; …

Member Avatar for TonyG_cyprus
0
207
Member Avatar for mtho

Hi guys. Im trying to write a php Read More script for my blog. What I want is to be able to render the first two paragraphs and then give a Read More link for the rest of the article. I've tried doing it myself and failed. If someone can …

Member Avatar for LastMitch
0
119
Member Avatar for holosoft

Hi, This is a part of my code..I'm making a Post form if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ print "<tr><th>Email1: </th> <td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td> </tr>"; print "SESS not set"; //////////////////for test } if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ $memberEmail = $_SESSION['SESS_MEMBER_ID']; print $memberEmail;/////////////////for test print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" …

Member Avatar for LastMitch
0
126
Member Avatar for geneh23

Hey everyone, Forgive me if this is a dumb question but I can't figure out why my data that I've typed in or selected in the form doesn't show when I actually send out an email once I click the submit button. I get an email stating the subject of …

Member Avatar for LastMitch
0
230
Member Avatar for nicoalmighty

please help me on my project on how do i make this upload music files also help me on making the upload path i don't know how to start. i really do need your help guys :( this the controller <?php if(!defined('BASEPATH')) exit('no direct script access allowed'); session_start(); //we need …

Member Avatar for LastMitch
0
263
Member Avatar for andyy121

$name = $_FILES['myfile'] ['name']; $tmp_name = $_FILES ['myfile'] ['tmp_name']; i wont to know why the variable $name, is begin with name can somebody explain me this variables and parameters.

Member Avatar for andyy121
0
150
Member Avatar for heshanm

Hi, I want to display current date and time in my system..Therefore i have created following coding. <?php $today= date("F j, Y, g:i a"); echo $today; ?> This generates time based on GMT..But i want to convert the time to our country's local time which is more than 05:30 hrs.How …

Member Avatar for heshanm
0
178
Member Avatar for shhh

` <? error_reporting(0); require_once ('settings.php'); include 'siteHeader.php'; include_once( 'adodb_connect.php' ); date_default_timezone_set("Asia/Manila"); function formatDateForTimeclock($timestamp) { if ($timestamp == "0000-00-00 00:00:00") return '<span id="open">Open</span>'; else return date("M j 'y - h:i:s A", strtotime($timestamp)); } function getDurationClockedIn($start, $stop) { if ($stop < $start) return ""; else return number_format( ( ( strtotime($stop) - strtotime($start) …

Member Avatar for diafol
0
190
Member Avatar for xxy2j

I created a file in php and under this i wrote a code to lock a table with read mode. Below that file i wrote a insert operation into the same table, but as we know that read lock only supports read operation, meaning you can only view what is …

Member Avatar for diafol
0
140
Member Avatar for johnef_sh

hay how is everybody here, I have this form which should sign up users and send email to them to confirm they emails the users sign up OK but the Email don't go at all to the users email see my code and please need help on this. <?php if(isset($_POST['submited'])) …

Member Avatar for johnef_sh
0
251
Member Avatar for asaidi

Hi i have an html output and send to the folder using ob_start and file_put_contents('xxx.html', ob_get_contents()); my problem is save automatically this file after converting to pdf using html2pdf is it possible to do that:auto save the html to pdf using html2pdf cheers

Member Avatar for asaidi
0
3K
Member Avatar for david.f.smith.351

Hope someone can help... Im no programmer and it will no doubt show in my questions... I have an iframe with the source of: email.php?ID=[email] The ID is passing an email address which will be different every time, I would like to use this variable as the address to submit …

Member Avatar for adam.adamski.96155
0
1K
Member Avatar for PhilEaton

Sorry, I am very new to AJAX, and I while there are tons of examples out there, it is hard for me to understand. If you could please help me out with my specific example I'd much appreciate it. The AJAX syntax is just very strange to me. Anyway, I …

Member Avatar for goldentuna
0
340
Member Avatar for SimonFrance

Hi, Can anyone develop alibaba clone website in PHP? something like www.superbscripts.com ? Features like them, We want work from scratch. Thanks. Best Regards, Simon France

Member Avatar for SimonFrance
0
106
Member Avatar for mheoxe

hi gud day please help me to my problem -(....i don't know how to create dailytimerecord system in php please please help me...our defense will be on Friday march,16...please help

Member Avatar for mhinerain
0
2K
Member Avatar for pawan768

Hi , I want to add a form , which will after any one like us on Facebook then on Google Plus, After likeing us on FB and G+ page automatically opend. How i can apply these validation and how i check wether any one like fb or G+ like.

Member Avatar for adam.adamski.96155
0
86
Member Avatar for new_developer

Hi there, Good day ! I have a question related to private variable in php class. I want to make check if someone accesses private variable, an exception is thrown says "this is private variable" and rest of the excecution of code didn't stop. <?php class myClass { public $str; …

Member Avatar for Bachu
0
169
Member Avatar for arcticM

if a user opens my website url (x.com) how can I prevent him from opening the same url (x.com) in another tab/window? (another browser is ok) my application is all ajax, so there are no different links, the content of the page just changes all the time, and I can't …

Member Avatar for adam.adamski.96155
1
110
Member Avatar for bradly.spicer

Hello, I'm posting again regarding as to why my php code won't process the delete.php Index.php: <div id="DeleteFile"> Delete A Script: <form action="delete.php"> </html> <? $path = "uploads/"; $handle = opendir($path); echo '<select>'; while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'>$file</option>"; } } echo …

Member Avatar for adam.adamski.96155
0
217
Member Avatar for opawix

if (@$_GET['action'] == "Save") if(@$_GET[idnum]==null || @$_GET[fname]==null || @$_GET[lname]==null||@$_GET[midin]==null||@$_GET[gender]==null||@$_GET[bdate]==null||@$_GET[course]==null||@$_GET[year]==null||@$_GET[address]==null||@$_GET[cnum]==null) { echo "<font size=5><center>Fill-Up First the Provided Information<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { @$result = mysql_query("insert into students (idnum,fname,lname,midin,gender,bdate,course,year,address,cnum) VALUES ('$_GET[idnum]','$_GET[fname]','$_GET[lname]','$_GET[midin]','$_GET[gender]','$_GET[bdate]','$_GET[course]','$_GET[year]','$_GET[address]', '$_GET[cnum]')"); if(mysql_error()) { echo "<font size=5><center>ID Number: $_GET[idnum]. Already Exist(it must be unique)<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { echo "<font …

Member Avatar for opawix
0
301
Member Avatar for louie540

Hey. I have a website that is user submitted which has a repot button and the Google crawler keeps spamming that button. I am aware of robots.txt but it seems that nothing is working to stop Google from clicking it. So instead, I'd like to assign the link an ID …

Member Avatar for Igal-Incapsula
0
305
Member Avatar for pore

Hey guys, I'm currently experimenting with WURFL; I tried to set up a WURFL File to track my own browser and later other devices and browsers. However, it is an example of the o'reilly book " Mobiles Web von Kopf bis Fuß" or English title Head First Mobile Web". Can …

Member Avatar for pritaeas
0
178
Member Avatar for GhuleVishal

I have installed php mysql and apache but when I run my php program browser ask me to download that file. but required output is not appear.

Member Avatar for broj1
0
161
Member Avatar for adeyombo

I integrated my website to an e-payment platform, and after processing the payment, it redirects to a page with a dynamic url that is like this: http://www.abcdef.com/paymentsuccess.php?TransactionReference=2012101020201015T&OrderID=61373444. and i have a page created as paymentsuccess.php. The question is this: what code snippet can I put inside this paymentsuccess.php to make …

Member Avatar for Bachu
0
202
Member Avatar for ratanji

i want to take the attendence of the students from database...if they once punch-in then i want to disable it upto clicking the punch-out button if browser 've been closed ! so how can i get it can pls anyone help me :) :))

Member Avatar for leviathan185
0
1K
Member Avatar for jordo76

hi guys i keep getting this error message 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration DATABASE_TEP_DB_ERROR and also at the end of the insulation i get this message any help please its doing my head in Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar for LastMitch
0
279

The End.