39,323 Topics

Member Avatar for
Member Avatar for redgie44

Ok I am currently learning php through wordpress and I have a small project to create a running website which displays the results. CUrrently I can display the results for a certain race that I hard code: [code] <?php // Connects to your Database mysql_connect("XX.XX.XX.XX", "admin", "pwd") or die(mysql_error()); mysql_select_db("db") …

Member Avatar for redgie44
0
155
Member Avatar for pepon

Hi all I have developed a newsletter for my client created dynamicly with PHP and MySQL. Everything was ok since I need to send the newssletter to the unclosed recipients. The problem is that I need elaborate the message with the newsletter inside (CSS,photos,etc) because the archive that contains the …

Member Avatar for Prithwirajsaha8
0
114
Member Avatar for aarya

i want to send the newsletter to all those who subscribe to my website. i ahve a templetae with table navigation ,site logo,some images. i wnat to send news letter with all this . i create the html file . can i do thsi code to send [QUOTE]<?INCLUDE 'd.php'; $title=$_GET['title']; …

Member Avatar for Prithwirajsaha8
0
177
Member Avatar for cosminx2003

Hello, I'm trying to simulate some sort of multi-threading processes (if it can be called like that) for a PHP application. The approach would be to run a main php file, in which are made some verifications (in the DB) and set a $_SESSION variable. Now other actions should be …

Member Avatar for SKANK!!!!!
0
61
Member Avatar for mrjoli021

how can i echo this code. when i echo it it prints out the html tags and <? php code ?> i want to echo the html code and interpret the php as php. [code] echo "<h2>Add Contact</h2> <form name=\"form1\" action=\"<?=$_SERVER['PHP_SELF'];?>?mode=added\" method=\"post\"> <table class=\"tableStyleClassTwo\"> <tr><td>Name:</td><td><div align=\"left\"> <input type=\"text\" name=\"name\" /> …

Member Avatar for SKANK!!!!!
0
203
Member Avatar for andydeans

Hi, I am trying to insert into 2 tables at once. The first table i have a hidden field InsuranceID and that gets an auto increment from mysql database. In my other hidden fields i am inserting into table 2 which has a hidden value of ProductID This is set …

Member Avatar for nav33n
0
69
Member Avatar for nonshatter

Hey everyone. I'm having some trouble returning the correct number of matched results after a search query is issued to my site's search bar. I was using this, but it returns the wrong number of matches (only for certain queries): [CODE] $countofrecs = mysql_query("SELECT count(*) from tablename WHERE title OR …

Member Avatar for urtrivedi
0
59
Member Avatar for damnpoet

Hi, I trying to create some dirs like this: [CODE]@mkdir("photos/$cat/$sku", 0777, true)[/CODE] it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard.

Member Avatar for nith
0
70
Member Avatar for futhonguy

Hi i am trying to display on the web browser to allow user to see information before the latest data is been updated. Hence, it will show: [B](1)previous existing data, (2)latest data and (3)data which is not found on the latest data list[/B]. To make things clear to solve the …

Member Avatar for futhonguy
0
143
Member Avatar for dreamerscove

Hiya! Nice place you have here :) I would like to set up sms text jokes for my website. I hope I'm asking the right thing?! I want members to be able to send text jokes to their friends. Nirvana would be if they could send text, pics/video, and mp3. …

Member Avatar for Forged
0
80
Member Avatar for mikeandike22

Hello I am developing a module / script that gets information stored about user nodes in the drupal database and sends it to our Salesforce lead generation form. So I am pretty new to this and have a couple of questions that I think the community might be able to …

Member Avatar for mikeandike22
0
80
Member Avatar for hireaprogrammer

Hello, Just need quick help in PHP + SQL SERVER 2005 DB CONNECTION ...i having problem while connection SQL SERVER 2005 WITH PHP APPLICATION WHICH WORKING PERFECTLY IN LOCALHOST AT MY PC BUT IT NOW NOT WORKING ON THE SERVER SO DON'T KNOW WHATS WRONG ? I THINK ANY SERVER …

0
84
Member Avatar for psank

Hello, I am trying to generate pdf on the fly in through php using TCPDF package. My table contains 70 columns, which i need to write into pdf. Only some 5-8 columns are writeen into pdf and rest of the data is cut as the width of the pdf page …

Member Avatar for psank
0
78
Member Avatar for daryll1

Hi I'm writing a piece of code to update a users password when they have forgotten it, but, for some reason I cannot seem to get it to work. It is always echoing out that the secret answer is wrong. It's probably something stupid that I have looked over, if …

0
81
Member Avatar for 4789787

