Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Doesn't matter, it's for your own good. I personally just have the backup folder in the same directory as to what I'm backing up. I keep it the same folder structure as well. But if you're backing something up like a database I usually just date it like this, "091908.sql".
-
Yes I agree with avoiding iFrames. There are a certain time and place for them but to have your whole site with iFrames is tacky to me.
-
[SOLVED] why Query failed. Table 'XXXX_XXXX.staff_info' doesn't exist
Maq replied to new_php85's topic in PHP Coding Help
Exactly, what table? Do you have a table to select from? These error messages sometimes actually mean something. -
You mean, that's the answer you were looking for. So this topic has been SOLVED.
-
AV, I think you did a good job. Everything looks clean and professional. As far as the top tap menu, it works fine in IE7 and FF3. It may be my computer/connection, but the top tab menu takes about 3-4 seconds to load each one.
-
I'm sorry I don't understand this question. The '.' is a concatenation string. So when you write $Value1 .= $Value2; It's the same thing as: $Value1 = $Value1 ."". $Value2; If this doesn't help please just tell me the three vars and what final result you want.
-
Required code for taking data from an HTML page.
Maq replied to pghtech's topic in Third Party Scripts
Have a button with an onClick() function that calls a javascript function to generate a text field (plenty of tutorials on this). As far as passing the data you can extract it from the session variables and some SQL queries. Need some code to work with here if you want more specific help. -
$Value1 .= $Value2;
-
Looks like you don't need it but use a function that does it for you... <br /> function confirm_delete()<br /> {<br /> <br /> <?php $_GET["custno"] = addslashes($_GET["custno"]); ?><br /> <br /> window.location='CustModify.php?custno=<br /> <?php echo $_GET["custno"]; ?>&Action=ConfirmDelete';<br /> }<br />
-
That is i give up! Stupid PHP and CSS!!! PLEASE HELP!!!
Maq replied to strujillo's topic in PHP Coding Help
Post the dir paths of both: 1) The script that is calling menu.html 2) menu.html. itself -
mysql_query("INSERT INTO `table`.`x1` (`id`, `ancode`) VALUES (NULL , '$evalinsert')"); I think you have an extra ';'. $evalinsert is outputting data correct? If this doesn't work check out this tutorial. http://www.tizag.com/mysqlTutorial/mysqlinsert.php I'm also unsure of `table`.`x1` You're only inserting into 1 table correct?
-
window.location='CustModify.php?custno= &Action=ConfirmDelete'; I think needs to be: window.location='CustModify.php?custno=' . $_GET["custno"] . '&Action=ConfirmDelete';
-
How to code user registration, log in process and database
Maq replied to runrunforest's topic in PHP Coding Help
This is a pretty big and complex answer. You should probably read some tutorials from *cough*, Google. There are even some stickies and tutorials on this site are very well written and easy to understand. Try writing the code yourself and post your questions as they come along. Or, you could download phpBB, or some open source forum and see how they do it... -
[SOLVED] why Query failed. Table 'XXXX_XXXX.staff_info' doesn't exist
Maq replied to new_php85's topic in PHP Coding Help
Where do you even select that table? -
Just curious, why avoid using site maps? I thought they help you a lot with ranks.
-
Newbie here, help with some Wordpress theme code please
Maq replied to MiaK's topic in PHP Coding Help
My guess is that you need to define ck_display_karma(); in another class, probably an existing one. Then just call it where you want it to show up in your forum. Pardon the syntax but something like: $class_with_karma -> ck_display_karma(); Somewhere under the: foreach ($comments as $comment){ Hope this helps. -
If redarraow didn't answer your question, could you be more specific than: ?
-
Hmm, that's a pretty cool script but isn't it expensive, as in, if you have a big database it will take a lot of time. I think mysqldump would be much quicker.
-
Same here: elseif($field = 'id') Needs to be: elseif($field == 'id')
-
First problem... You're assigning $field to content instead of comparing. Change: if($field = 'content') To: if($field == 'content')
-
That is i give up! Stupid PHP and CSS!!! PLEASE HELP!!!
Maq replied to strujillo's topic in PHP Coding Help
Make sure you're using the correct dir path. Obviously it's pointing to the wrong folder. Wherever your file is located is where you have to navigate from... Post the whole dir path where your menu.html is and where the file you call it is located. -
I assume you're talking about rank. Remember crawlers see the pages just like you and I do.
-
If you stick to open source software there shouldn't be too many legalities to worry about. Although, I could be wrong.