39,326 Topics

Member Avatar for
Member Avatar for nelamurugan

Hi, Am new to here, and i cam here with problem that can be easily solved by you guys, Please help me out. I have got sqlite3 db dump as dbname.db3, So then i tried to connect this sqllite from php. Here is my sample code which i got it …

0
85
Member Avatar for newbiecoder

Hello I am trying to write a form that checks user mail address by existence of "@" character. I wrote these codes below but when I enter information at the html file I get this warning: Notice: Use of undefined constant mail - assumed 'mail' in C:\xampp\test\send_simpleform.php on line 2 …

Member Avatar for newbiecoder
0
145
Member Avatar for vijiglad

[CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Validate Image</TITLE> <META NAME="Author" CONTENT="Bit Repository"> <META NAME="Keywords" CONTENT="validate, extensions, file, javascript"> <META NAME="Description" CONTENT="A JavaScript Extension Validator for Images"> <SCRIPT LANGUAGE="JavaScript"> <!-- function validate() { var extensions = new Array("jpg","jpeg","gif","png","bmp"); var image_file = document.form.image_file.value; var image_length = document.form.image_file.value.length; var pos …

Member Avatar for vijiglad
-1
2K
Member Avatar for oree

my problem is when i compose an email in html i get mail@127.0.0.1 as a sender. if i take off the HTML format then everything is ok. Here is the headers: [CODE]$headers = " From: mywebsite.ca" . "\n" . "Replay-To: Do Not Replay". "\n" . "X-Mailer: PHP/" . phpversion(); $headers …

Member Avatar for oree
0
150
Member Avatar for ruchit

Warning: filesize() [function.filesize]: stat failed for 1.jpg wht is wrong wth this code for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files print("<tr><td><a href='./pics/$dirArray[$index]'>$dirArray[$index]</a></td>"); print("<td>"); print(findexts($dirArray[$index])); print("</td>"); print("<td>"); print(filesize($dirArray[$index])); print("</td>"); print("</tr>\n"); } }

Member Avatar for smantscheff
0
73
Member Avatar for Akay2

I need some help. I want to make a secure loginsystem and here is my script for the system that checks how many times you tried to login ($try). db.php is the script for connecting with my database. The system isn't in connecton with the loginsystem it is only the …

Member Avatar for Akay2
0
98
Member Avatar for tcollins412

i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more …

Member Avatar for tcollins412
0
244
Member Avatar for raghujosh

I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my …

Member Avatar for raghujosh
0
1K
Member Avatar for gazzy1

i want to create a login page in php that use the login id and password from my mysql database table as i want the user id 001 and password 001 go to the page 01.php after successful login. and user id 002 and password 002 go to the 02.php …

Member Avatar for smantscheff
0
84
Member Avatar for BleepyE

I have a list of say 15 images. How can I make it so that in each page refresh they all change to a random position? Thanks

Member Avatar for BleepyE
0
122
Member Avatar for wali mohammad
Member Avatar for jakizak
-3
190
Member Avatar for xxreenaxx1

I have created a checkbox using while loop and posting this to another page but I am not sure on how to add these ticked check box as 1 and non ticked one as 0 to the database. Can someone help me? <form action="Test_Completed.php" method="post"> include '../Database/take_an_exam.php'; $intNumber = 1; …

Member Avatar for qazplm114477
0
411
Member Avatar for anirban1087

Hi, I am working on a Inventory management system. No I would like to have a [B]custom bill no, which will be changed on each month[/B], i.e. the first bill of March, 2011 will have a no like "[B]Mar/2011/01[/B]", the next will be "[B]Mar/2011/02[/B]" and so on, until it is …

Member Avatar for anirban1087
0
125
Member Avatar for mindmyweb

Ok i have a problem i cant solve I have 2 images image one saved in location x and has name x1 image two is saved in location y and has name y1 Now i want a script that picks up image y1 and replaces x1 with y1 using changeing …

Member Avatar for mindmyweb
0
255
Member Avatar for Joe34

How can I get some part of $B to be only [B]auto[/B](The first word in $A[1])? [CODE] if(preg_match('/^(.*)">(.*)/',$A[1],$B) == 1) { die($B[1]); } [/CODE] $A[1] is.... [B]auto[/B]">auto</a>, <a href="automobile">automobile</a>, <a href="motorcar">motorcar</a>, <a href="machine">machine</a></div><div class=Rel><a hr .................................... /tr><tr><td><a href="zw

Member Avatar for smantscheff
0
163
Member Avatar for art_wired

Hello, I have a client who is a graphic designer and they want to know if it's possible with Joomla! to create a splash page with options to click and visit different versions of the website from the initial splash page? Would I host the four websites creating 4 different …

Member Avatar for smantscheff
0
138
Member Avatar for anirban1087

