39,402 Topics

Member Avatar for
Member Avatar for OmniX

I am trying to crosscheck a column in a table with 30 rows. Example: [code=php] $value = "a"; $sql = "select * from characters"; $query = mysql_query($sql); $fetch = mysql_fetch_array($query); for ($i = 0; $i < 30; $i++) { if($value == $fetch['letters']) { $counter++; } } echo $counter; [/code] The …

Member Avatar for OmniX
0
119
Member Avatar for dbroncos

Hello All, Rookie here... I have run into a problem coding my first Registration form with PHP. Everything works great with the form. I just want to know how to check two fields in the database to see if the values being posted already exist. I have one working but, …

Member Avatar for R0bb0b
0
82
Member Avatar for god_1896

hi all; im looking a good example of 3 selector like for region province and city. if select form the list of region the province would have a list of province belong to region and the city well provide a list of cities belong to the region. and if province …

Member Avatar for god_1896
0
133
Member Avatar for enim213

guys really need your help here.! im working on multiple update using checkbox. since i was using only 1 checkbox before it works fine. but i need 2 values (from checkbox, because if not, array wont give me the value im looking for..) for my query on the next page. …

Member Avatar for enim213
0
79
Member Avatar for OmniX

Is there a command to empty a table? or would I just use a SQL statement in conjunction with a query statement? If so is this the correct syntax [code=php] $table = "abc"; $sql = "DELETE FROM $table WHERE *"; mysql_query($sql); [/code] Would that delete every row in table abc? …

Member Avatar for OmniX
0
205
Member Avatar for justted

