39,316 Topics

Member Avatar for
Member Avatar for Conielo

Hi, I can't solve this problem: I have a query which fetches the contents of the page meta tags from a database. It works fine when I have the query on page but when I turn it into a function (which is placed in my functions file) and call it …

Member Avatar for johny_d
0
176
Member Avatar for Leon1958

Hi guys, I need to change my static HTML page (i.e. [url]http://www.mypage.com[/url]) with a link (<a href="http://www.mypage.com/form.php"> to a page with dynamic link - if user's URL for my page is [url]http://www.mypage.com/?123456789[/url] this 9-digit number from URL should appear in the link to the form - [url]http://www.mypage.com/form.php?123456789[/url] Thanks in advance.

Member Avatar for metalix
0
139
Member Avatar for haboota

Hi, I having been playing with Pyxy Gallery and I really like it. However, it works in all browsers except Internet Explorer (I am using IE8, havent tried it in earlier versions). I contacted the developer, who unfortunately has no interest in the project anymore, and I was wondering if …

0
60
Member Avatar for niths

hi, i am new to php. i had a query about how to get the file name and file size of the uploaded file. so that i can display it in a table. thank u.

Member Avatar for metalix
0
82
Member Avatar for phpDave

HI, I am trying to insert the current date into mysql when a user submits their info. I cant use timestamp for this one. I am using datetime. It works when a user updates but not for creating. I get all 0's in the date column. Here is the code …

Member Avatar for phpDave
0
89
Member Avatar for baseballfury

Hi there, I'm trying to compare 2 arrays at the moment. There are 2 tables, the first (Category) holds a list of categories, e.g. Electricians, Plumbers, Builders and each has an ID number. The second table (Company) is a list of companies e.g. JonTheElectrician, GaryThePlumber and of course BobTheBuilder. Each …

Member Avatar for baseballfury
0
170
Member Avatar for sting23

Hi I'm currently creating a basic math tutor for kindergartners and i'm using dreamweaver 8 as my text editor with PHP and MySql. One of my modules involves lessons in which i would want to put addition and subtraction and i have created a flash documents to demonstrate(addition and subtraction) …

Member Avatar for HITMANOF44th
0
57
Member Avatar for hoaxvn

I have a question: Supposing that I am browsing a web page on my nokia (or some one else) mobile, In the Page, there is a HyperLink like "[B]Send 0109210[/B]" to win a prize, if I click on the HyperLink, the my phone will send a message to the [B]0109210 …

Member Avatar for wsdlab
0
104
Member Avatar for python08

Hi all, I've looked through this forum for some hours and am absolutely unable to fix my problem; no matter what I do. I'm trying to pass a PHP variable as part of a MYSQL query like so: [CODE] $id = $_GET["bodyid"]; $blog = getEntries("SELECT `Articlebody` FROM `Blog` WHERE id …

Member Avatar for warren88
0
164
Member Avatar for phpDave

Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it …

Member Avatar for vitana
0
204
Member Avatar for suri mariabell

How can I assign a user can only login to a web application via a particular valid client PC? If I have 20 clients, I want to restrict the PC no.1 for a user A to login, PC no.2 for a user B login and they cannot login to other …

Member Avatar for vitana
0
74
Member Avatar for mk1200

Hey guys, I'm sure this has been done before, but I haven't found the snippet yet. I think I have to use preg_match_all. Here's my very simple stopping point: [CODE]$content = $obj->introtext; $xml .= "<ImageUrl><![CDATA[$content]]></ImageUrl>";[/CODE] Here are two examples of the introtext table data: [QUOTE]<p><span style="font-size: 10pt;"><img src="images/stories/D-West.jpg" alt="D-West" style="margin: …

Member Avatar for mk1200
0
1K
Member Avatar for niths

hi, i am new to php. i had a problem with insertion. when i upload a file i should get the filename,uploadedby,uploadeddate,and size of the file in a table. first of all i am not getting inserted in the database itself. so can any one help me ..... --------upload.php-------- [CODE]<html> …

Member Avatar for JRM
0
108
Member Avatar for sallycheng

It cannot display the value of the checkbox,please tell me what wrong of it! Thak you [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c /> <title>Untitled Document</title> </head> <body> <?php if(isset($_POST["Sumbit"])) { $fruit=isset($_POST["apple"]) ? $_POST["apple"]:""; if(isset($_POST["bananan"])) { if(!empty($fruit)) $fruit.=", "; $fruit.=$_POST["bananan"]; } if(isset($_POST["orange"])) …

Member Avatar for sourcebits
0
264
Member Avatar for arunajasmine

Hi, I am using the Content SUbmit component of Joomla 1.5 . In my site i am having a main menu with tabs Home,About forum,Blog Where blog is linked to a section -- IFsection In that blog home page i have a sub menu with a Create a post linked …

Member Avatar for cwarn23
0
83
Member Avatar for niths

[QUOTE]hi, i am new to php. i want to get the uploaded filename,uploadedby,date, and size of the file. dont know how to get the name of the file and size. so please any one.... [/QUOTE] [CODE]<html> <body> <form enctype="multipart/form-data" action="upload2.php" method="POST"> <table> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> </table> <table> <br><br> <tr> …

Member Avatar for prem2
0
286
Member Avatar for kunyomi

Hi all, I have a database with contact info, and I need to display the info in groups. Currently in my database table called contacts I have a field called 'groups'. The values are 'favorites', 'home', 'work', and 'friends'. I tried creating a page called group.php and used a dropdown …

Member Avatar for kunyomi
0
371
Member Avatar for tkdgrt

Hi guys. I have to create a academic management system as a study project in PHP. I have very little knowledge of PHP and am really confused. Can anyone guide me in this project. Also I need to how would be the documents to create for this project and out …

Member Avatar for rajarajan2017
0
43
Member Avatar for mintballmaniac

Hello all. First post from a PHP newbie. I'm trying to teach myself how to retrieve data from my MySQL databse and have so far managed to get the text retrieval to work. What I'd now like to do, is to get my PHP page to retrieve an image, specifically …

Member Avatar for mintballmaniac
0
85
Member Avatar for CoolAtt

hi all, i want to use curl to automatically login on behalf of a user & get the SessionID for that user. i will configure php to store the sessionID in the url instead in a cookie on the user's browser. once curl has login on behalf of the user, …

Member Avatar for cwarn23
0
103
Member Avatar for sallycheng

It cannot display correct id no of student. Would you mind tell me what wrog of it. Thank you very much! [ICODE] <?php require_once('Connections/connection.php'); ?> <?php $colname_Recordset1 = "-1"; if (isset($_GET['eca_id'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['eca_id'] : addslashes($_GET['eca_id']); } mysql_select_db($database_connection, $connection); $query_Recordset1 = sprintf("SELECT * FROM eca,student_info WHERE eca_id …

Member Avatar for cwarn23
0
109
Member Avatar for hisabness

I am using PHP to create and index of the files contained in a directory. I then echo the files by including the index function in another php script. How can I change where the PHP shows up? It currently shows up at the top of the page but I …

Member Avatar for hisabness
0
1K
Member Avatar for kunyomi

Hi guys, I'm trying to UPDATE the image that has been already in the database with another image using a form in PHP. I got the uploading working all fine already. Just the edit part. With this code, I get no error, but the MySQL table is not written with …

0
371
Member Avatar for kunyomi

Hey guys, I've just started coding php, for a school project. I'm creating a member login system with functions to add/edit contacts. Currently I'm stuck at updating the contacts. I'm able to pull up data into a form in a page called 'edit.php', but after updating and clicking submit, it …

Member Avatar for kunyomi
1
456
Member Avatar for z_jun

Hi, I'm having problems with the update function in Sybase. I printed out the query and copied and pasted it into Sybase database and it worked. But, when I run it from the website, the code does not update the info in my database. Why is that so? Is there …

0
52
Member Avatar for lll_ari_lll

Hi, i am facing problem in log out section, which redirects to the file logout.php. where after unset-ing and destroying the session, it redirects to index page again, but when i type the following page address which should be seen only when an user is logged in, shows.. can anybody …

Member Avatar for lll_ari_lll
0
125
Member Avatar for gsanluis

My knowledge on web designing is kindly novice and i'm having issue redirecting my site using GoDaddy control panel. Installed the latest phpBB to my root domain and working perfect, i need to redirect that forum to my domain. I have check GoDaddy control panel under Content but i don't …

Member Avatar for cwarn23
0
101
Member Avatar for pmarcusss

Hello! I wrote simple script which gets referer header (if sent) and looks for google keywords (and then highlight them). All works fine, when I have JavaScript turned OFF for Google (NoScript), otherwise there's always "http://google.com" in referer because of hashmark used to handle 'old' GET vars. Is there any …

Member Avatar for cwarn23
0
126
Member Avatar for Encrypted

I've been scratching my head for a bit now and I can't think of a way to make a mysql_query pull a set of data that matches a number in an array. It's easier to explain what I want to do with code.. so here goes.. Then I need my …

Member Avatar for Encrypted
0
127
Member Avatar for Phil++

Hey, I'm trying to implement an email system.. I'm just wondering whether it's possible that when the user registers it creates an email address like: username @ mydomain.com If you understand? Thanks for any help :)

Member Avatar for cwarn23
0
94

The End.