39,402 Topics

Member Avatar for
Member Avatar for icehiro

I want to fetch some data from my database which something weird came out. [CODE]<?php include("conmysql.php"); $selectdb = @mysql_select_db("vote"); if (!$selectdb) die("Connect database fail!"); //find number of people supporting $sql = 'SELECT COUNT(support) FROM address WHERE support=1'; $result = mysql_query($sql); if (!result) { die('Invalid query: ' . mysql_error()); } echo …

Member Avatar for icehiro
0
84
Member Avatar for debasishgang7

I wanna write a script which will count the number of occurrence of a given string from a text file. Suppose a text file content many phone numbers and many of them occurs several times on that text file.I am gonna provide a particular number and i want that script …

Member Avatar for debasishgang7
0
193
Member Avatar for thijscream

hey, i have the following webpage: [URL="http://www.thijscream.nl/wijnkado/mouserend.php?id=0&sid=0"]http://www.thijscream.nl/wijnkado/mouserend.php?id=0&sid=0[/URL] there everything if fine, the footer is on the bottom of the page. but now i have a page with some artikels on it and then it's still on the same place instead of lowering to the bottom(as shown on the link below) …

Member Avatar for gunnarflax
0
101
Member Avatar for jacob21

Hi, How to change date format in my sql.By default it is taken as 2011-03-05 but I want to change as 05-march-2010. need your help Thanks

Member Avatar for mgranger96
0
115
Member Avatar for TronCraze

Hi all, I have a question regarding PHP login systems. Is it possible to have a login system within another login system. Here's an example: I login to a site and PHP creates the session. I then want to access another page with some higher-secure content so I ask the …

Member Avatar for ahmedelhamahmy
0
125
Member Avatar for sharkqt

Hello everybody :) for the past 3/4 months i have been learning nonstop in various subjects ranging from html css javascript ( also jquery framwork ) and php i have also been able to put up a static website ( using only htm and css ) after learning more about …

Member Avatar for pzuurveen
0
131
Member Avatar for vijaygupta

Hello , I want to add muliple radio button on click of a radio button and this to happen in sub radio buttons also any kin of help appreciated thanks

Member Avatar for pzuurveen
0
69
Member Avatar for andrewliu

Hello, I was thinking what would be a best way to create another column if a list is too long? Say I have a <ul> tag and doing a while loop output <li> tags. Would it be good to just use like a while loop and set the condition to …

Member Avatar for petr.pavel
0
207
Member Avatar for AntiQuark

I am trying to create a regular expression that can parse both variables ($src and $src1) and get the result of Prop, Nam and Tra. (Ignoring any information after). [ICODE] <?php $src = "{{Data#Prop=11a|Nam=33a|Tra=46b}}"; $src1 = "{{Data#Prop=11a|Nam=33a|Tra=46b|extra=384v}}"; preg_match_all('/\{\{Data#Prop\=([a-z 0-9]*)\|Nam\=([a-z 0-9]*)\|Tra=([a-z 0-9]*)????\}\}/Umis', $src, $st); ?>[/ICODE] For both $src and $src1 the …

Member Avatar for petr.pavel
0
112
Member Avatar for gunnarflax

Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder …

Member Avatar for gunnarflax
0
161
Member Avatar for lit108

