Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 17 of 17
Search took 0.16 seconds.
Search: Posts Made By: Link187
Forum: PHP 05-07-2012, 10:37 PM
Replies: 15
Views: 8,035
Posted By Link187
Agreed. I don't fully understand or trust IE's...

Agreed. I don't fully understand or trust IE's behaviour so I'm using your hidden field solution (even though my form has more than 1 field).
Forum: PHP 05-07-2012, 08:22 PM
Replies: 15
Views: 8,035
Posted By Link187
Sorry I should have made it clear that I used...

Sorry I should have made it clear that I used your code exactly and simply replaced:
<input type="submit" name="submit" value="Then the next time, click this">
with:
<INPUT TYPE="image"...
Forum: PHP 05-07-2012, 08:37 AM
Replies: 15
Views: 8,035
Posted By Link187
Tested everything (from the posts above) in IE6...

Tested everything (from the posts above) in IE6 and IE7 and verified what you wrote apart from when I replaced:
<input type="submit" name="submit" value="Then the next time, click this">
with:...
Forum: PHP 05-06-2012, 06:36 PM
Replies: 15
Views: 8,035
Posted By Link187
Does this bug also affect images as since most...

Does this bug also affect images as since most form nowadays have an image as a submit button:

<form action="includes/regformprocess.php" method="post" id="reg" name="reg" onsubmit="do something">...
Forum: MySQL 05-04-2012, 11:56 AM
Replies: 6
Views: 735
Posted By Link187
Thanks guys, This is my first database design...

Thanks guys,
This is my first database design so I want to get things right from the start. "Concurrency management" was what I was trying to get at. I will now definitely have one table for all...
Forum: MySQL 05-04-2012, 11:47 AM
Replies: 0
Views: 312
Posted By Link187
PDO code for injection prevention

Hi, I need to prevent sql injection, can you please tell me if this code is safe (I intend to reuse it on lots of forms).


$STH = $dbh->prepare("INSERT INTO users (username, pass, email,...
Forum: MySQL 03-23-2012, 03:26 PM
Replies: 6
Views: 735
Posted By Link187
Database multiple tables vs queues

Hi,

I'm creating a database for a page that's similar to a forum.
Is it better to have a new table for each post or have a single table for all posts?

I've read a little bit about database...
Forum: MySQL 03-13-2012, 07:28 PM
Replies: 3
Views: 334
Posted By Link187
Thanks, I think you answered my question..I'll...

Thanks, I think you answered my question..I'll just use while loops but wanted a better understanding of foreach loops.


The subheading of this forum section says:
so since this has to do with...
Forum: MySQL 03-13-2012, 12:56 PM
Replies: 3
Views: 334
Posted By Link187
Foreach for outputting a column of data

Is there anywhere to achieve this with a foreach loop?


$query = "SELECT * FROM foods WHERE food_id=1 ORDER BY position ASC";
$result_set = mysql_query($query);

while ($fruits =...
Forum: MySQL 03-13-2012, 12:43 PM
Replies: 17
Views: 1,040
Posted By Link187
It doesn't seem to be a create query, it looks...

It doesn't seem to be a create query, it looks like a string. Your create query should look a lot more like your INSERT query.

edit: My bad: if it was a string it would be red. It looks like a...
Forum: MySQL 03-12-2012, 11:06 AM
Replies: 2
Views: 376
Posted By Link187
Wow 58 views, no responses..Maybe it was a dumb...

Wow 58 views, no responses..Maybe it was a dumb question or maybe I wrote it wrong..I'll rephrase:

I know it depends on the context but is it ok to use
$result = mysql_query("SELECT * FROM...
Forum: MySQL 03-11-2012, 01:19 PM
Replies: 2
Views: 376
Posted By Link187
Newbie question on mysql_query bandwidth

is it better for me to do:

$result = mysql_query("SELECT * FROM subjects", $connection);

while($row = mysql_fetch_array($result){
//do something with the rows }

or should I only use mysql...
Forum: PHP 02-29-2012, 09:08 AM
Replies: 16
Views: 2,020
Posted By Link187
It's NOT on the same machine but it may be on a...

It's NOT on the same machine but it may be on a machine on their local network. Would this be a dealbreaker for you guys? i.e how critical is it to have it on the localhost. Fyi: Security is pretty...
Forum: PHP 02-24-2012, 10:19 AM
Replies: 16
Views: 2,020
Posted By Link187
Thanks for your reply. it really clarifies...

Thanks for your reply. it really clarifies things.

I'm with a major host (1and1.com) so I'm relying on their security to prevent this (i.e that part is out of my control).



I think it's on...
Forum: PHP 02-24-2012, 08:44 AM
Replies: 16
Views: 2,020
Posted By Link187
Securely connect to mysql with php?

I'm using this code to connect to my database and wanted to know if it was secure:

define("DB_SERVER", "db4009.db.blah.com");
define("DB_USER", "dbo4009");
define("DB_PASS", "50me60pass");...
Forum: PHP 02-21-2012, 09:45 PM
Replies: 2
Views: 228
Posted By Link187
Oops, I forgot that you can have "do/while"...

Oops, I forgot that you can have "do/while" loops.. By "do" I meant the action part of the while loop. Thanks for your answer.

I agree (with respect as I'm a total noob at this) that nested loops...
Forum: PHP 02-21-2012, 06:14 PM
Replies: 2
Views: 228
Posted By Link187
Newbie: while loop question

Hi,
I'm learning php/mysql and have 2 very basic questions that I hope someone can help with. I have posted the code that I have been learning and found some problems/questions:

1. what ends the...
Showing results 1 to 17 of 17

 
Forum Jump

All times are GMT +1. The time now is 01:26 PM.