39,320 Topics

Member Avatar for
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
121
Member Avatar for wali mohammad
Member Avatar for jakizak
-3
188
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
409
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
460
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
182
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
181
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
434
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
270
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
114
Member Avatar for Aser Gado

Hello again :D Now that I have my member's profile, how can I let other members post comments/messages on his profile? Thanks,

Member Avatar for stefh
0
110
Member Avatar for veledrom

Hi, I use an example to explain what I mean. Logo of Google is an image. Is tere any way of reading that logo and print Google on the screen? Thansk in advance [CODE]$content = processImage("google.png"); $textInsideLogo = extractText($content); echo $textInsideLogo; //This should print [[B]Google[/B]][/CODE]

Member Avatar for smantscheff
0
45
Member Avatar for jacob21

Hello friends, I want to know how to open a pdf file in PHP when a user clicks on that pdf link. Like [B][U]Rules pdf [/U][/B]when a user click that link,in the next tab pdf file of rules will open Thanks

Member Avatar for smantscheff
0
123
Member Avatar for abhi10kumar

How I can write down a code which uses two Two AJAX-es in combo-boxes? For [B]Country[/B], when user clicks Country combo-box, [B]State Combo-box[/B] will fetch with respective Country, and if when user clicks [B]State combo-box[/B], [B]cities Combo-box[/B] will fetch with respective State. All data will came from database. I successfully …

Member Avatar for happytogether
0
196
Member Avatar for Layerphp

Hi i have developed a photo gallery in php and now i want to add comment section to those photos in the gallery.Actually i have table to store the comments regarding the particular image.I'm able to retrive the recent comments for the image,but the problem here is i'm not getting …

Member Avatar for pritaeas
0
154
Member Avatar for thijscream

when i try to update my table i get the following error: Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Beste witte wijnmaker van de wereld' door het toonaangevende Engelse Wine …

Member Avatar for happytogether
0
109
Member Avatar for redous

Hi, i have just transfered to a different host and there servers use CGI Scripts to parse the php code, however the last host didnt and on uploading my site to the new server it is displaying all my code as text after i use include('includes/header.php'); Any help in this …

Member Avatar for smantscheff
0
112
Member Avatar for bsgf

The End.