39,402 Topics

Member Avatar for
Member Avatar for sesniel

[CODE] $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password1'; $dbname = 'DB01'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql for First Database'); mysql_select_db($dbname, $conn) ; [/CODE] This first connection is where the php file is stored. [CODE] $dbhost02 = '192.168.0.16'; $dbuser02 = 'root'; $dbpass02 = …

Member Avatar for cereal
0
81
Member Avatar for matiulhaq

I am using Joomla , I developed one website in English in (En) folder then i copied all the website to a new directory with the same links and files with (Ar) Then i change the language of the website in Ar directory but the file is still the same …

0
131
Member Avatar for tahirkhanafridi

hi frnds, i have issue with my simple script i have audios.php file white fetch all mp3 audio files on the audios.php file i want if someone click on the executed mp3s which makes this type of hyper link [url]http://xyz.com/uploads/123.mp3[/url] its prompt for download and save file option i dont …

Member Avatar for pzuurveen
0
170
Member Avatar for eduard77

I wrote a piece of code to search the web using the bing api in csharp. I would like to know how could I do this using PHP and to do it on google.Anyone has any idea how can I do this? [CODE] public void Search1(List<string> search, uint count, List<string> …

Member Avatar for cereal
0
127
Member Avatar for diafol

Has anybody here had any experience of using OpenID (or FB, Twitter, Yahoo etc) to login into your site. I've been wondering whether I should adopt this approach for a new project. However, as a password will not be stored in my DB, how will the user remember which service …

Member Avatar for cereal
0
274
Member Avatar for Warl30ck

I'm trying to write a blog and this comes up : Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65 the code: [CODE] $query = "SELECT id, header, body, views FROM information"; $result = mysql_query($query); while($row = mysql_fetch_row($result)) { print "<div class=section odd>"; print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; …

Member Avatar for pritaeas
0
141
Member Avatar for ahromi

Hi guys, same with the title i just want to know is possible apache & php configuration to be clone? If it possible, we can configure some apache configuration for some machine that we want. sorry for my bad english thanks for attention :)

Member Avatar for ahromi
0
239
Member Avatar for jeevanism

Hello All, I need a small help. I have an application built in php which stores images and videos as in gallery. A user can click on the video , it will play as in streaming way. This part is ok. now, we have a limitation that we cannot play …

Member Avatar for jeevanism
0
975
Member Avatar for socialmd

I'm trying to figure out how to use PHP in Javascript to fill in the options for my drop down menus for my dynamic inputs. I've tried several things already, but I have had no luck. This is how my code stands at the moment. Any ideas are greatly appreciated. …

Member Avatar for Airshow
0
303
Member Avatar for fredy91

hay all, I currently develop a website using php but I very newbie in php programming I have login issues here, I create a login sytem I success to make that, in my web after login page it will go to admin page but when I click browser's back button …

Member Avatar for fredy91
0
162
Member Avatar for eduard77

I've just installed the newest version of wamp server and I cannot access phpmyadmin. I keep on receiving this message. You don't have permission to access /phpmyadmin/ on this server. I just don't know what to do with it

Member Avatar for eduard77
0
81
Member Avatar for jetlife76

Trying to figure out how to use the gregorianToJd function in php to determine the julian date when a user inputs a specific date in time. i have my code to where it will do this without using the function, but now i need to show it using the function.

Member Avatar for diafol
0
89
Member Avatar for angelclawdust

hello there, im very new to this php malarky and have been asked if i would take a look at repairing a site that was recently messed with by the old coder. i didnt make nor code this site and my skills are limited ive managed to plod my way …

Member Avatar for angelclawdust
0
128
Member Avatar for PF2G

