39,402 Topics
![]() | |
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 … | |
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 :) | |
Hi, I am having problems with the passing of a variable to the next page. I want to pass the $title so that I can use it in the changejob.php page. The following is my code:- [CODE]<td> <a href="changejob.php?id = "<?php $title; ?>""><?php echo $title; ?></td>[/CODE] Please help me. Thanks. | |
hi, i am using the following code to retrieve information for todays date: [CODE]<?php $query = "select * from CUSTOMER where DATE (date) = DATE(NOW())"; $result = @mysql_query($query, $connection) or die ("Unable to perform query.<br />$query<br/>"); $num_rows = mysql_num_rows($result); echo "$num_rows"; ?>[/CODE] i cant seem to find any code to … | |
Display Div tags after 4 results not from database [CODE] $a = 0; while(){ if($a == 4){<div class="result"><p>}//Display after 4 results $results .=''.$result.''; if($a == 4){</p></div>}//Display after 4 results $a++; } example: <div class="result"><p> result 1 result 2 result 3 result 4 </p></div> <div class="result"><p> result 5 result 6 result … | |
i have this weird problem and i dont know how to make it work. the problem appears after i consider the OR statement.without or statement the first part is working . So idont how to use this statement in mysql. i hope someone can help me. Down is my script. … | |
My code I'm working on has a table db the data is 4.5 I wanted it to be 4.50 any help would be great. here's my code: [code] <?php $con = mysql_connect("localhost", "root", ""); if(!$con) //If we can't connect then stop trying and say so { die("Could not connect to … | |
i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not … | |
Hi, I'm trying to insert data from a form into a Database. I can send static information to the database, but as soon as I write "'$_POST[gname_$i]'" I get an error. The error message is: [B]Parse error:[/B] syntax error, unexpected T_VARIABLE, expecting ']' in ... on line 5. I don't … | |
Hello everyone, well I'm having some problems changing line every time my PHP code writes something to a file. Right now, it's writing the time of everyone, who visits my website, then it adds a comma and his ready to write the time of another person that visits the website. … | |
Hi there, I am building a blog at the moment i have a amazing script that search a post for the images in it. So i can just setup a post template, call the images that are in the post and go. In this way i put the images unedited … | |
New to Mod_Rewrite and have some of the basic fundamentals down, but am stuck right now and need a bit o' help from someone who's experienced. Right now I have a .htaccess page that replaces "index.php?page=pagehere" with "pagehere.php". Well, I want to put another GET variable on the end of … | |
Hello, I am new to PHP language, but not to programming or Regular expressions. I am using [code]preg_match_all ($pattern, $file, $matches)[/code] in my code, where $pattern contains two groups of capturing parentheses. I understand that each element of $matches[1] is an element captured by the first group of parentheses, and … | |
hi all I have CMS system with Mysql storage. in this system there are options to add news title, news subject, news theme and image upload features. i would like to add PHP bbcode options to the theme section of this code. for ex i need to write smth bold … | |
Yes I know you are not able to refresh in php, but insert meta tags into an echo statement that can refresh, or use javascript, etc. The problem is I have tried all these solutions and it still does not work. :( So I will tell you my problem and … | |
Hi, I have made an encryption and decryption script for those who want to encode data and decode the encoded data. This script may especially be useful for those who do not have the mbstring library installed as it uses a math grid. So for example you can store the … | |
I am trying to use the pc as a recognition service I want to take the calls (the number of the caller) and use it to an html form I really need the part that i take the phone number of the caller and pass it to a form then … | |
Hi, I have a search form that picks users of class name of course name. Now I have a problem viewing data in categorization from mysql database with php. For Example I need the following: Course Name: Name Class Name: Name 1. Name Surname(User) 2. Name Surname(User) 3. Name Surname(User) … | |
If your PHP scripts do not show the correct time, the reason is that most probably your hosting server is in a different timezone. This can be easily resolved by changing a setting in PHP called date.timezone. Depending on your location you can set a specific date.timezone value in PHP … | |
Hi all, I am new to php. i need file upload and download codes with comments. so please anyone..... | |
Hi, I am looking for the algorthim for converting rgb to hsv values. Does anyone know of any program or algorithm in php?? thanks in advance, tris | |
Hi All, Anybody who have good recommendations for howto guide on how to write plugins from A to Z. I will start programming plugins for a number of sites. Many thanks. /Kraver | |
Hello and Thanks, I am trying to create a teacher grade book for my school, I have a mysql database 'gradebook' and two tables 'students' and 'data' (mysql code below) to start, I am also using PHP. I have googled this to death and can't seem to come up with … | |
Hi there, I've created a page that uses 2 seperate functions for passing variables. The first runs when the page loads and requests categories from a database to fill a dropdown box. The second function sends a date value and the contents of the select from the dropdown box to … | |
Hello, I am a web developer who is having tremendous trouble with my Dynaform form. :( I have created a form found off my web design business website: [URL=http://www.focusonedesign.ca/form.htm]www.focusonedesign.ca/form.htm[/URL] and three things needs to happen, but during the php process I receive errors. To see the error which I am … | |
Hello I need to do search through a mysql db on a column and search how many values are equal to a number and than post the number of the values that are equal to this. I would like the number of the values to be saved into a php … | |
hi there I'm new to php but im trying to replace items on page with a certain id with a image or anything i want. So i have this code on the page [vimeo 123456] [vimeo 345675] my php goes off to vimeo to get the correct image based on … | |
hello all, suppose i have an a site where i am selling a webform .how do i set it up so that when someone pays they immediately receive a downoad link either to their email box or get directed to a link thnx in advance......... | |
Hey Experts, Please Help me.. i am facing this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\tf\process.php on [B]line 22[/B] [CODE] for($b=1;$b<$_POST['studentcount'];$b++) { $c='sname' . $b; $ql="INSERT INTO stud (name) VALUES ('$_POST['sname1'])"; /*line 22*/ mysql_query($ql); } [/CODE] Please do checkwhats wrong with this, Regards, Vigas … | |
Hi, I have a counter and it works fine in firefox, but when I try to bring up the page to be counted in internet explorer in does not work. The page wont even be brought up in the browser. If I disconnect the include file to the counter it … | |
I have an email form on my site which has an action to a php page. The php page detects whether the user has entered a name and email, if they haven't it directs them back, if they have it sends an email to me. I want to add a … ![]() | |
What is the server program that is usually used to php? Is it apache? If so how to deploy php applications to apache? I installed apache and try to look at their documentations. This seems a mammoth task to wade through this massive collections of documentations. What are the relevant … | |
so my PHP is operational. The script I want to run is here: [CODE] <div style=""> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td align=center><script language="JavaScript1.2"> /* Left-Right image slideshow Script- By Dynamic Drive (www.dynamicdrive.com) For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com */ ///////configure the below … | |
Hello everyone, I'm not sure the title fits my question, but I didn't know how to word it correctly. Here is my question. I'm working on a forum that pulls data from a SQL database via PHP. It's data on employee data (name, job title, what programs they have access … | |
Ok so i have a template script my friend built for me. I'll include all file names OK so what is not working is file_get_contents is not grabing the content (1 I don't know where the content should be placed and 2 i want it placed in a directory so … | |
i want the user to enter the name in the query and only after entering the name the next input text appears. Unfortunately it doesnt work the way i want it to. here is the code [code] <?php // formtest2.php $flag = 0; if (isset($_POST['name'])) { $name = $_POST['name']; $flag … | |
Hello Everyone, We have a website driven by Zen Cart. There is a serious issue, which we find it extremely difficult to resolve. The issue is - We have a Registration Page. It has so many mandatory fields, like Telephone No. and Date of Birth. But users are able to … | |
Hey people, I don'r know much about PHP so I think you can help me on this one. I have a email form and the action says: [CODE]<form id="contato" method="post" action="[COLOR="Red"]contact.php[/COLOR]">[/CODE] The php is placed as follows: [CODE]<?php $to = "conde.taly@gmail.com"; $subject = "Site Contact" ; $email = $_REQUEST['email'] ; … ![]() | |
i have a comment system of which member can insert smileys which commenting to something )))that works well...Now i want the smileys to be desplayed in a small popup window like the one i have attached in screenshot..and dont know how to make it possible... i just believe that it … | |
1). Well I am using a PhpBB forum.... Everything is working fine but I have a little question that where should I paste the php META TAG refresh code so that its not annoying for users!!! 2). My second question is that "is there any advantage of META TAG refresh … | |
hi i want to know that how can i search the entire database at once.... i have code with which i can only search from a single table but i want that search should be performed on entire database.... i m using php+mysql....... help me out... | |
Hello, I am really sorry for posting this here but I couldn't find anything simular to the net. I need to insert datetime values into my mysql db and in particular the current time second and minute value and than I want to call this value and do a $current_time-$mysql_time … | |
Hi! Does anybody know of a [U]script capable to read feeds and store them in static files[/U]? Also, if possible, to [U]create an index of these files, too, so visitors on the website can find them easily by date or name,[/U] for example? What I'm trying to do is to … | |
I want to upload videos from my site into youtube. I worked on examples provided in oogle but i got strucked by auythentication process where it is saying invalid parameters in youtube page. Can anyone solve this problem. | |
I've been trying to create a specialised CMS, as none of the current open-source ones fit my needs for this project. I'm trying to create a CMS for a TV/episode guide which is similar to this: [url]http://library.digiguide.com/lib/programmenextshowing/Police%2C+Camera%2C+Action!-12578[/url] (one such example) - where records expire and delete from the database after … | |
I'd like to display the contents of some fields in a MySql table as a table on a webpage. I found sample scripts, but I'm doing something wrong in trying to adapt them. Can anyone give me a link to a webpage that displays a table like this, so I … | |
Hi All I have my URLs without cleanup [url]http://10.0.0.76/project/mydashboard.php?section=12§ion_childs=1[/url] [url]http://10.0.0.76/project/some_x_page.php?section=12§ion_childs=1[/url] OR [url]http://www.myprojects.com/mydashboard.php?section=12§ion_childs=1[/url] [url]http://www.myprojects.com/some_x_page.php?section=12§ion_childs=1[/url] How can I get my URL like below [url]http://10.0.0.76/project/mydashboard/section/12/section_childs/1[/url] [url]http://10.0.0.76/project/some_x_page/section/12/section_childs/1[/url] OR [url]http://www.myprojects.com/mydashboard/section/12/section_childs/1[/url] [url]http://www.myprojects.com/some_x_page/section/12/section_childs/1[/url] I know we can do it with .htaccess, but i don't know how to write, can any one please help me to implement this. | |
OK I'm not really sure how to put it but I will try my best to explain my question. Basically I am really lost when it comes to arrays and for loops, so I need help badly. I have in my HTML Form about 20 checkboxes like this: [CODE]echo "<input … | |
HI all, I am using a php Code for Image hosting script and having this kind of error continuously..... "Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83" Line Number 83 contains this "if (move_uploaded_file($_FILES['file']['tmp_name'],$filedir."/".$newname))" Help me plz how to get out of this trouble...... … | |
Hi, I have one page session-bom.php, in which computer parts are availlable for shopping. e.g. mouse , keyboard ect. with the checkbox. and textboxes to enter quantity and label of prices. When user hits 'submit' button, only selected parts goes to the bill.php page and showing their price multiplied by … |
The End.