Hi, I am working on a PHP page where I have 5 rate, 5 qty and 5 amount fields. When I am define all the fields manually, i.e. defining each field with a separate filed name, field id then it is working. But when I have used a loop to …

Member Avatar for anirban1087
0
111
Member Avatar for ayesha789

Dear All I have 2 Pages smtpAuth.php contents.php When I use this code [CODE]$body = file_get_contents('contents.php'); $body = eregi_replace("[\]",'',$body);[/CODE] It cannot show PHP variables values in Send email. Content.php file attached as contentsphpfile Whole HTML working fine but PHP DataBase values are not showing in Email.

Member Avatar for urtrivedi
0
184
Member Avatar for xuexue

hi guys, this is the scenario, i have two textboxes, then a submit button. now, when the user clicks the submit button, it will verify if both textboxes have values, otherwise, if only one of them is empty, an alert box will be displayed prompting the user to complete the …

Member Avatar for happytogether
0
186
Member Avatar for aditi mishra
Member Avatar for Krstevski

Hello friends, I try to rewrite links with htaccess, but the server does not change the links. I want, e.g.. the link [url]www.example.com/index.php?option=com_content&view=section&id=7&Itemid=54[/url] To be: [url]www.example.com/cat/7/Item_54[/url] (Or something similar). My .htaccess file is: [CODE] ## # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $ # @package Joomla # @copyright Copyright …

Member Avatar for g1smd
0
461
Member Avatar for Violet_82

Hi there, today I have written my first PHP script (and it even works, how cool!) and I have few questions. Here's the script [CODE]<?php $to = "myemail@myemail.com"; $subject = "Comments on page"; $message = $_POST["comments"]; mail($to,$subject,$message); echo "Thank you for sending your feedback. That will help me improve the …

Member Avatar for Violet_82
0
183
Member Avatar for FtKShadow

Hi I am working on a contact us form. I got the form working correctly, but when it validates it puts the error on a new page. How can I have the error message show on the form page? HTML Code: [code]<form action="contact.php" method="post" id="contactform"> <ol> <li> <label for="name">Full Name …

Member Avatar for diafol
0
182
Member Avatar for eoop.org

Hi, i am making a search engine in php and i just get a warning that i cant understand: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eoopoedt/public_html/sok/search.php on line 27 See it your self: [url]http://eoop.org/sok/[/url] My code: [CODE]<?php $button = $_GET['submit']; $search = $_GET['search']; if …

Member Avatar for jtreminio
0
122
Member Avatar for stefh

Hi every one! :) Based on the example of StyledTextCtrl of the wxPython demo i managed to write a small application intended to Php code writing. Does anyone know how to set styles for Php codes? I found it's necessary to use SetLexer(stc.STC_LEX_HTML) because STC_LEX_PHP is deprecated. But i have …

Member Avatar for stefh
0
436
Member Avatar for fka

My array $pids contains integers. For example: 18742 59274 94255 97124 18742 94255 94255 I wrote: [CODE]$pid = array_unique($pids); for($i=0; $i<count($pid); $i++) echo $i.' '.$pid[$i].'<br />';[/CODE] And the output is: 0 18742 1 2 3 What's wrong? Why array_unique() doesn't throw away duplicated values?

Member Avatar for smantscheff
0
99
Member Avatar for EricIskhakov

Hey. i'm uploading a file to my server via php and the file name is en email (x@x.com) and after the upload the files saves as x_x.com anyone knows why? is it something in the php.ini or maybe its a code thing? Thanks in advance.

Member Avatar for EricIskhakov
0
104
Member Avatar for nonshatter

Howdy, I have a basic html file containing certain data I need to extract. This is the code for just one of the tables on the page: [CODE]<TABLE title="Left Magazine"class="dataTable" align="center" cellspacing="0" cellpadding="0"> <caption>Media Details</caption><THEAD><TR class="captionRow"><TH>Slot #</TH><TH>Attn</TH><TH>Status</TH><TH>In Drive</TH><TH>Label</TH><TH>Media Loads</TH><TH>Comment</TH></TR></THEAD> <TBODY> <TR class="altRowColor" > <TD>1 </TD> <TD>&nbsp;</TD><TD>Full, Gen. 3 </TD> <TD>&nbsp;</TD> …

Member Avatar for Ezzaral
0
207
Member Avatar for kidinbed

I'm trying to create a back end for a food truck whose menu constantly changes. I want to make a form that can update text on another page. I'm new to PHP. I think I need a way for the form to update html. So far I have the form …

Member Avatar for kidinbed
0
275
Member Avatar for nimchip

Hi I'm trying to design something from the ground up, using several php sources as inspirations (as indicated by the TPL suffixes). I can't get it to work so please if you could indicate what I'm doing wrong here: [CODE]<?php if (!isset($_GET['page'])) { $page = "news.php"; include ($page); } else …

Member Avatar for nimchip
0
115

The End.