Can someone tell me what is wrong with this code: [CODE]<?PHP include 'topo.php'; include 'db_connect.php'; $sql = "SELECT * FROM cursos"; $query = mysql_query ($sql, $connect); ?> <table> <?PHP while ($row = mysql_fetch_array ($query)) { ?> <tr> <td> <div id="navigation-block"> <ul id="sliding-navigation"> <li class="sliding-element"><a href="prog_curso.php?cod= <?PHP $row ['cod_curso']; ?> "> …

Member Avatar for asprin
0
111
Member Avatar for justzamir

i am new to php coding and i am getting an error please help me to solve this Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' [ICODE] <option<?php if ( get_settings( $value['id'] ) == $option) { echo ‘ selected="selected" } elseif ($option == $value['std']) { echo ‘ selected="selected" …

Member Avatar for justzamir
0
599
Member Avatar for .:n'tQ-boy:.

Hi every one! In localhost, my site can send email easily (using smtp and phpmailer) but when i upload my codes to oni.cc, that feature does not work at all! Should i config some things or did i do something wrong?

Member Avatar for pzuurveen
0
131
Member Avatar for peter20

Hi, I am trying to delete multiple rows with select buttons. But my code does not work. Could you help me ? [CODE] $user_query= "SELECT * FROM user"; $user_result = mysql_query($user_query); $count=mysql_num_rows($user_result); echo "<form name='form1' method='post' action=''>"; echo "<table>"; echo "<tr>"; echo "<th scope='col'>#</th>"; echo "<th scope='col'>username</th>"; echo "<th scope='col'>Email</th>"; …

Member Avatar for klemme
0
142
Member Avatar for cliffcc

How to creat the photo gallery like these websites? [url]http://www.citibank.com.hk/[/url] [url]http://www.gigonzone.com/productinfo.do?method=viewTopProduct&subproductid=2757[/url] And one more question. How to creat the countdown clock? [url]http://www.gigonzone.com/productinfo.do?method=viewTopProduct&subproductid=2757[/url] Thank you very much!

Member Avatar for pritaeas
0
110
Member Avatar for klemme

Hi all, I have created a small test app - And I want to login users when they first arrive to the app - and log them out and redirect them after they have used it. Quite simple right, but using facebook php sdk - I am not able to …

0
145
Member Avatar for dualzNZ

Hi all i am having a small problem with my dynamic output code to produce a signature in php the signature comes out fine with text but when i add another .png image to add ontop of the main signature i get a black background when i would like it …

Member Avatar for cereal
0
131
Member Avatar for Ismatus3

Hello everyone , i just need to insert into my database the state of 4 checkbox , i'm trying now only for two . For this, i have two file formulaire.html and form.php , I've created for each checkbox a column in my database , so , what i want …

Member Avatar for Ismatus3
0
135
Member Avatar for borgyborg

Hi, I would like to have a php script or javascript to calculate the array textboxes where values fetched from the database. My array textboxes code below: [CODE] $sql="SELECT * FROM records WHERE is_active = 'Yes'"; $result=mysql_query($sql,$connection) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; echo "<input onkeyup=\"AddInputs()\" type=\"text\" class=\"validate[required,custom[onlyNumberSp],maxSize[5],minSize[3]] …

Member Avatar for borgyborg
0
413
Member Avatar for bops

Hello, I am looking for a little help with regular expressions in PHP. I have used them a bit before but not really to this extent. What I want to do is, parse a string and look for pattern matches in a certain format, in this case being %GETVALUE#% (Where …

Member Avatar for bops
0
140
Member Avatar for Virangya

hi, i encoded a long string before i sent it to a url trough javascript. now when i display it using php $_GET[] all the text displays correctly except a "'" (single quotation) it displays as, %u2019 . i'm not sure if there are other encoding that $_get[] won't convert.. …

Member Avatar for Virangya
0
141
Member Avatar for arunkumarm03

hi, please tell me anyone how to install LAMP in linux i don't know the admin password, while i am trying to install it, i am getting a error like mkdir /usr/local/apache2 mkdir: cannot create directory `/usr/local/apache2': Permission denied and also tell me how install using password.

Member Avatar for dualzNZ
0
118
Member Avatar for blackberry007

The pagination works fine if I dont use any search queries. And when I use search query the first page shows correct result but a problem occurs whenever I click the 'Next page' because it will show the values of the database instead of the continuation of the searched values. …

Member Avatar for mohamedasif18
0
162
Member Avatar for mohamedasif18

Hi guyz,, I have 2 table like, [B]table1[/B] [B]Name[/B], [B]Number[/B] Gates 123456789 Bill 987456321 John 874123658 Peter 562314752 [B]table2[/B] [B]Number[/B], [B]Message[/B] 123456789 Hai hello 874123658 Gudmorning 123456789 Something Went 123456789 verY Nice morning 562314752 Hai spidy.. My Question is how to select all records from table 2 and also i …

Member Avatar for mohamedasif18
0
170
Member Avatar for degroundshaker

Hi, This is my very first post in DeniWeb and I would like to start threading with the problem I have been facing from long. I am working on a blog community site where I want to show screenshots of user's blog in their profile page. For this purpose I …

Member Avatar for mschroeder
0
154
Member Avatar for asif49

This is the type of feed which I'm pulling data from... [CODE] <item> <title>This is a title</title> <description>Description.</description> <link>Link</link> <media:content width="60" height="50" url="http://www.someurl.com"/> <media:content width="150" height="80" url="http://www.someurl.com"/> </item> <item> <title>This is a title</title> <description>Description.</description> <link>Link</link> </item> <item> <title>This is a title</title> <description>Description.</description> <link>Link</link> <media:content width="60" height="50" url="http://www.someurl.com"/> </item> [/CODE] Here's …

Member Avatar for asif49
0
1K
Member Avatar for RazorRamon

I have a mysql table that has id, name, type, size, content, and link. I have pages download.php and showimage.php. I want the link to affect the image so when the user clicks it sends them their. I only created showimage.php cause I had ran out of options on how …

Member Avatar for RazorRamon
0
3K
Member Avatar for tweets23
Member Avatar for diafol
0
254
Member Avatar for accra

[ICODE]Hi, am wounding where i can find a script that can do something similar to this [url]www.avis.com[/url] Pls look at the right low side. This is just javascript, want something similar, but using php/mysql.[/ICODE]

Member Avatar for accra
0
70
Member Avatar for emannoor455

And if the case is that 1. having only 1 directory lets suppose Images 2. Added category and categorized images category wise... 3. Now want to count the images according to their category then what will be the code for this by counting images from 1 directory but for different …

Member Avatar for emannoor455
0
1K
Member Avatar for PF2G

Hi, i'm doing a profile page, where the user can see all his information. To begin i'm putting the information in a label, but for real i want to put it in textbox, so the user can change the information. That's one poit i would like change, the other - …

Member Avatar for degroundshaker
0
120
Member Avatar for tahirkhanafridi

Hi frnds i have problem with mp3 file upload with firefox i used this code for uploading [CODE]if($_FILES['mp3file']['type'] == "audio/mpeg")[/CODE] how ever its only works with IE but its not working with firefox plz tell me what to do? my all code is this. [CODE] $file_name = rand(1000,10000)."_".$_FILES['mp3file']['name']; $file_title = …

Member Avatar for diafol
0
100
Member Avatar for Virangya

hi, i'm passing a content in a div tag to a url. url looks like [ICODE]index.php?content=texttext &amp; text text[/ICODE] .. so on. when i'm trying to display this string, php only displays content up to &amp; it stops at '&' how can i stop this? i need to change this …

0
108
Member Avatar for zacharysr

Why isnt this form working? I have changed it around alot but it wont seem to let anyone log in thats not on the same server as me, it works on my computer and any computer in the house, but if its off of ours it wont work [CODE]<html> <head> …

Member Avatar for diafol
0
153
Member Avatar for Farhad.idrees

hi i have written code but there is mistake in calculation.... i want to show price according to quantity in table.....but quantity is right but price is not rice.. code is [CODE] <?php $brush_price = 5; $counter = 10; echo " <table border=\"1\" align=\"center\">"; echo "<tr><td>Quantity</td><td>Price</td></tr>"; while($counter<=100) { echo "<tr><td>$counter</td><td>$brush_price</td></tr>"; …

Member Avatar for cereal
0
183
Member Avatar for jhbalaji

Is there any script that can give Equivalent date function in php Example If i assign a variable as 26.1.2012 it should output as 26<sup>th</sup> January 2012 Can someone help me on this!

Member Avatar for diafol
0
196
Member Avatar for BenzZz

Hi, I have three drop down boxes for a Date field; one each for days, month and year. I want it so that when a year and month are selected they can be checked and then i can use those variables to insert the options into the days drop down …

Member Avatar for BenzZz
0
469
Member Avatar for Farhad.idrees

hi i want to echo multidimansional array by using for each loop... i m doing it but i m not able to do... i hope some onwe will help me.. my code is [CODE] $Families = array ( "Farhad" =>array("Ali","Haider","Kashan"), "Sufyan" => array("Shahbaz","Ali2","Azaan")); foreach($Families as $key2=>$values3) { echo "$key2 $values3"; …

Member Avatar for Farhad.idrees
0
169
Member Avatar for bashaash

Hi to all I am having this problem can anyone help me to solv this problem pls here is the code. first problem [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hermes/web07/b2501/mydomain.com/htdocs/media.php on line 40[/CODE] media.php code [CODE]<?php $connection = mysql_connect('localhost','test','test'); if (!$connection) { die ('error …

Member Avatar for diafol
0
170
Member Avatar for desup

Hi all, I need help with one script. If i Have string like [CODE]$str = "0001564[B]A[/B]58749655[/CODE] I need to find that [B]A[/B] in this string, and count which number is it (When tha A is on the third place, return 2 [starting from 0]) A think regular expression will be …

Member Avatar for desup
0
138
Member Avatar for breakforce

Why do i only see the status whether online or offline, another can not see it meaning that it can not, but i'm offline for others but for me i'm online ? [code]$time = time()+300; $user = $_SESSION['logged']; $query = mysql_query("UPDATE users SET status='$time' WHERE username='$user'") or die (mysql_error()); $query1 …

Member Avatar for breakforce
0
107
Member Avatar for trektrak

Hello, I'm creating a very simple time attendance management system. Just a quick one where you can login just your code and it will store to mysql by reference of time. My question is. Currently I only have one table which is "LOGIN" only.... since this is a time attendance …

Member Avatar for trektrak
0
123
Member Avatar for tarunfuture

Hey friends i just wanna know how can we change the url like if i have a index page now i want to include the login page on click to a link now the url should be index.php?action=login

Member Avatar for diafol
0
174
Member Avatar for morteza_ipo

Hi everybody. I have 2 selects tag. first select is country list. when user choses favorite country then the second select tag get new contents. I can make this with javascript but I wanna make this just with php and without any scripts! This is possible make this without any …

Member Avatar for morteza_ipo
0
248
Member Avatar for SUGARRUSH

Hey guys. I've been searching and searching but none of the information I get makes any sense. I have a simple problem. On my checkout page, I allow my customers to select a charity to donate to. I can't however figure out how to get the information from which checkbox …

Member Avatar for diafol
0
202
Member Avatar for jhbalaji

I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me …

Member Avatar for diafol
0
165
Member Avatar for deecoup

Hii Respected Forum members can anyone solve my problem what i want content restriction based on user role and sidebar category based on user Role i have three type of user role Beginner,Intermediate and Advance... Beginner Role: Can Read only seff Blog Intermediate: can Read self and Beginner Blog Advance …

Member Avatar for deecoup
0
226

The End.