- Since discovering more about my problem I have modified my question
A single user is complaining that (on XP and using IE6) they're not able to follow any links around my site. The behaviour they're seeing is clicking a link shows a blank page, but doesn't change the url in the address bar of the browser. Pressing refresh at this poin...
Looking around for a solution to this, I have found different methods. Some use regex, some use DOM scripting or something.
I want to go to a site, log in, fill out a form and then check if the form sent. The logging in part is the part I can't find anything on.
Anyone know of an easy way to do this?
...
Having trouble with pattern and replacement. How can I make the replacement echo a final product such as
INSERT INTO `table` (`person`, `file`) VALUES
('test','test'),
('test2','test2'),
('test3','test3');
I am trying to insert the string into SQL but I need to format the current string below to do so, and I need to have the last part...
hi, i'm new to regular expressions and would like to match the first and last occurrences of a term in php. for instance in this line:
"charlie, mary,bob,bob,mary, charlie, charlie, mary,bob,bob,mary,charlie"
i would like to just access the first and last "charlie", but not the two in the middle. how would i just match on the first and...
hello :)
I am trying to list out all records from a database that have not expired.
i have a jobs listing site being developed, i have code to grab all the 'active' job details from the database and list out.
$mysql = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die('There was a problem connecting to the database');
$stmtJ ...
Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it?
I'm working on a payment module and have a sort of "cancel" action that i would like to return the user to the step in checkout where you choose the payment method.
I currently return the user to the first step of the che...
Okay the code is,
code in first.php
<?PHP
session_start();
include("script.php");
?>
<form action="script.php" method=POST>
<input type="text" value="<?PHP if(isset($_SESSION['info']['firstname'])){echo $_SESSION['info']['firstname']; }?>" name="firstname">
</form>
i have saved the file in php and the "script.php" page has all the c...
Hi ,
Not sure if that was the best Title in the world but I hope this part gives you a clearer understanding of what my question is.
Basically I need to send a File using a Form to the folder "uploads" from page 1
I then go to page 2
I then need to then send the same file to the database from page 2
Is there a way on page 2 to def...
Does anybody know a ready-made, reliable way to tell the dimensions (width x height) of a MP4 encoded using the H.264 codec without ffmpeg or similar extensions, in pure PHP?
Thanks for all the answers folks. The bounty is running out and I will not have time to check the offered solutions before it does. I will accept the solution t...
This may not be an appropriate question, but I'm not sure how else to research this.
We have a client who uses PHP to connect to our .NET web service on a third party web host. They have been complaining about intermittent connection issues.
On our end we have tested the service and it works, no problems. It's an extremely simple servi...
Hi ,
Say if I upload a file on page 1 and submit the form
How can I make a session with the file which has been uploaded
for example
how would I get the session to store the file ?
...
this is my php code
$sql="SELECT * FROM table_name WHERE FROM_UNIXTIME(date, '%Y') = $q order by id desc";
$q = mysql_query($sql) or die(mysql_error().$sql);
$sql1="SELECT * FROM table_name WHERE FROM_UNIXTIME(date, '%Y') = $q";
$query=mysql_query($sql1);
this gathers the results correctly (everything is correct)
but when i use this...
getting an Warning: Invalid argument supplied for foreach() in /home/maxer/domains/x/public_html/x/items.php on line 41
line 41 is the foreach
$items = getUserList($user,0,100);
foreach($items as $item){
echo "<img src=\"".$item['image']."\">"; //image
echo ""; //title
echo ""; //button for add to list
}
...
How can i strip out the code after the "-" (including the -) in this title using php?
Buying a Home - Conveyancing Solicitors Dorset, Devon & Cornwall - LCS Legal Services
...
i know nothing about ruby but a lot about php.
when you code in ror...do you actually understand what is going on under the surface if you are a beginner? and do you HAVE TO understand it or is it good enough just to know enough to build something fast?
Looking for experiences from people who have made the transition.
...
I used F-Spot on Ubuntu to rotate some photos (JPEG files) before I FTPed them up to my website. This seemed to work just fine. However, if those images are opened in a web browser, they do not show as rotated. Nor do they if I download them to a Windows Vista machine and open them with any standard program there. I suspect that F-Spot r...
Hi,
Is there a way to find out visitors' timezone in PHP?
...
I've got php code that works as expected to authenticate a user against an Active Directory domain using LDAP. The same domain now has a one-way trust enabled - users in the trusted domain don't appear to be visible.
Example group named "mygroup" with the members:
local_dir_1
local_dir_2
foreign_dir_1
Queried with the filter:
(m...
i want to know how i can post a multi-dimensional array?
basically i want to select a user and selected user will have email and name to sent to post.
so selecting 100 users, will have email and name.. i want to get in php like following
$_POST['users'] = array(array(name, email), array(name2, email2), array(name3, email3));
any idea...
Hello there,
I've created a complex php contact form that I'm looking to implement into my contact page, but for some reason expression engine isn't recognizing the php code even though I've enabled it in my preferences.
Here's what the form looks like, I've tried a few things like embedding the file instead of pasting the actual code...