61 Posted Topics
Re: You're asking an enormous question here, and I don't think you'll find a ready answer. Shopping carts are complex applications with significant security implications. If you're not familiar with how to code them you may be better off finding an existing shopping card system to use. There are many commercial … | |
Re: I think what you want to do is something a long the lines of this; [CODE=php]$result = mysql_query("select * from table"); $counter = 0; $rowcount = mysql_num_rows($result); while($row=mysql_fetch_array($result)) { echo "process row data"; if ($count < $rowcount) { echo "<hr />"; } $counter++ }[/CODE] Hope that helps. | |
Re: Or you could try something like this: [CODE=php]$source = "DABHolly,BuddyDAL1466 N Scooby AveDAIAtlantaDACGADAQ"; $name_start = strpos($source,"DAB")+3; $name_end = strpos($source,"DAL"); $name = substr($source,$name_start,$name_end - $name_start); $addr_start = strpos($source,"DAL")+3; $addr_end = strpos($source,"DAI"); $addr = substr($source,$addr_start,$addr_end - $addr_start); $city_start = strpos($source,"DAI")+3; $city_end = strpos($source,"DAC"); $city = substr($source,$city_start,$city_end - $city_start); $state_start = strpos($source,"DAC")+3; $state_end … | |
Re: Hi sesaz1; It's hard to answer without more information. Can you tell us a little more about your requirement? Also, I assume you're talking about updating a database table, not an HTML table on a page. Certainly, it's possible to update a database table without anyone clicking 'submit', but we'd … | |
I wrote this code because I wanted the members of my volunteer organization go have a place they could easily get the most current list of email addresses to send a message. This code reads the names and addresses from the database, and creates a comma delimited list of addresses … | |
I'm a little out of my depth in server-side scripting, so I have to ask for some help here. I had some great help yesterday getting a 'select-all' checkbox script working, but have run up against a wall on the next step. Here's what I want to do, it relates … | |
Re: A couple of comments regarding passwords. First, usernames are typically not case sensitive. I just use [iCODE]strtolower($password)[/iCODE] in my PHP code whenever I'm checking usernames so ensure that I'm comparing a lowercase version of what the user entered to a lowercase version of what's in the databae. Then the user … | |
Re: Because your source is [B]js/jxt1.js[/B] instead of [B][COLOR="Red"]/[/COLOR]js/jxt1.js[/B], we know that this is a relative address. What your code is saying is that the /js/ folder is a 'child' of whatever folder this page is executing from. Adding the slash before "js/jxt1.js" as in [B]/js/jxt1.js[/B]would say that /js/ is under … | |
Re: Keidi, welcome to PHP. At the start of your script, you can simplify it a bit by changing [CODE=php]$con = mysql_connect("localhost","root",""); if (!$con) { die('Could not conect: '.mysql_error()); }[/CODE] to [CODE=php] $con = mysql_connect("localhost","root","") or die("Could not conect: ".mysql_error());[/CODE] Here's a further modification that I use to make my error … | |
I'm pulling my hair out trying to find a checkbox check-all toggle script that will pass an array of selected to my server side PHP script. I really want a master checkbox that serves as a select-all/deselect-all control. I've looked at countless examples online, and the closest I can find … | |
The End.