Search:
Type: Posts; User: Blizzard84
Search :
Search took 0.01 seconds.
Hi guys,
I'm trying to create a shopping cart. A product can have a few options such as size and color. I'm having trouble counting quantities from different mixes and matches. Let's say I have...
Thanks a lot for all your replies, that clarifies a lot of things.
Can someone give me some examples that would be considered a large scale system?
Thanks
Hi guys,
My query grabs the total movies and pictures which are currently out for a certain gender.
I only display stars that have at least 1 picture or 1 movie.
The below works, just...
Hi,
I need to grab the total number of videos for each category where date_added is < today. Each video can be in multiple categories.
Video
id
title
description
date_added
Hey Art,
they use mod rewrite with a .htaccess file and is more server related. Here's a tutorial.
http://www.workingwith.me.uk/articles/scripting/mod_rewrite
After the .htaccess is added,...
What's the best way to add multiple users in a user database that has 4000 entries? I want to allow the admin to do a multiple select and implode the ids, but 4000 is too big of a list.
Any other...
You will have to change the name into an array type. It looks like your posting to a php so that php will have to grab the post.
<form action="FormToEmail.php" method="post">
<table>
...
Put the echo underneath your update query. Should output an error if any.
mysql_query("UPDATE guests SET guest_1 = '$column1' where id = $id limit 1");
echo mysql_error();
session_start();
if (@$_SESSION['auth'] !="yes")
{
header("Location: login_form.php");
exit();
}
$host="localhost";
$username="username";
$password="password";
I'm guessing guest_1 is a string so use this instead.
mysql_query("UPDATE guests SET guest_1 = '$column1' where id = $id");
If that does work comment out
header("Location: rsvp_view.php"); ...
You could also post it back to the same file, and use if statements. It might save you a step, but this'll do.
Once you feel more comfortable with php, you can fool around with it.
Hi once again,
Now you need to create the form. You have all the information in the array $row now.
This would be a form that you could edit.
<form action="edit_process.php"...
Hey!
Sorry I took so long to get back to you. I'm glad you found the error!
I was going to mention about making sure you had a column "id" too haha.
Hey,
I'm at work right now, so I can't go through all the code lol.
One quick thing i see is
<td width="10%"><a href="edit.php?id=$row['id']">Edit</a></td><td><a...
You need to create 2 links for each row you're displaying
echo "<td><a href=\"edit.php?id=$row['id']\">Edit</a></td><td><a href=\"delete.php?id=$row['id']\">Delete</a></td>";
Now in your...
Depending on what you're trying to achieve.
You could use session variables to store the pages. This will only work if you own the pages. If your link is going to another website, you will need...
Based on your colspan = 2, i'm guessing you're just going to put that list.php underneath all your data.
Try this.
<table border="0" cellpadding="0" cellspacing="5">
<?php
I'm kind of confused, are you trying to put $info['Name'], $info['Video'], and $info['Title'] beside each other?
Or do you want to include List.php for each result beside each $info row?
...
Actually I believe you can do it with php. Try this.
header('Refresh: 30; url=index.php');
$fileTime = filemtime($filename);
$currentTime = time();
$age= $currentTime - $fileTime;
Just echo something in the php file.
<?php
echo "test";
?>
and run just the php. If there's still nothing, then most likely it is a server issue. The code works.
Hi,
The code seems to be working for me.
What happens when you submit? Blank screen? or Page not found?
Hey,
Try this.
for($j = 0; $j < count($q_frag); $j++)
{
if (substr($q_frag[$j], 0, 1)=='A')
{
Hi NogDog,
This was exactly what I was looking for.
Is there a way to grab combinations of words using this way based on a user_id? Not really liking the randomization
So i need
1, 1
1,...
Hi NogDog,
Thanks for the quick reply.
Yes, I want only one of the words randomly or not.
Thanks