![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
AyKay47
-
Posts
3,281 -
Joined
-
Last visited
-
Days Won
1
Posts posted by AyKay47
-
-
I try to run a page in the browser I get a message to open the file or save it.
yeah, you haven't installed WAMP
-
Sure, but you're not giving us the context in which this styling is nested.
That little example you posted is incorrectly written and clearly doesn't reflect the actual code.
-
You didn't read my reply thoroughly, re-read it, then re-read it again.
-
what do you want to find the total of?
-
intval or cast the $_GET variable to prevent SQL injection.
Use Count() in the query to find totals.
-
That will work, you must have set the table columns to a specified width or something?
-
The browser decodes the string automatically, PHP doesn't.
Warning: getimagesize(uploads/cakes/CreamCakes_%2810%29.jpg) [function.getimagesize]: failed to open stream: No such file or directory in
the error is pretty obvious, do you have a file named 'CreamCakes_%2810%29.jpg'?
And yeah, keep your file names simple to avoid this all together.
-
the absolute positioning of the 2nd div wouldn't help because the first div isn't positioned. Then when you set a dynamic width on the parent div, you can set absolute positioning on the child layover.
Look at this example fiddle
which is why I made a note of it in my reply.
-
On that note, SQL injection is still possible while using PDO if the query is built with user defined data.
Something to look out for.
-
I see the picture, but I don't see the correlation of that in the code.
Just post the css and the html of the relevant data for the left and right columns.
-
well, what does the css for the other div look like atm?
Something like this should work:
div.other-div { position: absolute; left: 2px; top: 5px; z-index: -1; }
remember, the z-index property will only work on elements that are positioned.
-
There is no reason to be using table references, you are using 1 table.
This is occurring because the where clause in one of the queries is not being satisfied.
Why not have something like this instead:
select count(distinct id) as id_count, id from users where id = 1 or id = 997
-
Typically bool values should be used simply for logical reasons as Requinix mentioned.
Integers should only be used when you actually need an integer value to do something.
Also, if you assign an integer type 1 or 0 for TRUE or FALSE, you have to be careful of which comparison operator you use should you have to compare the value to another.
Adds an extra layer that could potentially cause silly errors that can be avoided.
-
As I have stated before, you don;t need the foreach loop, and it shouldn't be there as it is a waste of resources.
$get_info[0] will contain the value of the column `staff`.
-
I have already given you the answer, post the updated code.
-
Can you show us an example.
-
Why are you guys still necroing this old thread.
-
Hi i need a form for that reply above (php) as php on its own and it has no form, please help
Third time that you have posted an off-topic post on someone else thread.
Having a bit of fun or something?
-
hi i want to store url to images in database for logged in users (where id = $id)
and recall the image hopefully using
---------------------
<img src="<?php echo row['link']; ?>" /> or similar and need help with the sql update string any ideas please help i been stuck with this for some time and now decided to ask around in this forum for help, please help if you can.
Again, don't necro old threads, create a new thread in the proper forum with your question.
-
im looking for database help to update mysql database with a url supplyed by a logged in user using where id = $id
and to have the url stored in database any ideas on creating this small form that will do the job, im stuck for a while tryingto find help but theres not alot about.
Start a new thread in the proper forum with your question.
-
$.ajax({ url: "artist_title.php", data: "imgid=" + imgID, success: function(data) { $("#myDiv").html(data); } });
-
-
No body else got any input? I seem to be having some rendering issue with the tree in the background on occasion on the documentation pages. Would nice to get some help with that.
Any specific environment that you know of that causes the rendering issue?
I plan on helping you out a bit by forking the code later on this evening.
-
SELECT staff FROM flight_survey WHERE staff IN ('good', 'fair', 'poor');
EDIT: There is no need to use a foreach inside of the while loop, $get_info[0] will hold the results set value.
CSS to size button
in CSS Help
Posted
I'm not disappointed, but you should be.
http://jsfiddle.net/twcwU/