39,402 Topics

Member Avatar for
Member Avatar for starsinthesky

i dont know if this is the right forum where i can post this question that i have. im making an organizer and i want to make a pop-up window that would remind the user of an upcoming event he has 10/5 days from that time he opens the organizer. …

Member Avatar for diafol
0
69
Member Avatar for prawin@123

Hai can any tel me , How i can get username from database where i logged in using userid . here is the code below. [code=php]if(isset($_SESSION['u_name'])){ include 'dbcon.php'; $qry = "SELECT * FROM tbl_user where user_id='".$_SESSION['u_name']."'"; $result = mysql_query($qry,$con); if($result) { $row=mysql_fetch_array($result); } while($row=mysql_fetch_array($result)) { echo ' Welcome ' .$row['user_name']; …

Member Avatar for ahmksssv
0
91
Member Avatar for dmkp

Hi, wasn't sure where to put this. However since I used PHP in my download script, felt it was appropriate to ask here. Anyway my problem is pretty easy to describe, any downloaded zips off my website are corrupted (however are fine before being uploaded). Is there a way to …

Member Avatar for cwarn23
0
215
Member Avatar for valsaraj

What is the best method to share session across multiple domains on same machime. ie, domain name different like abc.com, xyz.com but single application.

Member Avatar for cwarn23
0
3K
Member Avatar for valsaraj

Which is the best method to get response from a web service URL? for example, we can use cURL, file_get_contents, file, .. to get response. Can anybody help me to find a best one?

Member Avatar for mschroeder
0
100
Member Avatar for gagan22

Hello everyone, I have changed hosting my website. But at the time of connectivity to database , i have changed mysql_connect( ) parameters. still i am facing some problem in opening website. what can be problem . please suggest me. thanks, gagan

Member Avatar for mschroeder
0
95
Member Avatar for Andrieux

I have three tables: posts, topics, and forums. Each row in post table has a topic id and a author name. Each row in topics has an id that corresponds with the topic_id in posts, and then it has an id for the forum that it (the topic, containing the …

Member Avatar for Andrieux
0
169
Member Avatar for onaclov2000

I have a home server with DynDNS setup, when I go to my dyndns page it loads my webpage specified, what I'd like to do is click a button on my webpage and the [B]server[/B] runs a specified program possibly with parameters i.e. someprog.exe, I don't want the Local computer …

Member Avatar for onaclov2000
0
117
Member Avatar for swearword

Hello everyone, I am not sure what I am wanting to do is possible, but thought I would ask here to find out. I want to use a PHP redirect script to load balance my website as it is starting to get hammered so I want to redirect say 1 …

Member Avatar for justinmichaels
0
1K
Member Avatar for kevin wood

i am trying to write a script that will send out an email to all the email addresses stored in a mysql db when the site has been updated. the code i have so far is as follows [CODE]$sql= "INSERT INTO $table (date, title, article) VALUES ('$a', '$b', '$c')"; if …

Member Avatar for kevin wood
0
188
Member Avatar for OmniX

Before you use input, it is a good idea to validate it for mailicous content before use. So you would make a function validation, which would then contain what validations checks? - mysql_real_escape_string - addslashes / stripslashes - get_magic_quotes_gpc - html_entities - etc Anything else you think I should or …

Member Avatar for OmniX
0
114
Member Avatar for chris055

I am a total newb First I have this code: [code=php]$post_renew = trim(htmlspecialchars($_POST['renew'])); if ($post_renew && $_POST['ad']) { $renew_days = ($admin_renew_days*86400); $expiry = time()+$renew_days; $expiry_dt = date("Y-m-d H:i:s", $expiry); if ($admin_renew_cre_dt == 1) { $create_date = date("Y-m-d H:i:s", time()); $update_create_dt = ", createdon = '$create_date'"; } $adlist = implode(" OR …

Member Avatar for phobia1
0
71
Member Avatar for gagan22

Hi everyone, I am facing one problem. In one php page which is showing a table or record of an employee and i want to show that table in excel sheet with using download button which table is coming in php file. So how i can do this using php …

Member Avatar for gagan22
0
2K
Member Avatar for OmniX

[url]http://au2.php.net/function.mysql-query[/url] [code] mysql_query($query, $link_identifier); [/code] Which commands require $link_identifier, thought there be a list on google but to no avia. :( Thanks, Regards X PS: There not required but its good practice you use the connection string after the query string.

Member Avatar for nav33n
1
227
Member Avatar for ned69

Hi there, I am trying to scrap content off a site. I have a couple of working functions, one that scraps the full content which consists mainly of a bulleted list: # Business Day: Candidates Who Carry a Lot of Clout # Business Day: Minister Warns Land Reform Beneficiaries # …

0
68
Member Avatar for OmniX

Yes everyone will point to using ahref<a href="index.php?variable=1>. But im just wondering if I can do the same thing using headers header("Location: index.php?variable=1"). Note: Yes I can also use sessions but wish to user headers. Thanks, Regards X

Member Avatar for nav33n
0
107
Member Avatar for molistok

I have a user model and friendship model. Now I want make that when one user have accepted a new friend, the others friends of this user could see this last activity of her friend. How is the best form to do it? Thanks.

Member Avatar for molistok
0
324
Member Avatar for websurfer

url variable name itself has space in it... how can I retrieve it in php?? Hi, I got this problem, where I need to capture get url variable pairs, but these are coming from an automatically created javascript and has this format: page?custom zip=33021&custom city=boston... and so on... If you …

Member Avatar for ShawnCplus
0
65
Member Avatar for Lensva

I have 2 websites: website A which is blank and is categorized; website B which doesn't have categories but has information; I want php to go to website B, get all the new information that has been added since last visit, and then update websites A database; now i know …

Member Avatar for Lensva
0
92
Member Avatar for ahmksssv

Hi frnds... I need to integrate php variable with vedio scripting file..... i fetch my vedio file path from database...here i need to replace the file=[B]videos/movieimgae.swf[/B] ....with $vedio.. [CODE] <?php $vedio="vedios/aaa.php"; ?> <SCRIPT type=text/javascript> var s1 = new SWFObject('player.swf','player','400','300','9'); s1.addParam('allowfullscreen','true'); s1.addParam('allowscriptaccess','always'); s1.addParam('flashvars','file=[B]videos/movieimgae.swf[/B]'); s1.write('preview'); </SCRIPT>[/CODE]

Member Avatar for ShawnCplus
0
305
Member Avatar for OmniX

There are a few: - I am trying to use it in a function within a function, which then I call the second function (mysql > function > function) ? - Using within while loops (while ( VAR mysql_fetch_aray (query)) ? So any ideas? THanks, Regards X

Member Avatar for ShawnCplus
0
69
Member Avatar for veledrom

Hi, Data is stored like this in Varchar(2500) (with paragraphs): [code] Looking for NET developer, programmer. Required skills: VB.NET NET MsSQL XHTML If you are interested, please call "000" number's test. Thanks [/code] When i echo it, it is displayed like this: [code] Looking for NET developer, programmer. Required skills: …

Member Avatar for veledrom
0
79
Member Avatar for ioan1k

This is something I have avoided for the longest time......and now I need a bit of help ??? What I am trying to do is simply build a recursive array based on parent->child, the recursion comes when their is the possibility to add any number of sub-children to sub-children so …

Member Avatar for ioan1k
0
99
Member Avatar for kevin wood

i have this line of code which i cannot see a problem with but i keep getting an error. [CODE]$sql= "INSERT INTO emails (Firstname, Lastname, email, table) VALUES ('$a', '$b', '$c', '$table')";[/CODE] the error i keep getting is [CODE]Error: You have an error in your SQL syntax near 'table) VALUES …

Member Avatar for nav33n
0
106
Member Avatar for deesudesu

I know this might sound silly....please forgive on this one I am not a programmer, but simply a graphic designer, but our programmer left us,and since that, my boss (which also my father) askin me to help about this matter. This company is still looking for the replacement, but we …

Member Avatar for Shanti C
0
109
Member Avatar for dwlamb_001

I have written an application to do the following [list] [*]upload a txt file to the server [*]move it from the temporary directory to a more permanent one [*]parse the test file line by line and do some processes [*]create and write the result to a new text file [/list] …

Member Avatar for dwlamb_001
0
108
Member Avatar for Aamit

I am calling some data from iframe. [code=php]<iframe id="pframe" width="'.$game['iframewidth'].'" height="'.($game['iframeheight'] + 20).'" src="'.$path.'" frameborder="0" scrolling="no" align="middle"></iframe>';[/code] i want to call my css for this frame ? How to call css for iframe??

Member Avatar for almostbob
0
336
Member Avatar for digi23

Hello Guys Iam running a exe file in my pc to connect to my server,And i have wamp installed in my pc...i want my team members to remotely close and start the exe application while iam out :D i would like if someone helps me....i just need stop,restart,start buttons functions …

Member Avatar for chrishea
0
74
Member Avatar for naekur

Hi there! I'm having a very odd problem with mysql_fetch_array my code looks like this: [code] function getMachines($domain){ if (! is_resource ( $this->connection )) { return false; } else { if (get_magic_quotes_gpc ()) { $domain = stripslashes ( $domain ); } $query = sprintf ( "select machines from `domains`.`%s`", $this->escape …

Member Avatar for nav33n
0
165
Member Avatar for emiola

Despite the fact that my script runs perfectly well on the server, it fails to submit form data into mysql database. Kindly look into this for me. see code below: [code=php]<?php> $dbcnx = mysql_connect("localhost","user_name","password"); if (!$dbcnx){ exit('<p>Unable to connect to the database</p>'); } If (isset($_POST['submit'])) { $SchoolName = $_POST['SchoolName']; $SchoolEmail …

Member Avatar for nav33n
0
243
Member Avatar for veledrom

Hi, I use PHP Swift mailer to send around 2000 emails in one go. I just wonder if there is a chance to find out: Who have received? Who have not received? Any idea? Thanks

Member Avatar for veledrom
0
1K
Member Avatar for Syntax12

Here's the dilema.... I have a site, and I want users to be able to submit some information to a database... so for example Title: ____ Description: ____ PHP Image Upload: Ajax? [Submit Button] I don't want to use sessions, or anything of that matter if at all possible, because …

Member Avatar for ioan1k
0
87
Member Avatar for veledrom

Hi, I use login screen in my php page withoutp HTTPS. HTTP only. I use SHA1 for password encription. What do you suggest me to do for best security practise when i check username and password from database for login process? Thanks

Member Avatar for mschroeder
0
88
Member Avatar for arnaud257

Hi, Using dreamweaver / webassist extension / Apache 2.0.59, MySQL 5.0.41, PHP 5.2.6 on a mac: After selecting my criteria on my search page I go to a result page where I display several information from my database. I have 10 results per page and each result has field displaying …

Member Avatar for arnaud257
0
195
Member Avatar for khr2003

hi I have a table in my database that look like this: id - name - orderno the table has data in the fields of id and name but orderno is empty. I made a html form based on the data of this field, in front of each name field …

Member Avatar for nav33n
0
92
Member Avatar for ashish100

Hi, I am using Apache's mod_rewrite module in order to enabling url rewriting.I have some queries. (1)My website has a large database and large no. of files.I want to apply rule on only one file.So every time some event occurs(user clicks on any link to open the corresponding page) control …

0
50
Member Avatar for gagan22

hi everyone, I have found one warning in my php code. How it can be removed. pls help me . It is very urgent. warning is like this on a php page......... Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2 Warning: …

Member Avatar for gagan22
0
557
Member Avatar for maxicube

Heyy, need some help here. ok, I've got my script here right. [CODE]<html> <head><title>Display Records</title> <style type="text/css"> td {font-family: tahoma, arial, verdana; font-size: 10pt } </style> </head> <body> <?php $db="aseco121"; $link = mysql_connect('127.0.0.1: 3306', 'root', '******'); if (! $link) die(mysql_error()); mysql_select_db($db , $link) or die("Couldn't open $db: ".mysql_error()); $result = …

Member Avatar for maxicube
0
215
Member Avatar for MDGM

Hi all, I need to do a query like this: [CODE]SELECT * FROM table1 WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current primaryKey*) > 150[/CODE] How do I get the *current primaryKey* in order to do the second section of the query? Max.

Member Avatar for nav33n
0
3K
Member Avatar for HB25

Hi I explain what I have: user will visit the site to change booking detail using their client and booking ID, once thy typed their ID they will be directed to another page where they will be welcomed and they will be presented with a form to enter the booking …

Member Avatar for HB25
0
3K
Member Avatar for JasonCMK

Hello, I am quite new to PHP and MySQL. Could anybody please help me with this problem? Suppose I have a database like this, [ICODE][U]Type[/U] [U]Name[/U] [U]Price($)[/U] A ABC 150 A DEF 350 B XYZ 250 B UVW 450 C ....................... .............................[/ICODE] The user is required to choose the type …

Member Avatar for verruckt24
0
72
Member Avatar for servis

i want to provide an option to user to preview the form input before form submission, it runs well, but it does the same action on pressing submission or preview button html [ICODE] <form> <tr> <td width="26%" height="30" align="right"><font face="Calibri">Category:</font></td> <input type="text" name="category" size="30"></td> <td width="26%" height="30" align="right"><font face="Calibri">City:</font></td> <input …

Member Avatar for nav33n
0
2K
Member Avatar for palani08

Hai, I want to generate license key for my script for that i used PADL (PHP Application Distribution License System) classes.but I am not cleared from this classes if anybody used this padl license system please give me the details or guidelines how did you generate the license for your …

0
55
Member Avatar for Coward

hi all i have problem with save zero before number in the var example [CODE] $num=0024; echo $num;// show 24 [/CODE]

Member Avatar for nav33n
0
87
Member Avatar for freelancelote

Hi, I'm trying to set a simple send an email script as I found it on the internet. Here is the code: [CODE=php]<html> <head> <title>PHP Mail Array Loop</title> </head> <body> <?php $to = "mymail@anydomain.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "anybody@somedomain.com"; …

Member Avatar for nav33n
0
264
Member Avatar for bar7b

Im trying to build a site that gets info, lets say product prices, [B]from different xml sources that have a different structure[/B]. Then it displays all the prices sorted.. My first guess is to import all the data from the different XMLs to a mysql db after the sorting of …

Member Avatar for bar7b
0
126
Member Avatar for jakx12

Ok so what i'd like to know is how to have two where statements in a mysql delete query. I get an error if i do this: [ICODE]mysql_query("DELETE FROM user_notifications WHERE username='$acc' AND WHERE notification='$note2'") or die(mysql_error()); [/ICODE] Any help would be much appreciated, I know this is a silly …

Member Avatar for vinothkumarc
0
316
Member Avatar for manish812

HI I want to submit csv file data into mysql pls tell me how 2 do if any one has any program made to insert csv file into mysql pls give me the code i really need it pls help me bye

Member Avatar for mattjfox@gmail.
0
204
Member Avatar for alexgv14

I have this code which display random images from any folder on a webserver. You just have to give each picture the same name but with a number at the end of it (make foo.bar foo1.bar footype.bar foo2.bar). Does anybody have any idea how to make this work accept not …

Member Avatar for alexgv14
0
138
Member Avatar for punithapary

Hi, I trying to creat code to upload images .in my code i can upload files but i cant upload images can any one tell me what is the problem in my code this is my code [code=php]<?php $command=$_POST["command"]; If($command == "") { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 …

Member Avatar for xantini
0
160

The End.