39,402 Topics

Member Avatar for
Member Avatar for TooMpa

Hi trying to create a list structure list "nvidia/ati" had before you select something in one list and then the second list updates with values based on you selection. It will not be drivers and static items tho. So the purpose of this is to get a tree structure from …

Member Avatar for TooMpa
0
147
Member Avatar for luke noob

the problem is that its an undifined varible ($last) intill i type the second word, i [code=php] if($_POST) { $q=$_POST['searchword']; $q = explode(' ', $q); $first = $q[0]; $last = $q[1]; $sql_res=mysqli_query($mysqli, "select * from dogs where firstname like '%$first%' and lastname like '%$last%' order by id LIMIT 5"); while($row=mysqli_fetch_array($sql_res)) …

Member Avatar for luke noob
0
163
Member Avatar for feoperro

Hi, After completing a PHP website, with html, javascript and mysql connections - What can I do to ensure good security and what threats should I be aware of? Thanks, Ashton.

Member Avatar for diafol
0
98
Member Avatar for Aamit

Hi, I am uploading all types of files. After upload i want to calculate number of pages of uploaded file? The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out images) etc. How to calculate number of pages? Any Api available?

Member Avatar for diafol
0
163
Member Avatar for balle

Hello, I am making a blog lock well for my blog. This is checking if the value "locked" is 1. If it is then its locked. When I test on my site it does NOTHING. Please help me fix this. =) [CODE] $g = mysql_query("SELECT * FROM blogcomment WHERE id='$start'"); …

Member Avatar for diafol
0
56
Member Avatar for novice2

I have two tables table 1 idn ......1..........2 name....john......mary table2 id......1...........2.........3...........4 colors..white......red.......blue.......green idn......1..........2.........1...........1 I have my query SELECT * FROM table1,table2 WHERE table1.idn=table2.idn and I want to get results like this: name...........colors --------|------------- john....|...white ........|...blue ........|...green mary....|...red So if anyone can help me with php code to achive this result?

Member Avatar for novice2
0
118
Member Avatar for duttydea

I have just written this code o update my MYSQL Server with data from an Arduino Micro controller using Ethernet. Basically I want to pass the variables collected by the Arduino to the Server. Whenever I try to use this script the Values [I]$_POST['Name'][/I] [I]& $_POST['Value'][/I] do not get passed …

Member Avatar for somedude3488
0
149
Member Avatar for feoperro

Hi, After a user has registered, if they do not respond to the email sent to activate their account: then what is responsible for deleting the pending registration? Is it a database script? Thanks, Ashton.

Member Avatar for feoperro
0
136
Member Avatar for SiobhanyScot

Looking to do a similar map. Can anyone give me the basics/tips? [url]http://omalley-supporter-map.heroku.com/[/url]

Member Avatar for Airshow
0
73
Member Avatar for mehargags

Hi all, Im learning PHP recently so a bit of a noob here... I'm making a purely php form(without using JS for the moment) which has 2 date selection SELECT boxes displaying month/day Pls note that I need to be able to return the previously selected Value of these Select …

Member Avatar for mehargags
0
95
Member Avatar for lwschjang

I am creating a website where when an unregistered user comes to the site they'll only be able to access a limited amount of the site. It's only when they pay for access to the site that they can receive the full content. I'm wondering how I should go about …

Member Avatar for Kraai
0
135
Member Avatar for wcdco

Hi, Wondering if there were an easier way of duplicating and or multiplying “NUMBER”, would like to create a list allowing user to select up to 200… I feel foolish if I have to type ==> “NUMBER”, <== 200 times :) [CODE]"options" => array ("1", "2", "200",),[/CODE] Any suggestions would …

Member Avatar for cossay
0
89
Member Avatar for wonderland

Hello, First of all, I really didn't know which category to put this in. PHP was the best bet :p I'm trying to find out is it possible to have automatic response sent out based on keyword in e-mail body and/or title. Fore example, I receive email which contains word …

Member Avatar for chrishea
0
144
Member Avatar for kavkazi