I have a script which parses xml feeds, the url's to the feeds that are being parsed are in a table on my database. Below is the query for storing the url's in an array [CODE] $getUrls = "SELECT * FROM sscape_blogroll"; $result = mysql_query($getUrls); $urls = array(); while($row = …

Member Avatar for petr.pavel
0
96
Member Avatar for vijiglad

hi, please help.. I need php code to upload file from one FTP to another FTP.. thanks/regards vijay

Member Avatar for petr.pavel
0
82
Member Avatar for shadowscape

hello fellow developers, i have built my website, how it works is it includes the header and footer through php and the rest of the content is in its corresponding file, but would it be possble to have the rest of the content in a mysql database and create pages …

Member Avatar for shadowscape
0
146
Member Avatar for xxreenaxx1

I am stuck on inserting the data into mysql via php. Its a foreach method and I am just stuck [CODE=php]include '../Database/take_an_exam.php'; $intNum = 1; $intnumber = 1; while( $info = mysql_fetch_array( $sqll )){ echo "<input type='hidden' name=\"Que_ID\" value=\"{$info['Que_ID']}\" /> "; echo " $intNum, {$info['Que_Question']} <br />\n"; $intNum++; for ($i …

Member Avatar for petr.pavel
0
147
Member Avatar for jacob.irwin

Earlier today I created simple database (user and login fields), login, and registration PHPs. Now I need help going about the following enhancement: In a nutshell: I am trying to create a registration form like facebook's with php code (and link it a mysql database)... 1.) My updated registration.php has …

Member Avatar for petr.pavel
-2
161
Member Avatar for anthonyjpv

I created a code in C# but cant see any resource online to convert it to php can you help me? Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Graphics graphics = Graphics.FromImage(printscreen as Image); graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size); printscreen.Save(@"C:\printscreen.jpg", ImageFormat.Jpeg);

0
50
Member Avatar for anirban1087

Hi, I am working on a form which is as follows - +---------------+----------------+--------------+-----------------+---------------+ |Item_Code |Item_Name |Quantity |Rate |Amount | |[ COMBO BOX ] |[ COMBO BOX ] |[ USER INPUT ]|[ Auto Fill after| [ CALCULATED ]| |Generate Field2|Generate Field 1| |selecting f1/f2 | | +---------------+----------------+--------------+-----------------+---------------+ The user can either …

Member Avatar for petr.pavel
0
84
Member Avatar for Layerphp

Hi all, I'm using igallery plugin for my website and when ever i upload images to gallery they will automatically be saved into incremental folders like... if i upload 100 images they will be stored in "1-100" and if i again upload 100 images they will be stored in "101-200" …

0
58
Member Avatar for andrewliu

Hello, I'm using curl to scrape information through sites. Since some sites don't have subscriptions, I would like to get information from their sites without constantly going to the site. I was wondering if you can sort their content when you've scrapped through site? Like if there was a list …

Member Avatar for smantscheff
0
65
Member Avatar for coolest_987
Member Avatar for coolest_987
0
1K
Member Avatar for mynameissiva

hi friends, I develop web pages using PHP for my college.. To upload into my college site, is need any framework ?? To run php file in my home PC. Just apache sever is enough ? Is any php file or framework need ?? Plz help me as soon as... …

Member Avatar for chrishea
0
93
Member Avatar for arunmag

Hi all, i am new to PHP. I want to learn more about PHP like website building and all other web related topics. I want good links or material for PHP. I am trying to build my own website and a small forum so I want tutorials, videos and online …

Member Avatar for the_one_9101
0
100
Member Avatar for ero100

I want to add SIZING OPTIONS to my website * i have created the database sizes with: size_id, size_list, and prod_id which is the ID OF the products tables as foreign key * i have issued a query to retrieve all the sizes according to the prod_id (product ID). as …

0
90
Member Avatar for ronin13378

Hey guys i have a contact form for my site working fine but when i receive the emails i get some unwanted texts(bold area) after the email section. name1: ryan number: 343244 message1: hey email: [email]ss@yahoo.com[/email] [B]clearField: [type Function] label1: NAME label2: E-MAIL label3: PHONE label5: MESSAGE countField: 5 arrayLabel: …

Member Avatar for kokoro90
0
137
Member Avatar for Tazz-99

Hello, Have you seen the URLs with a "/" after the file name? EG: game.php/items I'm wondering how you can use this data after the "/". I'm assuming this is PHP as URL variables are PHP. any ideas? Thanks :)

Member Avatar for steelshark
0
94
Member Avatar for gazzy1

I want to create a timer using php that will start counting the time when the student access the test page until it reach 10 minutes then it will submit the page and insert the data in to the database.

Member Avatar for diafol
0
78
Member Avatar for lttleastig

Good day i would like to ask how to make a login system the password is encrypted with the code below. [CODE]HashBytes('MD5', REVERSE(UPPER(@ID)) + @PW)[/CODE] thanks in advance

Member Avatar for ahmedelhamahmy
0
260
Member Avatar for Tabone3

Hi, I recently begin to work with MYSQL, php and html and I have this problem. On the homepage of my site on the sidebar I have a section where it tells you the latest blogs that have been posted. Now here comes the problem. I wish that whenever I …

Member Avatar for reygcalantaol
0
340
Member Avatar for McLaren

Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?

Member Avatar for McLaren
0
157
Member Avatar for McLaren

Hi, would it be difficult to let's say add a record to another table on user registration? Lets say I want to add a records how many credits the user has in jos_credits table when user registers, in other words - add record with that user id and set credits …

Member Avatar for McLaren
0
437
Member Avatar for anirban1087

Hi, I am working on a form which is as follows - +---------------+----------------+--------------+-----------------+---------------+ |Item_Code |Item_Name |Quantity |Rate |Amount | |[ COMBO BOX ] |[ COMBO BOX ] |[ USER INPUT ]|[ Auto Fill after| [ CALCULATED ]| |Generate Field2|Generate Field 1| |selecting f1/f2 | | +---------------+----------------+--------------+-----------------+---------------+ The user can either …

Member Avatar for Pnorq
0
128
Member Avatar for fabzster

Hi I have a join query which I use for a report ok I have a query to give me results for a report that will give me all the stores that sold policies from a group during a period. It works however I cannot get it to give me …

Member Avatar for fabzster
0
208
Member Avatar for rayden150

Hi can someone please indicate where is the error in the php code i wanted to sort of translate from java to php pleaase help: This is the Java Code: [CODE]public class Break{ public static void main(String[] args){ int i,j; System.out.println("Prime numbers between 1 to 50 : "); for (i …

Member Avatar for kekkaishi
0
109
Member Avatar for doctorphp

Hi everyone. I am trying to build a script where a user of my website can download files. I have a problem. My site has two different user types, Free and Premium at the moment the only protection I have on the script is to check whether the user is …

Member Avatar for chrishea
0
194
Member Avatar for mangopearapples

Hey guys, I'm having a little bit of trouble here. I have a variable called Latest1 and it's value is some HTML and PHP code. I have a function that does document.getElementById().innerHTML = Latest1; So when that happens, it runs the HTML code but for some reason it doesn't run …

Member Avatar for mangopearapples
0
222
Member Avatar for dyla123

Not sure if this is for PHP but anyway: I am wanting to make an API for a game the past few months and still have not yet figured it out yet. I am wondering does anyone know how to make one or who can get a website that can …

Member Avatar for chrishea
0
56
Member Avatar for shawtyred74

Hi, I am trying to create a playlist using a multidimesional array. Where the user will select a song to hear from a radio button and when they do they will hear the song on the url that I have for that song. I am not sure if I am …

Member Avatar for diafol
0
103
Member Avatar for kirtan_thakkar

I want to limit uploading size of the user image. How can i do this? User should upload only jpg file and it would be less than 100kb. and is there any way i can convert that image into specific resolution? Thanks....

Member Avatar for Gewalop
0
170
Member Avatar for petrakid

Hello, I created an events calendar which allows the user to add events. The events adding allows for daily, weekly, monthly (and yearly) events creation. Well, everything works GREAT, except for this one little problem that I can't get my head around. when creating a repeating event that repeats on …

Member Avatar for petrakid
0
346
Member Avatar for botak75

anyone can help me how to make coding like below. IF husband(L3) does not have a son (L1) AND do not have a daughter (P1) AND do not have the grandson of the son (L4) AND do not have a granddaughter from son (P4) THEN breakdown for men is 1 …

Member Avatar for diafol
0
82
Member Avatar for cliffcc

How to show the result of counting in php? $room = "SELECT COUNT(*) FROM table WHERE roomid ='1'";

Member Avatar for diafol
0
92
Member Avatar for jrotunda85

I've been messing arround with this for the past little while and I can't seem to figure out the best way to to about doing this. Essentially, I'm trying to create a three part statement. The first will check is a session variable isset & the user has a rolecd …

Member Avatar for jrotunda85
0
368
Member Avatar for rajeesh_rsn

Hi I had a mysql data base and had a date column in it. Date is like : date("Y-m-d"), I need to search in the data base between two days, select users who registered between 2009-12-13 and 2009-12-25. Please help me thanks in advance

Member Avatar for Sorcher
0
88
Member Avatar for mgranger96

I'm working on generating SEO friendly URLs from data taken from a database. I've been successful for the most part. The only issue I'm having is when I stripped the spaces and made them dashes, I lose the data being pulled from the database. If I leave the spaces in …

Member Avatar for mgranger96
0
228
Member Avatar for engel(ray)

I have a problem in my code. Whenever I instantiate COM its shows me this error: Fatal error: Class 'COM' not found in /Applications/XAMPP/xamppfiles/htdocs. COM works if I use windows, but when i use mac, it gives me error. I dunno if there should be extensions I should uncomment in …

Member Avatar for engel(ray)
1
198
Member Avatar for ctpsolo

Hey. I need some help with getting a record from a mysql database and compare it with data already stored in a php variable. If they don't match then I want to save the record in the database under another field and then update it. Here is my code: [CODE]$query …

Member Avatar for ctpsolo
0
451
Member Avatar for csam0003

Hi all! Your thoughts please on the following. I have a php script to be run on the server every 10minutes or so. Depending on some condition, I want an image at a particular url to change. I then have a webpage in which a link is always pointing to …

Member Avatar for nquinlan
0
149
Member Avatar for xxreenaxx1

Hello I am using for loop on a form and posting these to the next page and I can echo the array and print 1 if there is value. If there isnt any value nothing print but I want 0 to be printed. I have tired few ways and so …

Member Avatar for xxreenaxx1
0
236
Member Avatar for Fresco Vivir

Greetings i'm going to work on project thats a script for MCQ quizzes the requirements are: 1- the instructor can make quiz and save it to the database. 2- the instructor can select specific quiz from the database and allow the students to take it 3- the quiz should be …

Member Avatar for smantscheff
0
203
Member Avatar for shadowscape

hello again, i have one more problem im trying to get past, i have a url structure like this.... [url]products.php?page=scripts[/url] how would i make a multiple variable so i can also use this.... [url]products.php?pid=sscfa[/url] but not at the same time, either one or the other, i have attached the code …

Member Avatar for teedoff
0
116

The End.