PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello everyone!
I just have a quick question, I'm trying to get a variable $tech1 to be represented as another variable which is always changing i.e.:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]
Having one more issue with my script now, other than it not sending e-mails (need to configure my mail server still)
On the page that sends the e-mail I have it setup to input the data into the database, then repull the data so that I can get the ID row that goes with the submission I had just put in (which is deemed the ticket #)
echo "<html>";
echo "<body>";
echo "<br><br><br><br><br><center><img src='img/GA-AS22I.jpg'></center><br><br>";
echo "<font face='verdana' size='3'>";
echo "<center>Thank you for your submission, $fname.</center><br>";
echo "<center>Your ticket number is <font color='#FF0000' size='4'>$ids</font></center><br>";
echo "<center>A technician will contact you in the order your ticket was received.</center>";
echo "</font>";
echo "</body>";
echo "</html>";
If I queried the database by the time submitted, it would pull the information from the table and then if it were submitted at the time from the form on the previous page--it would pull that specific record and I could then echo the id, I was trying to find a way around it pulling '45' all the time and displaying the actual ticket number for the ticket that was just submitted.
Is there a way to query the database search for the last 'x' amount of records then sort those records by something and pull the information needed out of a column?