-------------------------------------------------------------------------------- I am trying to create a madlibs game .. I have a txt file with paragraphs in it .. Some of the sentences have the following tags in it <#noun>, or <#verb>, etc ... I need to parse the file in php and display the content in between the …

Member Avatar for kavkazi
0
582
Member Avatar for breckxf

Hey guys, I'm kind off new to PHP, and I'm trying to resolve this problem. I have a form where users can register their attendance for an event. If the person himself can not come, he has to register a replacement. So when the person clicks the radiobutton 'No, but …

Member Avatar for breckxf
0
78
Member Avatar for jeevanism

I have some doubts and clouds. I got a project idea from one of my client. They need an application which can store the details of incoming phone calls to the their shop. ie. its a shop they have. lots of customers will call to the phone. So they need …

Member Avatar for richieking
0
1K
Member Avatar for nonshatter

Hi all, How can I execute an external program (wget) on a linux box? I assume I should be using exec() or something similar. The command I'm trying to execute is: [CODE]wget -p 'x.x.x.x/inventory.ssi?mag_0=1&mag_1=1'[/CODE] Which returns the html page of inventory. I am then parsing the file using DOMDocument to …

Member Avatar for nonshatter
0
134
Member Avatar for Puckdropper

I hate having the password for my database out in the open. Anyone who gets a look at my code has access to the password. What can I do to secure it so my PHP scripts can access it but it's harder to find? I thought about storing it in …

Member Avatar for webms
0
376
Member Avatar for Dragonbaki

I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use smtp.bizmail.yahoo.com as SMTP mail server, then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody …

Member Avatar for Dragonbaki
0
161
Member Avatar for mrlol

Hi there, Im new with PHP/MYSQL and really need help from u guys. I want to find a code on how to select date range from MYSQL using PHP. Example I want to find a data with the date range is between 12-10-2010 until 15-12-2010. Im using this format date …

Member Avatar for Dragonbaki
0
11K
Member Avatar for muralibobby2015

hello..... i am using this function to create a folder in images folder. all uploaded images are store in newly created folder.it is working fine when run the code..it is creating images/newfoldername/uploadedimages.jpg in localhost. but in server same code is not working. it is creating images/uploadedimages.jpg and also creating null …

Member Avatar for muralibobby2015
0
111
Member Avatar for london77

Hello, I am a newbie on PHP and mySQL. I am trying to create a simple balance sheet using both. table will show me (account.php) DATE - NOTE - INCOME - EXPENSE so, i have created mysql table for this. It has accid, acctype, accnote, accinc, accexp, accudate. and to …

Member Avatar for NettSite
0
1K
Member Avatar for Cranial Fool

Hi, I am working on a script that populates a table with a user's news entries. First I get the username from the URL, then go to the database and get the user_id. From the user_id, I query the news table for the user's news entries. [CODE] $idgrabber = "select …

Member Avatar for Dragonbaki
0
140
Member Avatar for =Edward=

Hello everyone. I am looking for a paid web hosting deal with MySQL, cPanel, and phpMyAdmin. Can someone please tell me some good ones?

Member Avatar for happygeek
0
55
Member Avatar for rolyestemonio

Hi Guys, I have php mysql code which display data by date. if date is similar to the another it will display as one. When i implement an accordion it does not work. But if i will get the accordion it really works. And I am kinda stack of it. …

Member Avatar for diafol
0
110
Member Avatar for ankit.pandey3

[CODE]<?php require_once('upper.php'); // Connects to your Database require_once('database.php'); //This checks to see if there is a page number. If not, it will set it to page 1 if (!(isset($pagenum))) { $pagenum = 1; } //Here we count the number of results //Edit $data to be your query $query = "SELECT …

Member Avatar for mafhh14
0
214
Member Avatar for Awah Mohamed

