No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
is there a way that i can check to see if a mysql table exists and if not add the table to the database with a session_id as a table name
Hi, I am making a mailing program and the problem i'm having is that I want to display the message exactly as it is entered for example, when the sender presses enter for a new line the reciever see's it. I have thought of using <pre></pre> tags but if the …
Hi, I need to display 4 items from a MySQL database in a 2x2 table (2 columns, 2 rows) i know how display just rows and columns, but how would I do both? thank you
I know this question has come up before and i've researched headers and i know that you can't output anything to the browser then change the headers, so my question is, is there a way to redirect with PHP inside a HTML document?
When the page loads for the first time the image would be cached, this would mean that it only needed to be loaded once...
I know you say that the fact that PHP is the easier of the available languages, but I have learned PHP without the aid of any books, you can just pick it up, PHP is a typical programming language (if there is such a thing) just simplified. Also there are …
I need to get information from 2 tables in the same mysql database [code=php]$sql = mysql_query("SELECT * FROM notes, customers WHERE `to`='next' LIMIT 5"); while($a = mysql_fetch_array($sql)){ $row_color = ($row_count % 2) ? "#EFEFEF" : "#FFFFFF"; echo("<tr bgcolor=\"$row_color\"> <td height=\"25\">" . $a['custid'] . "</td> <td height=\"25\">" . $a['name'] . "</td> …
I'm having trouble with a switch statement [code=java]Scanner scan = new Scanner (System.in); char chars = scan.nextLine(); System.out.println("A Andorra\n" + "B Belgium\n" + "F Finland\n" + "M Malta\n" + "S Slovenia\n\n" + "Choose a country from menu above:\n" + chars); switch (chars) { case 'A': System.out.println("You chose \"Andorra\""); break; case …
your code seems fine... [code]if(mail($to, "Comment from your website", $message, "from: $email") { header("location: index.html"); // This will redirect your visitor when the email has been sent } else { echo("Message was not sent"); }[/code]
I have a 2D array like this: [code]$cart = array(array("Item", 6.99), (array("Item 2", 13.99)); [/code] i am using this for a shopping cart i am making. I can add to it fine. What i need to be able to do is remove items from the array. I have been racking …
The End.
webguru07