39,320 Topics

Member Avatar for
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
68
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
224
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
66
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
106
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
285
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
64
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
89
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
275
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
67
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
77
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
96
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
104
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
107
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
106
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
333
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
72
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
161
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
235
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
81
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
86
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
191
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
89
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
48
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
547
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
212
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
69

The End.