473,800 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
0
1,096
thread by: Jorge Reyes | last post Oct 30 '07 by: Jorge Reyes
Wow this is very very useful believe me, at least for me, but i have two more questions, i have the next code: while($row = sybase_fetch_assoc($result)) { while(current($row)) { $key = key($row); $data = current($row); print ("<br>".$key."<br>".$data); next($row); }
0
347
thread by: Jorge Reyes | last post Oct 30 '07 by: Jorge Reyes
Wow this is very very useful believe me, at least for me, but i have two more questions, i have the next code: while($row = sybase_fetch_assoc($result)) { while(current($row)) { $key = key($row); $data = current($row); print ("<br>".$key."<br>".$data); next($row); }
1
1,258
thread by: runway27 | last post Oct 30 '07 by: jorbroni
I have a table in mysql which i have defined as date and the values that are inserted have the following format for example : 2007-10-30 08:02:40 My requirement is to run a select query to retrieve a particular column on a specific date ex= "SELECT columnname from tablename where columnname='$dt'"; $sd=mysql_query($selectdate);...
15
15,244
thread by: Craig Hurley | last post Oct 30 '07 by: Craig Hurley
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact, with the exception of adding "X-Forwarded-For". In other words, when user@y.com received the email, it will be from user@a.com, but will contain a reference that it was forwarded by user@x.com. ...
3
4,400
thread by: Cool Dude | last post Oct 30 '07 by: AnrDaemon
I installed PHP 5.2.4 on Apache 2.2.6 with MySQL 6.0.2 alpha on Windows XP Professional Service Pack 2 and everything is working fine but the MySQL extension for PHP. The error log in Apache says: PHP Warning: PHP Startup: Unable to load dynamic library 'H:\ \php-5.2.4-Win32\\ext\\php_mysql.dll' - Invalid access to memory location.\r\n in...
1
1,393
thread by: joanna | last post Oct 30 '07 by: AnrDaemon
Hi, I recently implemented the search script here on my website http://www.devpapers.com/article/306 However, what I want to do now is display the recent searches on the index of the site. How can I go about doing this? insert each one there then that way I can select them later?
4
1,952
thread by: martin99 | last post Oct 30 '07 by: AnrDaemon
Hi, I know that Clickbank does not have an api utility (unlike Paypal etc) so it hard to get the data back to an application to check sales etc I see a POST in a PERL user group and they got round it. ( see...
2
3,630
thread by: slb813 | last post Oct 30 '07 by: slb813
Hello all, I am new to php and I can't seem to get some code to insert information into a Access database. I am running Apache 2.2 server with php 5.1.2 and on a Windows XP SP2 platform. Here is the code I am attempting to get running, if someone is intrested in helping a new php person out. <?php $Fname = $_POST; $Fphone = $_POST;...
15
2,209
thread by: mayormel | last post Oct 30 '07 by: mayormel
Hi! I'm new to this website development and trying to finish my webpage. Now I'm stuck at the stage where i have to devolop a form for user to imput data and have it sent to my email. (user would upload the picture with name and submit). In order to do that, im not really sure wat to use. Im using windows to build my webpage and would host soon....
2
1,285
thread by: Jorge Reyes | last post Oct 30 '07 by: macca
hi there, this is very useful for me, so my issue is, when i use a $result = sybase_query("sp_something") while($r = sybase_fetch_array($result)) { etc..... how can i get the name of the columns? for example for the raw data Col1 Col2 Col3 ------------------------------------- hi 15 other value
9
4,024
greensleeves
thread by: greensleeves | last post Oct 30 '07 by: Lumpy
Hi, Im a newbie to PHP and I'm wondering if someone could help me out with this Tryng to search out products from a database by clicking a checkbox option for instance if description contains the word "bluetooth" and "MP3" <input type="checkbox" value="bt" />Bluetooth <br /> <input type="checkbox" value="cs" />Card slot <br /> <input...
7
2,323
bugboy
thread by: bugboy | last post Oct 30 '07 by: bugboy
I have a comma delineated string from an html form: "wind, sun, ocean, lake" i can use explode to turn it into an array but what i want to do is take each word and assign it to it's own variable (The number of words in the string may change), to end up with this: $word1 == 'wind' $word2 == 'sun' $word3 == 'ocean' $word4 == 'lake'
2
5,343
code green
thread by: code green | last post Oct 30 '07 by: code green
On the first of each month I need to create a report from the previous month covering 1-15 and 16-end of month. I am using the following code which forms part of a mssql query and part of the filenames.$month = date('Y-m',strtotime('-1 month')); $starts = array($month.'-01',$month.'-16'); $ends = array($month.'-15',$month.'-31'); This creates...
2
7,269
thread by: mikefromvt | last post Oct 30 '07 by: otrWalter
Hi. I have to verify and filter data received via std input through an HTML form that is embedded within a php scripts. I am unable to apply the filter to the std input data. I have been trying to push the std input to the filter (in the form of a function) via the ONSUBMIT feature of HTML forms. Should this work? Anyone know of a good,...
1
1,344
thread by: Ming | last post Oct 30 '07 by: ZeldorBlat
Hi there, I am not sure if this is the right place to ask this question :) I am looking for a snipper program that can give me the final content of a web page that visitors will see. If a web page contains iframe or server-side include, corresponding html code will be <iframe ...<!--#include virtual=xxxxx --> respectively. I want to...
1
3,247
thread by: hemel | last post Oct 30 '07 by: code green
<html> <body> <script type='text/javascript'> var net = new ActiveXObject('WSCRIPT.Network'); alert(net.UserName); var username=net.UserName; </script> </body> </html>
0
1,345
thread by: paul | last post Oct 30 '07 by: paul
We are looking for two PHP developers (1 senior & 1 junior). You will be assisting with new development, bug fixes, installs and the like on a new product that is being funded by a large global financial company and is approaching production. This is a great time to join the current, small, team. This is a work-from-whereever-you-want...
1
3,270
thread by: vmirage | last post Oct 30 '07 by: Thomas Hamacher
Hi, I need to resize the shmop but it seems that I can't seem to get it right. Here's what I did // initialize with 100 byte $shm_id = shmop_open(0xff3, "c", 0644, 100); echo shmop_size($shm_id); shmop_delete($shm_id); shmop_close($shm_id);
3
2,797
thread by: Rajesh | last post Oct 30 '07 by: Captain Paralytic
Have you guys wanted to have stock tickers on ur desktop/ web pages, but can't use applets as they were heavy, too much configuration than here is one approach and light weight solution all for free. Ajax based solution refreshes data at configured time interval and you don't have to wait for your favourite stock to appear in ticker. You...
3
9,883
thread by: Chris | last post Oct 30 '07 by: Thomas Hamacher
How can I change the following snippet to have the array key start at 1 and not 0? $timetable = explode(',', $row); It is taken from the following code...first time around the loop $timetable = $timetable which puts me out of sync with the number of fields I am creating ie. I lose $timetable. // Weekdays
2
1,937
thread by: Vestal | last post Oct 30 '07 by: adamalton
Hi all, I'm developing a remainder kind of thing in PHP. I've some events which will be fired after certain amount of time..E.g..if one event is fired at 7:00 am then next event should be fired on next day at same time, so this is going to be in infinite loop.. while(true) { event ; sleep();
3
1,398
thread by: Fons | last post Oct 30 '07 by: C. (http://symcbean.blogspot.com/)
My script acts on a file (approx. 100k) offered by the user. Actually, it acts on a variable that should have the contents of that file in it. I could try to let users upload that file and then read that file into a variable, but before I figure out how to do that: is this unnecessary overhead? Is it possible to do it without creating a file...
9
4,451
thread by: nma | last post Oct 30 '07 by: MarkoKlacar
Hi There, I would like to create a log files/usage file that can show number of users using my system, how many times certain page was viewed, who are using most to the system, at what time etc. What should I do? I'm developing a web based application. Should I create a new table in MSSQL to store log data? Thanks
6
5,894
thread by: mfoolb | last post Oct 30 '07 by: McKirahan
Hi, I need to import lot of data from html files (all the same layout and tables name) to a MySQL db. Is there any class that fullfill my needs? What's the fastest way to accomplish that? TIA for help.
1
5,655
thread by: webandwe | last post Oct 30 '07 by: webandwe
Hi, I got the page login.php that have a script that logs you in and then go to loggedin.php with a piece of code to validate your loged in. The validate stores the username, how can I echo the username out onto the page? Login.php

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.