I have this game and it either takes REALLY long to load a page, or sometimes it loads in a second, and half the time you get a 500 internal server error. What would cause this iradic behavior of loading really well sometimes and giving an error other times, or …

Member Avatar for whiteyoh
0
45
Member Avatar for tapuwa2002

Please help, I have designed a form, that contains an upload button. The form can only take file upto the size of 1mb. Every time I press the submitbutton I get: [B]Notice: Undefined index: myfile in F:\wamp\www\Site\CRUD\Upload\insertscript.php on line 9 Invalid file type [/B] this is my form and below …

Member Avatar for whiteyoh
0
1K
Member Avatar for freezman

Hello, im from Norway and doing a job i php. I was wondering if you could help me. Im makeing a script for a tender web site. The web site will contain as following: Home Register Tender Register Company Contact When i register a tender i must fill out information …

Member Avatar for rokape
0
85
Member Avatar for Szabi Zsoldos

Hey guys, I know that the query is not good, but i CANT see the problem. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\XAMPP\xampp\htdocs\betania\modify.php on line 8 Could you please help me out? [CODE] <?php include "connection.php"; if(!isset($_POST[submit])) { $q = mysql_query("SELECT * FROM inscrieri WHERE …

Member Avatar for Szabi Zsoldos
0
143
Member Avatar for RichmondJim

I'd like to create a simple PHP form that will allow my website user to make a payment on their account with us using PayPal. I'd like them to enter their name, email address, account number, and the amount they'd like to pay. I would then like to pass this …

Member Avatar for RichmondJim
0
151
Member Avatar for P0lT10n

Hello, my name is Matias (Mathew for english people) and I am 16 years old. And I am from Argentina !!! I joined this Community because I know a lot of things that I can share here of simply respond... I am a student from an idustrial school call Huergo …

Member Avatar for MikeVera
0
203
Member Avatar for cloud09

I am wondering if it as good idea to set up a website that has only one actual page, but includes different pieces depending on $_GET variables. What are the pros and cons of setting up website this way? Would it be a better idea to have multiple physical pages …

Member Avatar for rokape
0
79
Member Avatar for canterorist

hi! i have problem with my class. if i require the class to my index page and their is get method. Something syntax error with my page. what other ways to correct this error?

Member Avatar for rokape
-1
59
Member Avatar for arunajasmine

Hi, how to write the MYSQL Query select count(*) from (SELECT user_id FROM `reports` group by report_id) as tb where tb.user_id=5 in Cakephp inside the Loop [CODE]$users=$this->User->find('all'); foreach($users as & $user): //for each $user['User']['user_id']; which gives the User ids as 1 2 3 4 5 ... endforeach; $this->set('users', $users);[/CODE]

Member Avatar for marck_don
1
168
Member Avatar for situ_info

How to coordinate a php variable with a javascript variable and store the final result in a php variable.

Member Avatar for urtrivedi
0
42
Member Avatar for rime
Member Avatar for rstill1
1
10K
Member Avatar for cloud09

Is there any reason not to echo content like this: [CODE] <!--Some content up here--> <?php if($variable === true) { ?> <span>Some Content</span> <img src="some_img.png" alt="img"/> <?php ;} ?> <!--Some more content down here--> [/CODE] Or should I be directly echoing everything that is dynamic?

Member Avatar for cloud09
0
130
Member Avatar for mcatominey

HI, I have a script which reads an xml feed then uses a loop to insert information from that feed into a multi-dimensional array. I need to sort the array by 'day' before outputting, day is a dimension of the array. Below is a print_r() of the array after the …

Member Avatar for nileshgr
0
147
Member Avatar for brookebb

Looking for help, I'm creating a form that would be filled in online and is then sent to me via email. I cant figure out how to get the email to populate a drop-down menu option. Here is the code of the email coming to me: [CODE=text]Name: [output name='Name'] Street …

Member Avatar for almostbob
0
87
Member Avatar for edwardsmarkf

hello all (first time posting for this newbie) lets say i have a query that looks something like this: SELECT whatever FROM myColors WHERE color [B]IN[/B] ('red', 'green', blue', 'purple') i would like to be able to use bind_param to access this query, something like: sql: SELECT whatever FROM myColors …

0
44
Member Avatar for sallecpt

the first image is what I have, the second image is what I want to achieve. below is my code. its basically displaying mysql data in columns. but I need to get rid of that huge gab. [CODE]<?php if (!function_exists("GetSQLValueString")) { require_once ($FolderFunctions.'getvaluestring.php'); } mysql_select_db($database_classi, $classi); $query_docategories = "SELECT catID, …

Member Avatar for sallecpt
0
105

The End.