39,320 Topics
| |
| 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 … |
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 … | |
[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. | |
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 # … | |
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 | |
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. | |
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 … | |
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 … | |
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] | |
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 | |
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: … | |
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 … | |
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 … | |
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 … | |
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] … | |
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?? | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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: … | |
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 = … | |
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. | |
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 … | |
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 … |
The End.