I'm not sure if this is what you're looking for, and I'm no expert, so this might not be the perfect solution. But I would use this: ${"car$x"} to refer to $car1, $car2, $car3, etc. in a loop where you increment by $x.
Hope that helps!
Susan :)
Does anyone have any experience using ExecCommand with the "createlink" function? I'm using an editing system that uses this to set a hyperlink on an image. But it's creating a border around the image.
The code that's being utilized is:
iView.document.execCommand('createlink');
It...
Does anyone know if there is an easy way to connect to a database that is outside the server?
In other words, I have a mySQL database on server #1 that I can access just fine with PHP, on several domains that use that server. But I also want to call that database from server #2 and display the...
I know there are several ways to handle the security issue of keeping database passwords safe from hackers. But which is the best method to use in a shared hosting situation?
Is it better to store the database user name and password in an include file in the home directory, above the public...
Just a quick question here. How fast is PHP with mySQL, in comparison to ColdFusion with MS Access? I have a web database with close to 2000 products and several other tables in MS Access, using ColdFusion for coding. It uses session variables, which never seem to work for me in PHP (I think it...
Thanks, Vic!
I do appreciate the info. I talked to the host, and he said the SMTP is set up on the ini file (even gave me the SMTP name), so I'm not sure why I'm getting the error. The error message is:
Warning: Server Error in f:\www.site_com\test.php on line 9
and the code on test.php is...
A quick question here. Is there anything that I need to know when using the mail() function with a Windows server vs. a Unix server?
I'm using the following code at its most basic form:
mail("$email", "Test", "Test");
and it doesn't work on the Windows server...
Does anyone know how to return emails to the sender if the email addresses are incorrect?
I have a newsletter script that includes:
mail("$Email", "$Subject", "$MessageStr", "From: $FromEmail\r\nReply-To: $FromEmail\r\nReturn-Path: $FromEmail");
in a...
Thank you very much!!!
I actually didn't have access to the server, but I was able to use the line in an .htaccess file, and it worked like a charm!
Susan :)
I have loaded several index.php files before, and the system works fine if you use the directory URL. For example, www.website.com/directory/ would pull up www.website.com/directory/index.php.
But for some reason, on this particular server, the index.php file is not showing up when the...
Thanks for the info.
Unfortunately, I wanted to check for one or more keywords, so it wouldn't work until the keyword was split. I finally used the following:
$searchterm = split(" ", $keywords);
$countsearch = count($searchterm);
$viewquery = "SELECT * FROM Items, Companies...
Thanks for the info.
Actually, I am using a database, and the above code is just part of my sql query in CF. But I didn't know the equivalent code format in PHP.
ie. instead of <cfloop>, would it be best to use a while statement in PHP? If so, how should I break up the search string if it has...
Hello,
I have just started PHP programming, and am stuck on keyword searching. I'm trying to create a basic search box that would allow a visitor to type multiple keywords, and have the system search in a specific database field for those keywords. I've done a similar thing in ColdFusion, in...
Thank you so much; this worked great! I appreciate the post so much! That had just been bugging me for a week now, and here it turns out the solution was pretty simple.<br><br>BTW, your site is great; I liked the book recommendations for web design as well as...
I'm very new to ColdFusion, and I have a question that's stumping me. In my application, I have a category and subcategory (which is related to the category). I want the user to be able to select a choice from a drop-down box that lists both the category and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.