Hello, I am really really stuck on a small project im working on and have been at it now for the past 12 hours. lol I am trying to set up a restrcited page for my admins and have the following: [code] $find_access = fetch ("SELECT * FROM job_roles WHERE …

Member Avatar for justted
0
181
Member Avatar for flynismo

I just started a site, and would like to make some dummy profiles. The script I'm using included a profile generator that would assign usernames, age and location (city and state) of the "members". The problem I'm having is that the profile generator assigns a city, but not the corresponding …

Member Avatar for flynismo
0
181
Member Avatar for ttv2008

HAVE A LOT OF THANK YOU VERY MUCH thái san I,m too bad about pc ang soft. Let sent my some word thank you veru much, but i'm don,t like to go US without I'm GI VNCH./.

Member Avatar for scru
0
40
Member Avatar for mrcniceguy

I WANT TO DISPLAY A CERTAIN WORD I STORED IN DATABASE WITH LETS SAY 14 CHARACTERS(LATTERS),NOW I WANT WHILE DISPLAYING IT AFTER REACHING THE 9TH LATTER TO BRAKE. SOMTHING LIKE THIS. MWAKISAMBUKEGE ----- TO GET MWAKISAMB UKEGE If there is apossibility of doing this.Help me please.

Member Avatar for mrcniceguy
0
316
Member Avatar for mgn2683

I'm not sure if what I am asking can be done. Basically, there are two different user levels of people who have access to list & detail pages. Once user level 2 finishes their evaluation, it goes to user level 3 who OKs the evaluation. The client wants to have …

Member Avatar for R0bb0b
0
92
Member Avatar for mrcniceguy

I TRIED TO CREATE A SIMPLE WEB ALBUM,SO THAT SOMEONE WILL BE ABLE TO UPLOAD HIS PHOTOS.UPLOADING WAS NOT A PROBLEM. THE PROBLEM IS WHEN I`M DISPLAYING THEM,BCOZ FOR EXAMPLE IF ONE MEMBER HAS 9 PICTURES THEN ONLY ONE PICTURE, I`M MEAN THE FIRST PICTURE TO BE UPLOADED WITH MEMBER …

Member Avatar for mrcniceguy
0
104
Member Avatar for rizwan6feb

I am working on an application in Vb.NET the pulls data from an online MySQL server. The problem i was facing was that my application had no direct access to internet. The application connects to a proxy server which was blocking access to database server because the proxy server only …

0
51
Member Avatar for mangel.murti

hi all ,the code i write below display report on selection of some field below it.my problem is that i want to print this report but controls are also printing with report.i want that only report will print. please help me to solve my problem............can i transfer report to other …

Member Avatar for trinitybrown
0
176
Member Avatar for trinitybrown

I am learning PHP/MySQL and have heard about Joomla CMS, I wish to learn it but don't understand from where to start, kindly guide me about this

Member Avatar for ithelp
0
97
Member Avatar for rickya100

Hi, Can anyone please tell me how to do a REST request to a URL using method POST and NOT GET. I know I have to pass XML to the URL but I really don't know where to start actually sending the request. I have tried looking at loads of …

Member Avatar for rickya100
0
393
Member Avatar for komrad

Hello all, I'm a learning php this year but i encounters some problems. One of them is about php value. The problem is how do i do to prevent a php file from resending the same values into the database whenever the page is refreshed? Anyone help? Thanks, Asep

Member Avatar for Shanti C
0
100
Member Avatar for OmniX

Hi, I have a few questions in regards to checkboxes I wanted to confim. Your code is below: [code] <input type="checkbox" name="checkbox[]" value="1"> <input type="checkbox" name="checkbox[]" value="2"> <input type="checkbox" name="checkbox[]" value="3"> <input type="checkbox" name="checkbox[]" value="4"> <input type="checkbox" name="checkbox[]" value="5"> [/code] Now what happens next? The checkbox array is checkbox[0] = …

Member Avatar for Shanti C
0
94
Member Avatar for twmprys

Sorry to ask such a stupid question, but can't understand why this simple instruction to upload a file (passed from an html form) isn't working: move_uploaded_file($_FILES['pic']['tmp_name'], 'files/pic.jpg');

Member Avatar for PoA
0
124
Member Avatar for XPlus

I've this php script that displays information stored in a MYSQL DB.. it shows the data in a tabular format.. What i'm trying to do is to make php sort the data in the table according to what user specifies (by clicking a link that sends a value using GET).. …

Member Avatar for HazardTW
0
100
Member Avatar for benutzername123

Hi there. I've been attempting for a good few months to develop a new webpage at [url]www.mnc99.com[/url]. You can see my current efforts at [url]www.mnc99.com/index.php[/url] . Notice that the movie you will receive (morning, afternoon, evening) depends on the time you access the page. You're more than welcome to inspect …

Member Avatar for benutzername123
0
179
Member Avatar for chicago1985

I am thinking of going with ColdFusion Enterprise over my current PHP. We do alot of web apps working with MySQL and Oracle. I have no problem paying for it compared with free PHP because I hear that ColdFusion can cut down my development and debugging time. It also seems …

Member Avatar for PoA
0
170
Member Avatar for Shanti C

HELLO all... Good Afternoon!!!! Currently i am developing a website...In that website i want to ad management ,where we can add and manage different ads with different prices, in different place on our website with time and etc... Any body have any scripts or any ideas to develop this kind... …

Member Avatar for PoA
0
128
Member Avatar for wickedsunny

heyz guyz i am working on a site and i have taken its gallery system from a script provdiers. but i can't find out how to get meta tags workin in php coz its in php language. and i dont know it can u please help

Member Avatar for wickedsunny
0
70
Member Avatar for joelogs

i was trying out how to configure manually postgreSQL and mySQL database servers into Apache with php as a module. luckily i was successful in configuring those things. however, to have better management on mySQL databases in tried to install and configure phpMyAdmin. but i always encounter error (attached image …

Member Avatar for joelogs
0
114
Member Avatar for twmprys

Hello, hope someone can help. I've created a simple interface for a website owner to carry out very limited editing. On the first page, there's a form which uploads just one picture to a picture folder and inserts text into a database field. That works fine. Now I need to …

Member Avatar for twmprys
0
105
Member Avatar for Venom Rush

Hi there I have a problem with sessions at the moment. My aim is to be able to use sessions with out getting those ugly url's. In my php.ini session.use_trans_sid is on and session.use_cookies is on. I'm using ini_set("url_rewriter.tags",""); to stop the server from creating url's with PHPSESSID=bunchofrandomnumbersandlettershere which works …

Member Avatar for cwarn23
0
190
Member Avatar for Punkis448

Hi all! I am looking for some free/paid social network scripts. Any suggestions ? Thank you

Member Avatar for wickedsunny
0
102
Member Avatar for Arsench

HELLO, I HOME THAT HERE SOMEONE CAN BE A MAGICIAN AND WILL HELP ME PLEASE. IM A NEW IN PHP WORLD AND NEED YOU HELP PLEASE. I HAVE A DB WITH NAME examen IM CONNECTING TO THIS DB AND THERE ARE A 6 FIELDS FIELD 1 IS QUESTION FIELD 2 …

Member Avatar for Shanti C
0
95
Member Avatar for rajeesh_rsn

I am new to PHP I need a little help in my php login script... I had 3 pages 1. index.html (user type username and password ) 2. login.php 3. logout.php ie [B][U]index.html[/U][/B] <html> /Main Page /////// <body> <form action="login.php" method="post"> <input name="uname" type="text" id="uname" /> <input name="pass" type="text" id="pass" …

Member Avatar for Shanti C
0
119
Member Avatar for techbongo

I'm having a web hosting company. We're developing our website, ourselves. For our web design pages, (snipped) we are willing to show some dynamic snapshots/thumnails of our clients' websites. ie, we need some PHP code which can generate a JPG or GIF thumbnail of a certain URL (preferred size is …

Member Avatar for Shanti C
0
70
Member Avatar for Diode

I'm not sure if this should go in the MySQL board, or this, since it deals with both PHP and MySQL. But anyway, I am making a sports memorabilia site for a guy. On the item creation page, after I call the function to prevent sql injection, no matter what …

Member Avatar for Diode
0
2K
Member Avatar for krauz2

I am trying to use a switch statement and want the action to be log into a ftp server. I am not able to get it to work...can anyone help? here is what I have now....Thanks everyone in advance. $ftp_server = "ftp://MyFtpSite.com"; $ftp_server = $employeeftp; switch($attn1) { // this is …

Member Avatar for krauz2
0
213
Member Avatar for websurfer

Hello, all: I have this single-file upload script which works great (it's a bit log cause it creates thumbs, unique ID's,e tc), but I am trying to modify it to make it do MULTIPLE files. I figured best way was to apply a foreach loop to it, but havent been …

0
96
Member Avatar for mrcniceguy

In inbox link i want to show how many massage are in it,in such a way if in inbox there are 20 messages and only 5 are unread then to be shown in that link. like this [U]Inbox(5)[/U]. Also in inbox if message is unread to be highlighted,meaning all 5 …

Member Avatar for mrcniceguy
0
99
Member Avatar for nishit_soni
Member Avatar for yasmena

i have a JS that generates fields on the fly i set a counter so that i can count the no. of fields the user generated now i need to loop through these fields and i dont know how to use that JS variable inside PHP for($i=0;$i< "JS VAR";$i++) i …

Member Avatar for HazardTW
0
131
Member Avatar for Weirder_PT

Hello. I don't know if you know what's a PTC site... (it's easily to find out what is it, with a search on google). I was wondering if you would know how can i create bots to click on ads, and make them purchasable to be referrals from who buys …

0
40
Member Avatar for jadamus

Newbie here to learn and share. I've learned the basics of html and css and have started the journey into php. I'm using Dreamweaver to write and guide me along the way with coding. Last two weeks have been pretty intense with the "spry" horizontal menu bar. I have a …

Member Avatar for darkagn
0
65
Member Avatar for cali_dotcom

hi, i just wrote a program for my website with a search function. everything works fine but i have a problem with the links to the other result pages. this is the code [code=text] <?php $errors = array(); if ($_POST) { $mysql = mysql_connect("localhost", "root", "") or die("couldn't connect to …

Member Avatar for cali_dotcom
0
95
Member Avatar for Sheridan

I want to create a "browse" button that will upload the NAME of a file (just the name, NOT the file) and pass that name onto another page. I have written the following: [code=PHP] echo '<FORM ENCTYPE="multipart/form-data" ACTION="InsertImageFile.php" METHOD=POST>'; echo '<table cellpadding = 5 border = 1> <tr><td>'; echo 'File …

Member Avatar for scru
0
71
Member Avatar for vo2corp

Im new on this thing of computers but im really intresting on learning how to creat and understand computers softwares, hardwares and everything about PC. I will like to know if some one can help me on making a keylogger based on Visual Basic Thank you!! for your time and …

Member Avatar for scru
0
80
Member Avatar for Gonzo10

Hello everyone, I am trying to put a value into $value['count']; after the value is clicked the count stays at one or it resets itself any help will be awesome Thank you. [code=php] <table width="61%" border="1" align="center" cellpadding="4"> <?php $count = 1; if (isset($_GET['value'])) { $count++; $value[$count] = $_GET['value']; print …

Member Avatar for Gonzo10
0
103
Member Avatar for tkmc

Hi all, I have been racking my brain today, trying to get a page to run 2 queries. Basically i have a page that has a form on it and there is a bunch of numbers in one of the drop down lists that comes from a table called cab_eticket_numbers …

Member Avatar for HazardTW
0
2K
Member Avatar for jencinas69

I have this csv2xml.php file [code] <?php error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", true); ini_set('memory_limit', '24M'); function csv2xml($file, $container = 'data') { $r = "<{$container}>\n"; $row = 0; $cols = 0; $titles = array(); $handle = @fopen($file, 'r'); if (!$handle) return $handle; while (($data = fgetcsv($handle, 1000, ',')) !== FALSE) { if …

Member Avatar for jencinas69
0
183
Member Avatar for vssp

Hi Friends I am working on symfony project. This is new frame work for me. So Please clarify my doubt. This is looklike community site. user able to create own sub domine. Public site have one login page ex([url]www.sample.com[/url]) individual user have one login page ex ([url]www.vssp.sample.com)[/url]. How to seprate …

Member Avatar for ShawnCplus
0
141
Member Avatar for Venom Rush

Hi there I just need some clarification on sessions. If I have $_SESSION['name'] = $_POST['name']; in my php will it $_SESSION['name'] be created numerous times on different pc's? For example: Joe submits a form and $_SESSION['name'] is created with Joe being the value. Then Suzy submits a form and $_SESSION['name'] …

Member Avatar for Venom Rush
0
95
Member Avatar for moerpheus

hi guys, i have problems regarding PHP. I cant connect the php page with mysql database. I have installed everything as far as I know. i have changed the conifiguration files. but still i cant access the database via the pages! im creating a recruitment site(job search) and people should …

Member Avatar for BMX322
0
123
Member Avatar for arshadshaikh

I have xampp server installed and i want to send mail function with php on localhost (my system). I have done following configuration settings in php.ini SMTP = mail.prs.prod smtp_port = 25 I have also set the following line ;extension=php_smtp.dll by commenting and again uncommenting. But unable to send email …

Member Avatar for scru
0
77
Member Avatar for mgn2683

Hi, I have a few questions. First off, I have a recordset where I am selecting the columns name_pre, name_first and name_last. I want to have the name displayed as Mr. John Smith, just combining all 3 columns. The second portion where I am running into problems is displaying the …

Member Avatar for BMX322
0
110
Member Avatar for aformoftruth

I have a URL PHP LINKs problem... I'm a newbie and am currently teaching myself php and html...currently using dreamweaver and have been able to be pretty lazy with regards to learing code but now am using php...and got to type it in myslef....its good for me. But i have …

Member Avatar for cwarn23
0
110

The End.