hey ppl how is everything okay , i want ask if i can create a next page automatically by using mysql?? i mean is there is any code that can check for the next page after it displays the previous one . it is somehow comp[licated for me to explain …

Member Avatar for steelshark
0
148
Member Avatar for Siboneloz

Hi All, im having a problem with searching a database in dreamweaver and was wondering if anyone here has tried it? its a mysql database. here is the situation. i have DB called real_db with a table in i call listings. i want to be able to search the db …

Member Avatar for Siboneloz
0
629
Member Avatar for heshanm

Hi, I want to [B]add interest based on daily basis[/B] to my account tables. This is my account tables. shakthi(ID, account_type,full_name, balance, interest). There are another 3 tables which includes same fields. The amount is credited and the balance is updated very well. But interest should be added daily. I …

Member Avatar for kiroshimasylvia
0
116
Member Avatar for GreaseJunkie

Hi, I've got this nice little sales tool/form written where I can drop email addresses into my webform and automatically send an HTML email, but I want to have the option to send a different html body using a drop-down option. For example, if I want to send a "general …

Member Avatar for GreaseJunkie
0
241
Member Avatar for balle

Hello, I have some code that I am having trouble with. The code in here is supposed to be a delete tool. When I click "Delete" it wipes the rows in post. Thank you in advance for fixing it! =D [CODE] if ($_POST['Delete']) { $deletepos = mysql_query("DELETE FROM posts WHERE …

Member Avatar for balle
0
43
Member Avatar for Sorcher

Can someone help me insert a "white list" in this code? i already have a black list in it but thats pretty stupid when i only want these extensions; 'jpg', 'gif', 'png', 'bmp', '2bp', 'abm', 'afx', 'apd', 'art', 'arw', 'avatar', 'bm2', 'bmc', 'bmf', 'cal', 'cals', 'cam', 'can', 'cd5', 'cdg', 'cdg', …

Member Avatar for cossay
0
164
Member Avatar for Clarkeez

Basically. I have this query that is executed on a form submit. [code] $add_proc = mysql_query(" INSERT INTO `proc` (active, title, desc, notes, link, tags1, tags2, tags3) VALUES ( '".$_POST['add_proc_active']."', '".$_POST['add_proc_title']."', '".$_POST['add_proc_desc']."', '".$_POST['add_proc_notes']."', '".$_POST['add_proc_link']."', '".$_POST['add_proc_tag1']."', '".$_POST['add_proc_tag2']."', '".$_POST['add_proc_tag3']."' ) [/code] Now. The form doesn't require you to enter all 3 tags. …

Member Avatar for Clarkeez
0
100
Member Avatar for nonshatter

Okay, I've been racking my brain trying to figure this one out but the more I try, the more I get stuck. I need to construct a multi-dimensional array as follows, so for each iteration there are 4 values added to the array. (there is a total of 6 iterations, …

Member Avatar for nonshatter
0
105
Member Avatar for Awah Mohamed

wt is wrong here ?? it usually gives me this error : Parse error: syntax error, unexpected $end in /home/a2354076/public_html/cats/programming/includes/topics.php on line 34 here is the code : [CODE] <!-- header ends --> <!-- content begins --> <div id="main"> <div id="right"> <a href="http://www.000webhost.com/" onClick="this.href='http://www.000webhost.com/326472.html'" target="_blank"><img src="http://www.000webhost.com/images/banners/468x60/banner13.gif" alt="Free Website Hosting" width="468" …

Member Avatar for Awah Mohamed
0
163
Member Avatar for CanadianGSX

Good morning, I'll keep this simple, I have a form that I need to populate with the contects of a MySQL database. I've tested that the 'gathering information' script works properly via a SELECT command. However, when I try to set the value of a text form field using the …

Member Avatar for CanadianGSX
0
145
Member Avatar for nukabolhi

Hi Daniweb, I am confused, how to explode the numbers from database. Simply I can Explode, but after explode I have to relate the numbers to another table. If any one not clear abt my problem, pls reply Eg: 1, 2 Relate to Basket, football [CODE] $sql1=mysql_query("SELECT impid FROM customer …

Member Avatar for nukabolhi
-1
94
Member Avatar for Brianbc

I have a file(File1) in the root directory(Root). There is also a directory(Dir) in the root directory which contains File2. File2.php [CODE]<?php include'/*I need to include file1 here*/' // ?>[/CODE] How do I include file1 in file2?

Member Avatar for somedude3488
0
166
Member Avatar for nonshatter

Hi all, I'm trying to figure out how to stop MySQL errors being displayed to the user. I have turned off all the necessary options in php.ini such as [CODE]display_errors = Off log_errors = On error_log = /path/to/log/[/CODE] I have even tried to override these settings using ini_set() in my …

Member Avatar for somedude3488
0
247
Member Avatar for sedalnas

Hi , i'm trying to add a hyperlink in the php code , the "href" of the hyperlink is the books names generated from the db but i want to the clicked link to show the relative book description and the book's image in another page but i don't know …

Member Avatar for cossay
0
118
Member Avatar for nukabolhi

How can I use explode function in php I already implode some data in mysql [CODE] // customer table cust_id, impid, 1, 1,2 // sports table sport id, sport name 1, football 2, basketball [/CODE] How can I explode and make a php/mysql query

Member Avatar for nukabolhi
0
372
Member Avatar for MACKENZIEKE

I am working on a project with PHP and MySql. There are reports i am producing which are picked from one table in different row. I would like this reports in pdf or convert them to pdf when viewing on html. keep in mind the the report pages are produced …

Member Avatar for chrishea
0
119
Member Avatar for Sorcher

Anyone know a snippet of this? I need to delete all files in a folder but not jpg,gif or png files. :sweat:

Member Avatar for Sorcher
0
132
Member Avatar for daviddoria

I have two pages, header.php and sidebar.php which I want to include on several pages using: [code] <?php include 'header.php'; ?> <?php include 'sidebar.php'; ?> [/code] However, there are two different issues. On this page [url]http://ewh.ieee.org/r1/schenectady/New/index.php[/url] , the included text is put BELOW the text on index.php, even thought it …

Member Avatar for daviddoria
0
89
Member Avatar for daviddoria

Currently at the top of every page I have this: [code] <HTML> <HEAD> <TITLE>Schenectady Section of the IEEE</TITLE> <META NAME='url' CONTENT='http://www.ewh.ieee.org/r1/schenectady/'> <META NAME='author' CONTENT='Authorname'> <META NAME='email' CONTENT='author email'> <META NAME='expires' CONTENT=''> <META NAME='revision-date' CONTENT='6-Sep-1999'> <META NAME='keywords' CONTENT='Schenectady Section'> <META NAME='description' CONTENT='Schenectady Section of the IEEE'> </HEAD> [/code] If I move …

Member Avatar for hielo
0
107
Member Avatar for sedalnas

Hi, I'm trying to use the array_unique method in php to get the unique values of the array but what i get is just one value and the other values deleted by the method , the values in the array are (Pro CSharp 2008 and the NET 3.5 Platform , …

Member Avatar for pritaeas
0
458
Member Avatar for sainigks

Dear all, i have a php script to download list of files from server. it is working well, when i type the file address. but i want to get address of file from user. i have a html page where user select Folder and Sub Folder name to download file …

Member Avatar for Henzard
0
159
Member Avatar for muralibobby2015

hello........ i want to do display all folder files using ajax. anybody tell me how to do this?

Member Avatar for Henzard
0
69
Member Avatar for shenbagam

I want the coding for image updating. i,e when the user uploding his images tat be automatically updated in mysql as well as in website

Member Avatar for Dragonbaki
0
128
Member Avatar for coxdabd

Hi, just starting out with PHP, etc. Seem to be picking things up quickly. Just want some advice on how secure things are e.g. entering email address into the database, etc. Look forward to some help and advice. [CODE]<?php error_reporting(0); $email = ""; $msg_to_user = ""; if ($_POST['email']!=""){ include_once "connection.php"; …

Member Avatar for Dragonbaki
0
102

The End.