39,326 Topics

Member Avatar for
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
108
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
160
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
94
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
79
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
139
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
142
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
158
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
48
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
81
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
55
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
61
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
91
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
99
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
88
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
136
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
93
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
76
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
245
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
320
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
156
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
416
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
125
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
207
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
107
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
186
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
217
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
53
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
102
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
167

The End.